Skip to content
Skills Library
Design & UX · Conversion & formats

pencil-to-hyperframes

/pencil-to-hyperframes

Turns frames designed in Pencil (pen.dev) into HyperFrames compositions ready to animate - stable ids from layer names, local fonts, copied images, palette colours as variables, and several frames read as states of one animation. Use it when the user has designed key frames or a storyboard in Pencil and wants them animated, or asks to bring a .pen design into a video. Also when the user writes in Spanish, e.g. "anima este diseño de Pencil", "pasa los fotogramas de Pencil a HyperFrames", "tengo el storyboard en pen.dev", "importa el .pen al vídeo".

Repository
haividio ↗
Licence
MIT
Last repository change
12.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 12.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Turns frames designed in Pencil (pen.dev) into HyperFrames compositions ready to animate - stable ids from layer names, local fonts, copied images, palette colours as variables, and several frames read as states of one animation. Use it when the user has designed key frames or a storyboard in Pencil and wants them animated, or asks to bring a .pen design into a video. Also when the user writes in Spanish, e.g. "anima este diseño de Pencil", "pasa los fotogramas de Pencil a HyperFrames", "tengo el storyboard en pen.dev", "importa el .pen al vídeo".

Triggers from the description

anima este diseño de Pencilpasa los fotogramas de Pencil a HyperFramestengo el storyboard en pen.devimporta el .pen al vídeo
Original author description

Turns frames designed in Pencil (pen.dev) into HyperFrames compositions ready to animate - stable ids from layer names, local fonts, copied images, palette colours as variables, and several frames read as states of one animation. Use it when the user has designed key frames or a storyboard in Pencil and wants them animated, or asks to bring a .pen design into a video. Also when the user writes in Spanish, e.g. "anima este diseño de Pencil", "pasa los fotogramas de Pencil a HyperFrames", "tengo el storyboard en pen.dev", "importa el .pen al vídeo".

How it works

  1. Safety with the Pencil MCP
  2. Steps
  3. Several frames: states, not slides
Original SKILL.md headings · 37 lines, 478 words
SKILL.md preview
---
name: pencil-to-hyperframes
description: Turns frames designed in Pencil (pen.dev) into HyperFrames compositions ready to animate - stable ids from layer names, local fonts, copied images, palette colours as variables, and several frames read as states of one animation. Use it when the user has designed key frames or a storyboard in Pencil and wants them animated, or asks to bring a .pen design into a video. Also when the user writes in Spanish, e.g. "anima este diseño de Pencil", "pasa los fotogramas de Pencil a HyperFrames", "tengo el storyboard en pen.dev", "importa el .pen al vídeo".
---

# Pencil → HyperFrames

Reply in the user's language. Full guide: `docs/workflows/06-pencil-to-hyperframes.md` in the `haividio` repo.

## Safety with the Pencil MCP

- Always pass the `.pen` file's `uri` explicitly. If the path is wrong, the MCP acts on whatever `.pen` is active, which may belong to another project.
- Run `get_app_state` first. With the explicit `uri`, `execute` reads and exports that file without switching the canvas open in the app, so another project's open file is not touched.
- Only read and export. Never edit a `.pen` file by any other means than the MCP: it corrupts it.

## Steps

1. **List the frames** of the `.pen` with a `Get` visitor (top-level frames: id, name, size).
2. **Export** the frames to animate, in order, into the video folder:
   - `Export([ids], "html-css", "<video>/design/export/<scene>.html")`: one HTML with every frame.
   - `Export([ids], "png", "<video>/design/export/")`: the reference images.
3. **Convert:**

   ```bash
   python3 scripts/pencil_to_hyperframes.py <video>/design/export/<scene>.html \
     --project <video>/animations/<project> --name <scene> --prefix <short> \
     --pen-dir <video>/design --tokens docs/style/tokens.css --duration <s> [--draft --at 0,<s>,<s>]
   ```

   It writes `compositions/<scene>.html` with an id on every named layer (`Tracker/Paso 01` → `#<short>-tracker-paso-01`), Google fonts downloaded to `assets/fonts/` as `@font-face`, images copied to `assets/pencil/`, palette colours as `var(--name, #hex)` and an empty paused timeline registered under the scene's name. It prints the layer → id map and the mount snippet.
4. **Check before animating:** mount it, run `npx hyperframes check`, take a `snapshot` and compare it with the Pencil PNG. On the RAG video, the converted frame differed from the PNG by 1 grey level out of 255 on average.
5. **Animate** in the composition's timeline, by id, following the skill `visual-identity` (motion, rhythm) and syncing with the voice as in the skill `faceless-video`.

## Several frames: states, not slides

If the export has several frames, the first one is the composition and the others are written as `<scene>.states.json`: for each id, what changes compared with the first frame (styles, text) and which layers enter or leave. Each frame's converted HTML, with the same ids, is in `pencil/<scene>/`: copy entering layers from there. Animate from one state to the next: move, resize or recolour the shared elements, and bring in or take out the ones that appear in only one frame. Playing the frames back to back as stills is the failure mode.

For this to work, the same element must have the same layer name and parent in every frame. Ask the user to name layers meaningfully in Pencil: the ids come from those names.

To start from a working scene, add `--draft` (and `--at 0,<s>,<s>` with the second each frame should start, taken from the voice's word timings): the composition gets every frame's blocks and a draft timeline that plays the storyboard as state changes. Then refine it: builds within each state (`check` flags `dead_stretch`), rhythm, sound, and nested layers the script reports as not included.

Versions

The database has no other skills named pencil-to-hyperframes.

Database snapshot: 13.11.2026 · package version 7d32cd7ad3d0 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100pencil-design
    Design UIs in Pencil (.pen files) and generate production code from them. Use when working with .pen files, designing screens or components in Pencil, or generating code from Pencil designs. Triggers on tasks involving Pencil, .pen files, design-to-code workflows, or UI design…
  • 95pencil-design
    Use this skill for any pencil.dev work, such as designing UI in a .pen file, editing an open Pencil canvas, sketching or mocking screens, instantiating components from a .lib.pen library, reading an existing design system from a .pen or .lib.pen file, fixing batch_design schema…
  • 100pencil-design
    使用 Pencil MCP 创建/编辑 .pen 设计文件,或导出为 React 代码。 Use when: 设计 UI、编辑 .pen 文件、从设计稿生成代码。 Not for: 纯代码实现(无设计稿)、非 Pencil 工具的设计工作。 Output: .pen 设计文件 或 React/Tailwind 组件代码。
  • 100pen-sync
    Mirror a React component library into its Pencil (pen.dev) design-system file — register a component, give it a VariantMatrix story, export it from Storybook and push it into Pencil as reusable components bound to the token variables, through the pen.dev CLI. Use when adding or…
  • 90pen-design
    Design screens in Pencil with the synced design-system library, and bring a designer's library edits back to code. Use when building or editing a screen, page or mockup in a .pen file that uses the design-system library; when asked what a Pencil node is in code ("which component…
  • 100pencil-replicator
    Chrome で表示中の Web 画面を Pencil (.pen) ファイルに高精度で再現する Agent Team スキル。 3つの専門エージェント(screen-analyzer, design-builder, quality-reviewer)が 分析→構築→品質検証のサイクルを回し、忠実な画面再現を実現する。 Use when: Pencil で再現して、画面を Pencil に写して、Chrome を Pencil にコピー、 pencil-replicate、デザインをキャプチャ、UI を Pencil に

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.