AugmentClaude

Motion Diagram Authoring

Create and edit animated scene diagrams that demonstrate plugin functionality.

Installation

  1. Make sure Claude is on your device and in your terminal.

    Skills load from ~/.claude/skills/ when Claude Code starts up β€” so you need it on your machine first. If you don't have it yet, install it once with the command below, then run claude in any terminal to verify.

    One-time setup
    npm i -g @anthropic-ai/claude-code

    Already have it? Skip ahead.

  2. Paste into Claude Code or into your terminal.

    This copies the whole skill folder into ~/.claude/skills/authoring-motion-diagrams-2389-research/ β€” the SKILL.md plus any scripts, reference docs, or templates the skill ships with. Works for every skill.

    What this command does
    1. Makes a new, empty temporary folder.
    2. Downloads the skill's folder, .claude/skills/authoring-motion-diagrams, from github.com/2389-research/claude-plugins (branch main), the GitHub repository it's listed from. You get the version that is there now, not a copy we keep.
    3. Copies that folder to ~/.claude/skills/authoring-motion-diagrams-2389-research/.
    4. Deletes the temporary folder.

    Installing runs none of the skill's files; it only downloads and copies them. When you later use the skill, Claude follows its SKILL.md and may run scripts that come with it. Read them first.

    How we check skills, and what we don't Β· Report this skill

    Faster alternative (instruction-only skills)

    Skips the clone and grabs only the SKILL.md file. Don't use this if the skill ships Python scripts, reference markdowns, or asset templates β€” they won't be downloaded and the skill will fail when it tries to load them.

    Quick install (SKILL.md only)
    Sign up to copy
  3. Restart Claude Code.

    Quit and reopen Claude Code (or any other agent that loads from ~/.claude/skills/). New skills are picked up on startup.

  4. Just ask Claude.

    Skills auto-activate when your request matches the skill's description β€” no slash command needed. Trigger phrases live in the skill's own frontmatter; you can read them in the β€œWhat this skill does” section above.

Prefer to read the source first? Open on GitHub.

When Claude uses it

Use when adding a plugin to the marketplace, or when authoring, editing, or re-rendering a scene under scripts/animations/scenes/ β€” including when a scene fails the render contract, the contrast gate, or the grid baseline.

What this skill does

Authoring motion diagrams

Every marketplace entry has one authored scene at scripts/animations/scenes/<plugin>.svg, shown on that plugin's detail page. docs/plugins/<plugin>/anim.mp4 and anim-poster.png are derived from it. Never patch the video β€” change the scene and re-render.

A scene must say what the plugin does: what moves, in what order, and what is different at the end. A scene where things merely move is decoration.

Flow

  1. Read the plugin's category from .claude-plugin/marketplace.json, then take that category's mark and ink from scripts/animations/palette.js. One accent per scene.
  2. Copy references/scene-template.svg to scripts/animations/scenes/<plugin>.svg.
  3. Compose the beats. references/binding.md has the tokens, the beat pattern, and the scene mechanics already in use β€” reuse one rather than inventing a shape.
  4. node scripts/animations/render.js --check β€” validates the contract in about a second, no Chrome. Run it constantly, not once at the end.
  5. node scripts/animations/preview.js <plugin> β€” one frame, ~1s. AT=0.3 for another moment. This catches what no checker can: a label sitting on a connector, a box crossing its frame, a path ending in mid-air.
  6. node scripts/animations/render.js <plugin> β€” mp4 + poster, ~75s.
  7. npm run generate && npm test.
  8. Commit the scene, the mp4 and the poster together. They drift the moment they don't.

What --check enforces

GateRule
Cycleevery dur is 8s, repeatCount="indefinite", events placed in keyTimes
CountskeySplines = nβˆ’1, values = n, keyPoints = n. A mismatch disables the animation silently
Grounda #faf9f6 rect is the first element
Typeevery text fill is a legal ink token β€” 4.5:1 on paper, computed not judged
Blockssolid rects use a category ink, so white type on them clears 4.5:1
Gridplacement on 20px; existing scenes carry a frozen debt in grid-baseline.json and may only improve

palette.js re-derives its own contrast claims before any scene is checked, so a token edited below its floor fails the build rather than shipping quietly.

What no gate can check

  • Two beats per change. Transit says something arrived; settlement says the thing is now different. One beat alone reads as decoration.
  • The changed state holds until 0.95 of the cycle. A transition with no hold shows motion and communicates no outcome.
  • Routes avoid what they don't address. A path to C that crosses B reads as having entered B.
  • Position is pre-allocated. Draw routes as faint dashed guides from frame one, so the layout never reflows as parts land β€” reflow reads as rewriting, not extending.
  • The poster carries the whole diagram for a reduced-motion reader. Check it, not just the video.

Common mistakes

MistakeWhat happens
Chaining with begin="other.end"can't scrub to a frame; export breaks
A lighter grey "because the label is secondary"fails the floor; there is no legal grey above muted
Recolouring a travelling dot to inkdots are marks at the 3:1 floor β€” leave them mark
Editing anim.mp4 or shipping a scene without re-renderingvideo and source drift, and nothing reports it
Nudging geometry off-grid in an existing sceneratchet fails the build; the baseline only goes down

References

  • references/binding.md β€” this marketplace's tokens, treatments, and scene mechanics
  • references/mechanic.md β€” the portable declarative-SVG-motion doc
  • references/scene-template.svg β€” a conforming skeleton

Related skills