Agent skill Web motion
Design Motion
Design, implement or review motion on the web.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add https://github.com/garrytan/gstack/tree/main/design-motion --skill design-motion --agent claude-code --yesCheck this file in your project.claude/skills/design-motion/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add https://github.com/garrytan/gstack/tree/main/design-motion --skill design-motionSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Use the official gstack Design pack, a working gstack Chromium on macOS, Linux or WSL, and ffmpeg for checks and exports. Bring an approved local PNG or finalized HTML.
View operation manualWhat this skill helps with
- Design, implement or review motion on the web.
Good for
- Web motion and transitions
- Skill name
- design-motion
- Scenario
- Animate an approved dashboard showcase
- Deliverable
- A still and contact sheet, named motion check results and approved MP4/GIF exports.
- Skill name
design-motion- Repository
garrytan/gstack
Give the request a concrete task
A request with an unclear outcome
Record a few seconds of the demo window and export a loop.
Real-time recording makes it harder to reproduce a seam or confirm the same comparable still.
A workflow with observable results
- Agree the still and the animation story
- Match the still and capture with the fake clock
- Inspect the loop before encoding
Design Motion operation manual
Preserve the approved frame through a deterministic loop and check it before export.
Replace the bracketed details with your own project and target.
Agree the still and the animation story
Use one approved frame and name a single story per moving visual.
Prompt · Step 1Use gstack design-motion in showcase mode for [approved local dashboard PNG or finalized.html]. Pin [frame size], identify which surfaces stay static, and describe one story for [one chart or card] plus the intro, dissolve and reset phases. State what the source permits you to compare and verify browser and ffmpeg availability. Use only the approved local asset.Match the still and capture with the fake clock
Check source fidelity and follow gstack's capture contract.
Prompt · Step 2Use gstack design-motion to rebuild [approved frame] in a local page.html and capture its reference still at 2×. Compare hierarchy, layer edges and background against the source before animation. Then implement the documented capture contract and capture with the gstack fake clock and clip mask. Return page.html, stills and capture manifest paths, or report the missing prerequisite before proceeding.Inspect the loop before encoding
Read the contact sheet and require relevant checks before exporting.
- A still and capture manifest exist at the actual render size.
- Each exported file follows passed or explicitly accepted checks.
Prompt · Step 3Use gstack design-motion to check [gstack capture directory] against [approved timing and frame layout]. Report seam, empty beat, rest and overflow results individually. Show the contact sheet and identify any check skipped by the harness. After the still and applicable motion checks pass and I approve the first contact sheet, export the requested MP4 and GIFs, reporting dimensions and file sizes.
Find the relevant rule
Point the assistant to the installed Skill and a specific issue.
The reset doesn't match the opening frameReference
- Command or reference
SKILL.md · Step 6: Motion checks- Examples
- Compare seam and empty-beat findings and inspect what state survives the reset.
Decide how the clip entersReference
- Command or reference
sections/motion.md- Examples
- Use the declared timing and show one visual story within the clip.
Design Motion troubleshooting
How do I set up the full gstack runtime?
The individual install copies the skill files. Follow the official setup to install the full gstack checkout, then run `./setup --host claude --pack design` or `./setup --host codex --pack design` from that checkout. Setup registers skills and can change host settings. Review the official install steps before running it.
Can I export without ffmpeg?
With a working browser, the skill can build the page and render its still. The gstack checks and video/GIF export require ffmpeg.