agentleFS
crywolfecrywolfe/claude-code-design/.claude/skills/animated-video/SKILL.md

animated-video

Skill0 starsChanged 8 days agoMITView on GitHub

Build animated motion design (explainer, transition reel, product intro). Uses Stage/Sprite timeline from animations.jsx for in-browser compositions or Remotion for full video/MP4 workflows.

3 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before deciding Path A vs B, silently check for context:

    line 14
  2. Distinctive:

    Do NOT invoke any ingest skill automatically.

    line 21
  3. Very specific:

    If nothing — ONE AskUserQuestion: design system / codebase / screenshot / Figma / none / decide.

    line 24
  4. Very specific:

    Create artifacts/<slug>.html with React + Babel + animations.jsx

    line 48
  5. Very specific:

    Run /serve (required for external .jsx CORS)

    line 50
  6. Very specific:

    Write the composition source (src/Root.tsx, src/*.tsx, package.json with pinned remotion version) into artifacts/<slug>-remotion/ — no …

    line 86

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Animated Video

Two paths depending on complexity. Decide first, tell the user which path you're taking.

Phase 0 — Context pre-flight (auto-detect, ONE question max)

Before deciding Path A vs B, silently check for context:

  1. Read .claude/design-tokens.json if exists
  2. Bash(ls design-systems/ 2>/dev/null) — project-local registry (gitignored). If the brief names a registered brand, say "Found design system <name> in the registry. Apply it?" and wait. Never auto-apply.
  3. Glob codebase tokens
  4. Scan brief/attachments for external references: github URL → ingest-github, Figma URL → ingest-figma, image path → ingest-screenshot, .pptx / .docx / .xlsx / .pdf path → ingest-document, .md / .txt → Read. Do NOT invoke any ingest skill automatically. List what was found and ask one AskUserQuestion: "Ingest <X>? (yes / no)". Only invoke the matching ingest skill on an explicit yes.

If nothing — ONE AskUserQuestion: design system / codebase / screenshot / Figma / none / decide. Report "Using <context>. Proceeding."

Path A — Standalone HTML with Stage/Sprite

For any animation that can live in one HTML file (explainer reel, product intro, transition sequences, hero animations — <60s typical).

Uses the Remotion-compatible in-browser engine in starters/animations.jsx. Same mental model as Remotion — different runtime (no build step, runs under Babel standalone).

Available primitives:

PrimitiveRole
<Stage duration width height [id] [loop] [showControls]>Root composition. Owns one RAF clock, scale-to-fit canvas, scrubber UI, play/pause. Reads/writes position in localStorage.
<Sprite start end [easing]>Active only in [start..end]ms window. Children can be element or (localT) => element. Unmounts when out of range.
useTime({ stopAt? })Returns current ms. Inside Stage: reads shared clock (free). Standalone: spawns its own RAF (costlier).
useSprite()Returns local t ∈ [0,1] within the current Sprite.
Easinglinear, inQuad, outQuad, inOutCubic, outQuart, inOutExpo, spring(stiffness, damping)
interpolate(t, [in], [out], { clamp?, easing? })Piecewise lerp. Supports numbers and hex colors.
<FadeIn>, <FadeOut>, <SlideIn from=...>, <ScaleIn from=...>, <Reveal from=...>Entry/exit sugar. Persist after their animation window (unlike Sprite).
<Transition from to duration>Standalone one-shot wrapper (no Stage needed).

Steps:

  1. Invoke Skill: frontend-design for aesthetic direction if it is installed; otherwise proceed with the taste rules in CLAUDE.md
  2. Create artifacts/<slug>.html with React + Babel + animations.jsx
  3. Bash(cp starters/animations.jsx artifacts/<dir-of-html>/) — copy starter next to the HTML, spelling the directory out literally (no $(dirname …))
  4. Run /serve (required for external .jsx CORS)
  5. Compose the scene. Pattern:
function Scene() {
  const t = useTime();  // Stage-shared clock
  // drive properties via interpolate()
  const bg = interpolate(t, [0, 2000, 5000], ['#fef9f3', '#f3d8a8', '#8a5a22'], { easing: Easing.inOutCubic });
  return (
    <div style={{ position: 'absolute', inset: 0, background: bg }}>
      <FadeIn start={0} duration={500}>
        <h1>Entry stays visible after 500ms</h1>
      </FadeIn>
      <Reveal start={400} duration={700} from="bottom" distance={40}>
        <p>Fade + slide combo</p>
      </Reveal>
      <Sprite start={1500} end={3500} easing={Easing.outQuart}>
        {(local) => <div style={{ opacity: local, transform: `scale(${local})` }}>Bounded — disappears after 3500</div>}
      </Sprite>
    </div>
  );
}

function App() {
  return <Stage duration={5000} width={1920} height={1080} loop={false}><Scene/></Stage>;
}
  1. /done http://127.0.0.1:4567/<slug>.html — verify scrubber works, animation plays cleanly, console clean
  2. For exporting frames/seeking for PPTX: external tools can send window.postMessage({ seekMs: N, playing: false }, '*') — Stage listens and jumps

Path B — Remotion (MP4 export, multi-scene video)

For long-form (>60s), multi-scene narrative, or MP4-export needs.

  1. This path needs a Remotion toolchain (Node project, npx remotion), which the project's permission set does not grant. Tell the user: "MP4 export needs a separate Remotion project; I can write the composition source into artifacts/<slug>-remotion/, and you run npx remotion render yourself."
  2. Write the composition source (src/Root.tsx, src/*.tsx, package.json with pinned remotion version) into artifacts/<slug>-remotion/ — no third-party skill is required
  3. Print the exact commands for the user to run in a separate shell and stop

When to pick which

NeedPath
Single scene, any lengthA
Product intro, explainer under a minuteA
Multi-scene narrativeB
MP4 export requiredB
Browser-only preview (ship an HTML)A
Exact frame timing (e.g. 30fps video)B (Remotion is frame-based)
Physics / gesture-drivenA with Popmotion <script src> fallback, or B

Popmotion fallback

For real spring physics, keyframe math, or gesture tracking beyond what Easing.spring() supports, add:

<script src="https://unpkg.com/popmotion@11.0.5/dist/popmotion.min.js"></script>

and use window.popmotion directly.

Verify

Path A: /done <url> — scrubber reaches end, clicking bar seeks, play/pause toggles, console clean. If the user wants PPTX frames of this animation: seek via postMessage before each screenshot.

Path B: Remotion preview server at localhost:3000 + exported MP4.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.