Make, edit, review and export Mografy Canvas animations (projects with mografy.json), plan their storyboards and scores, and compress exported videos with the bundled Python helper; also develop the Mografy repository. Use when a folder has mografy.json, the Mografy MCP tools are connected, or the user asks for a motion graphic, product demo from screenshots, how-to or tutorial clips, teaser, logo reveal, explainer, paper theatre (紙劇場、紙偶、定格), or social video, or says 做動畫、動態影片、宣傳片、產品示範、操作教學動畫、...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Mografy?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/zz41354899-mografy)
---
name: mografy
description: Make, edit, review and export Mografy Canvas animations (projects with mografy.json), plan their storyboards and scores, and compress exported videos with the bundled Python helper; also develop the Mografy repository. Use when a folder has mografy.json, the Mografy MCP tools are connected, or the user asks for a motion graphic, product demo from screenshots, how-to or tutorial clips, teaser, logo reveal, explainer, paper theatre (紙劇場、紙偶、定格), or social video, or says 做動畫、動態影片、宣傳片、產品示範、操作教學動畫、分鏡、配樂、圖層、時間軸、設計系統、匯出 MP4、壓縮影片.
---
# Mografy
Mografy films are TypeScript scene modules drawn on a Canvas as a pure function of time, previewed in the Mografy player and exported to video, Lottie or SVGA. This file holds the hard rules, the vocabulary, the tools, which reference to read for which job, and the steps. Details live in `references/`; read a reference when its step comes up, not before.
Precedence: the user's request in this conversation, then the project's `style.md`, then a local skill whose folder ends in `-ref` under `.agents/skills/` (read its `SKILL.md` after this one when the checkout has one), then the defaults here and in [references/taste.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/taste.md). Nothing overrides **Never**, the **Contract** or the **Quality floor**.
## Never
- Put animation, layout or shot descriptions in `mografy.json`. It holds settings, audio, colour swaps and review times; animation lives in scene modules, because the server never evaluates scene code.
- Read a clock, keep state between frames, or use unseeded randomness, GSAP, SVG scene layers or resvg. The player seeks in any order, and `npx mografy check` renders each time twice to catch state.
- Set `ctx.filter` around many draws or create a canvas in `renderFrame`. Each costs a full pass per draw or per frame; use `blurLayer`, `blurText`, `bloom`, `layer` and `buffer`.
- Write `scenes/timeline.json` or `colors` in `mografy.json` by hand to animate or restyle. They hold the user's own edits from the editor; change the scene instead ([layers.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/layers.md)).
- Rename or remove a layer `id` that has edits in `scenes/timeline.json`: the user's work on it would be orphaned.
- Operate the user's website or account unless they asked you to and gave you a test account ([how-to-film.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/how-to-film.md)); otherwise work from screenshots the user provides. Never show real customer data or a working private link; use invented demo data.
- Copy another brand's copy, marks or music, or edit the films in `examples/` (they are the reference other agents read). Copy one into `projects/` with `npx mografy add projects/ <name>` (showcase films download the same way) and change the copy.
- Export, or overwrite a file in `renders/`, unless the user asks for a file.
## Terms
- **film**: the whole animation. **scene**: the module that draws it (`scenes/main.ts` and its imports).
- **shot**: one idea or composition, one row of the shot table, with an ID `S01`, `S02`, … that every board, beat title and layer keeps. **beat table**: `beats([...])`, the single source of shot times, `meta.shots`, layer windows and review times.
- **handoff**: the object that ends one shot and starts the next. **hold**: time when nothing moves so the viewer can read. **stop frame**: a shot's settled frame, shown in review.
- **layer**: one part the user can retime, hide, copy, rename, lock or reorder in the editor's timeline, declared with `timeline([...])`. **edits**: the user's changes to layers, in `scenes/timeline.json`; they win over the declarations. **shot layer**: the layer per shot the build gives a scene that declares none.
- **card**: one UI panel or piece of content drawn in the film's world. **extra**: an optional helper module added with `npx mografy add <extra>` ([extras.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/extras.md) lists them). **template**: a ready-made beat added the same way. **reference film**: a finished film to learn from: installed in `examples/`, or a showcase film on https://www.mografy.app/showcase, downloaded with `npx mografy add <name>`.
## Tools
Drive Mografy with the `mografy` command in a shell, or with the Mografy MCP tools when the host has connected `npx mografy mcp`; both act on the same project, and while the player has it open they work through the player, so the user sees each change. With the MCP tools, change a scene through `write_source` (it compiles and trial-renders first and writes nothing on failure), look with `render_frame` and `review`, and check with `check` (`motion: true`). [references/mcp.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/mcp.md) maps each tool to its command. Open the player with `npx mografy dev` or `open_player`.
## Choose the path
Find the job, read its references, start where it says. When a request fits more than one row, read every matching reference; when it fits none, follow the steps below with the **New film** references.
| Job | Read | Start from |
| --- | --- | --- |
| **Fix or tweak** an existing film: copy, one timing, an asset, an export | [scene-authoring.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/scene-authoring.md); also [layers.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/layers.md) when the project has `scenes/timeline.json` or `colors` | The existing scene; no new concept or storyboard |
| **New film** from a brief, or redesigning a film's motion | [film-architecture.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/film-architecture.md), [motion-design.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/motion-design.md), [taste.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/taste.md), [examples.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/examples.md) | `npx mografy add film-starter <folder>`, or the closest reference film from examples.md |
| **Product film** from an app's screens | The row in **Product films** below | As that row says |
| **Craft** a specific look or medium | The row in **Craft** below | As that row says |
| **Round trip with the editor**: the user changed the timeline, colours or subtitles, or wants a film made editable; 圖層、時間軸、設計、設計系統 | [layers.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/layers.md) | `scenes/timeline.json`, `colors` in `mografy.json`, `style.md` |
| **Output and speed** | The row in **Output and speed** below | As that row says |
| **Setup**: install, update, workspace folders, where projects or renders go, environment variables; 安裝、更新、資料夾 | [configuration.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/configuration.md) | `npx mografy@latest init` |
| **Changing Mografy itself** | [project.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/project.md) | The current checkout |
**Product films**
| Situation | Read | Start from |
| --- | --- | --- |
| Short UI loop or hero (4–12 s, one to three actions): landing-page hero, feature card, phone moment, dashboard insight; 假介面、產品動態、UI 動畫、介面舞台 | [ui-stage.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/ui-stage.md) | The closest of the ten `stage-*` reference films (`npx mografy add stage-invoices <folder>`), or `npx mografy add stage <project>` |
| Demo, what's new, mobile preview from screenshots; 重繪、介面簡化、只拍操作細節 | [product-walkthrough.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/product-walkthrough.md) | `npx mografy add walkthrough <project>` |
| How-to or tutorial clips, one per step; 操作教學動畫、教學影片、使用教學、新手引導 | [how-to-film.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/how-to-film.md), [product-walkthrough.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/product-walkthrough.md) | `npx mografy add walkthrough <project>` |
| Social or product video from standard beats: hook, subtitles, device screen, numbers, end card | [templates.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/templates.md) | `npx mografy add <template...> <project>` |
**Craft**
| Situation | Read | Start from |
| --- | --- | --- |
| Which extra fits, or what an extra contains | [extras.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/extras.md) | `npx mografy add` (lists them) |
| Camera moves on stills or key art, wipes, atmosphere | [camera-transitions.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/camera-transitions.md) | `npx mografy add cinema <project>` |
| Chinese or Japanese copy, vertical text | [cjk-typography.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/cjk-typography.md) | `npx mografy add cjk <project>` |
| Real 3D: a product that turns, depth, an orbiting camera | [three-d.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/three-d.md) | `npx mografy add three <project>` |
| Charts, maps, rankings, networks from data; 數據圖表、資料視覺化 | [data-viz.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/data-viz.md) | `npx mografy add d3 <project>` |
| Generative art, flow fields, noise; a p5.js sketch the user brings; 生成藝術 | [p5-sketch.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/p5-sketch.md) | `npx mografy add p5 <project>` |
| Liquid Glass, glass buttons, bars, cards, lenses, glassmorphism; 液態玻璃、玻璃質感、毛玻璃 | [liquid-glass.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/liquid-glass.md) | `npx mografy add glass <project>` |
| Logo sting or short intro; borrowing a built-in motif | [intro.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/intro.md), [built-in-components.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/built-in-components.md) | The component's source file |
| Paper theatre, 紙劇場, 紙偶, 定格, a narrated concept explainer (心理學、效應), a character puppet story | [examples.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/examples.md) (Paper theatre series) | `npx mografy add paper-theatre-shadow projects/<name>` for an explainer, `paper-theatre-moon-rabbit-opera` or `paper-theatre-sea-moon` for a character film: study it, then build your own |
| Music wanted and no track supplied | [music.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/music.md) | `npx mografy add music <project>` |
**Output and speed**
| Situation | Read | Start from |
| --- | --- | --- |
| Aspect ratio, 9:16, export sizes and formats | [output.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/output.md) | `aspectRatio` in `mografy.json` |
| Exported file too large to share | [video-compression.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/video-compression.md) | `scripts/compress-video.py` |
| Slow or choppy playback (卡, 不順, 掉幀), or `npx mografy check` warns about frame cost or motion | [performance.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/performance.md) | `npx mografy check --motion`: the slowest frames and the choppy moments it prints |
## Steps for a new film
Each step names its output. Skip steps the request does not need, and say which ones you skipped.
1. **Read the project.** `mografy.json` (including `colors`), the scene entry and its imports, `scenes/timeline.json` (what the user adjusted in the timeline), `style.md`, `assets/`. If a project with an existing scene has no `style.md`, write one first from what the scene already does (its colour and type tokens, layout, motion character, timing), so your changes keep its look; tell the user you added it. Pick the closest reference film from [examples.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/examples.md) (fetch the showcase list it links when the installed films do not fit), add it, and read the files its table names.
2. **Brief.** Message, audience, length, aspect ratio, language of the on-screen copy (follow the brief; write plans in English), music. Infer what the request implies and state the assumptions. Output: the top of `storyboards/storyboard.md`.
3. **Storyboard.** Read [storyboard.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/storyboard.md) and [animation-principles.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/animation-principles.md). First write the film's idea in one sentence: one visual thing that travels through every shot and causes each change (a thread of light that fills each cup in turn, a line that becomes every card's edge). A row of separate cards with crossfades is not an idea; a film without one looks like a template. Then fix the design system (type roles, palette, the layout repeated shots share) as tokens, following [taste.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/taste.md), and record it with the film's idea in `style.md`. Every shot gets an ID (`S01`, …) and a Layers column, and every board and style board labels its frames with those IDs ([storyboard.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/storyboard.md#shot-ids-become-shots-and-layers)). Output: `style.md`, the shot table in `storyboards/storyboard.md` and a visual board (image generation in Codex, an Artifact or `storyboards/storyboard.html` in Claude). **Stop** here when the user asked only for a storyboard; when they asked for the film, continue without an approval step.
4. **Build.** One world, one camera, one beat table ([film-architecture.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/film-architecture.md)). Beat titles start with the shot IDs (`'S01 Open'`), and `meta.shots` comes from the beat table. Declare every part the user may want to adjust as a layer whose `in` and `out` come from the beat table, with the storyboard's layer id and its shot's tag colour ([layers.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/layers.md#tag-colours)). Take motion from `@mografy/runtime` and parts from the extras and templates above. Output: `scenes/`, `mografy.json` with `review.times` and `review.transitions` from the beat table.
5. **Music** (only when wanted). Output: `music-src/music.json`, `assets/music.mp3`, `audio` in `mografy.json`.
6. **Check and review.** Run `npx mografy check --motion [project]` (or `check` with `motion: true`) and fix every warning (a deliberate cut it reports may stay); run `npx mografy review [project]` (or `review`) and look at every PNG, including each transition strip. Walk **Before delivery**. Output: the review PNGs and a short note of what you checked.
7. **Export** only when asked: `npx mografy export [project] --format mp4|webm|mov|lottie|svga` (or `export`; settings in [output.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/output.md)). Output: a file in `renders/`.
To iterate on a weak range, render it frame by frame, name the problem with a time, fix it and review the same range again. To change the length, take time from holds, never from actions.
## Quality floor
Every film, from a 5 s bumper to a 2 min story, meets these; each can be checked against a frame or a `npx mografy check` line.
1. **One world, one camera.** One `cameraPath` for the whole film; cards get local transforms inside it, never a second camera; no shot resets to an empty centre.
2. **Every cut hands something over.** The line, card, dot or word a shot ends on is what the next starts from. A wipe or dissolve is a deliberate break, not a cover for a jump.
3. **No empty frames.** The outgoing element finishes its exit under the incoming one (overlap 0.2–0.5 s).
4. **One motion vocabulary.** Long moves and the camera use `keys` / `cameraPath`; entrances use `springs.*` or `spring`; holds do not drift.
5. **Blur a layer, never a group of draws:** `blurLayer`, `blurText` / `blurWords`, `bloom`.
6. **Pooled buffers in film coordinates:** `layer`, `buffer`, `blurLayer`, `bloom`; never sized from the player's canvas.
7. **Groups fade as one** through one `layer`, so overlaps do not flash.
8. **One beat table.** Layers, `meta.shots`, review times and handoffs all come from `beats([...])`.
9. **Parts are layers.** Every part a user would want to adjust is a layer drawn from its own time; parts that share a camera or a pass are drawn in place with `each`.
## Before delivery
- [ ] `npx mografy check` passes with no warnings (frame cost under 100 ms, at most 8 filters per frame, no per-frame canvases).
- [ ] `npx mografy check --motion` reports no jump, hard start or hard stop except deliberate cuts.
- [ ] No text overlaps other text or UI, and copy stays inside the safe margins in [taste.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/taste.md).
- [ ] Every caption and result meets the hold times in [taste.md](https://github.com/mografy/mografy/blob/main/.agents/skills/mografy/references/taste.md).
- [ ] Every transition strip shows the handoff object in every frame, with no jump and no empty frame.
- [ ] Fonts cover every character of the final copy (re-subset after the last copy change).
- [ ] `review.times` match the current beat table.
- [ ] The timeline shows every board shot as `S01`, `S02`, … (`meta.shots`), and every declared layer has its shot's tag colour and ID prefix; `npx mografy check` warns when a shot title lacks its ID or a layer has no colour.
- [ ] Every id in `scenes/timeline.json` still names a declared layer, and colours the user swapped in `colors` still appear in the film.
- [ ] Your note names any layer that starts hidden, and any of the user's edits or swaps that affect what you changed.
- [ ] The project has a `style.md` that matches what the film now does.
## Contract
Animation content belongs only in scene modules. Build motion and effects from `@mografy/runtime` (`at`, `win`, `spring`, `springs`, `settle`, `keys`, `cameraPath`, `withCamera`, `beats`, `timeline`, `layer`, `blurLayer`, `bloom`, `blurText`, `riseWords`, `blurWords`, `surface`, `tempoGrid`) instead of re-implementing curves, cameras, layers and text reveals per project; the helpers also run on a plain canvas, so a storyboard page can draw the real film. Render synchronously from absolute `time`, resolved params and prepared assets; scene code runs only in the browser. For a requested 9:16 video, author a native portrait scene (1080 × 1920), respect any saved `aspectRatio`, and plan vertical layout and social safe margins. The main preview follows the scene; orientation icons and Fit belong only to export. A generated storyboard is a concept reference; validate the actual scene separately.