AGENT SKILL

animation-direction

Use when turning narrated video/audio into synced code-rendered motion graphics — narration -> timestamped transcript -> scene plan -> approval gate -> Remotion render -> ffmpeg composite. Covers the motion vocabulary, beat-to-visual mapping, scene-plan v2 schema, and the mandatory plan gate via extensions/asr + extensions/remotion-render.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 0
Forks
1

01 前言 Front Matter

name
animation-direction
description
Use when turning narrated video/audio into synced code-rendered motion graphics — narration -> timestamped transcript -> scene plan -> approval gate -> Remotion render -> ffmpeg composite. Covers the motion vocabulary, beat-to-visual mapping, scene-plan v2 schema, and the mandatory plan gate via extensions/asr + extensions/remotion-render.

03 SKILL.md 正文

Animation Direction

Motion-graphics direction without a video editor: "explain X" -> synced b-roll/infographic animation. Corrections happen at the cheap plan stage, never post-render.

Pipeline

  1. Enrich — extensions/asr/transcribe.py url|file (yt-dlp + whisper.cpp, offline) -> {text, segments[{start,end,text}]}; bootstrap via extensions/asr/bootstrap.py (explicit fetch only).
  2. Analyze — keyframes (ffmpeg scene-select) + semantic beats: what concept each segment explains.
  3. Plan — scene-plan v2 per beat: {id, sync_range:[s,e], visual:{type,props}, motion_spec:{easing,enter,exit,enter_s,exit_s}, overlay?}.
  4. GATE (hard) — render nothing until the plan is approved: plan_check.py output + ask_user_question/ledger sign-off.
  5. Render — extensions/remotion-render/render.py plan.json --workdir out/ -> Remotion project -> npx remotion render.
  6. Composite - extensions/remotion-render/composite.py source overlay -o out.mp4 [--fit frame|contain] [--pos x:y] [--mix]: source audio (narration) preserved by default, --mix amixes overlay audio; alpha .mov renders overlay full-frame, mp4 renders use --fit contain PiP/lower-third. Per-beat sync_range timing: render each beat clip separately and concat, or one full-length plan - composite handles whole inputs only.

Motion vocabulary

  • Easings: linear (data/tickers), spring (emphasis, diagrams), easeOut (default entrances).
  • Entrances: fade (default), slideUp (titles/steps), scale (callouts), none (cuts). Exits default fade, none on cut.
  • Timing budgets: entrance <= 0.5s and <= half the beat; holds >= 1.5s for text; transitions only between narration cuts.
  • Direction grammar (the part that reads as directed, not tweened): anticipation (small counter-move before the main move), release (the move itself, faster than the anticipation), smear frame (stretch the element along the path of travel for 1-2 frames on fast moves), and negative space as a tool - hold empty space around the subject instead of filling every frame.

Beat -> visual mapping

Beat visual.type props contract
Claim / definition kinetic_text {text: str, size?: num} - <= ~12 words
Process / sequence diagram_nodes {nodes: [{label: str}, ...]} - stagger 6f
Number / metric counter {to: num, label?: str} - count up ~1s
Screenshot / asset pan_zoom {src: str, zoom?: num} - slow zoom 1.0->~1.15

plan_check.py enforces this contract (missing/wrong-typed required props = error before the gate); unknown types fall back to KineticText. Bool is not a number - to: true fails the check.

Sync rules: beat duration >= read time (160 WPM); one visual on screen unless overlay: true; no motion during narration cuts.

Renderer selection

Default Remotion (this extension). Blender via operate-blender when the visual is 3D. After-Effects JSX only if the user already has AE. No paid TTS/ASR services; plan approval is a hard gate, always.

Files

  • extensions/asr/ — transcribe + bootstrap.
  • extensions/remotion-render/ — plan_check.py (pre-gate validator: sync_range vs audio, overlap collisions, read-time + budget warnings), render.py (materialize template + render), composite.py (ffmpeg overlay onto source, narration-first audio), templates/remotion-project/ (Root + PlanComposition + primitives).
  • Plan contract extends craft-bridge scene_manifest v1 with motion_spec + sync_range (v2).

04 同仓库更多 Skills

Leostruka
Leostruka/devin-bundle

montador-de-ideias

Use when assembling, expanding, or elevating a raw project idea or initial prompt into an ultra-detailed, first-principles dossier and compiled master prompt with journalistic OSINT market research, Tech Lead and Staff Architect justifications, atomic and modular hardening/optimization, and high-impact contact surfaces.

★ 0
Leostruka
Leostruka/devin-bundle

git-github-adaptive-engineering

Use when any task touches git history, GitHub issues/PRs/releases/CI, repo governance, or branch and merge decisions. Runs the Fase Zero situational-awareness battery, picks one of five delivery flows via the adaptive decision engine, and enforces commit/PR information-density standards. Orchestrates the gh, git-workflows, github-actions, pr, and debug/finish skills.

★ 0
Leostruka
Leostruka/devin-bundle

adaptive-agenda-calendar-routine-engine

Use when planning or executing work across hours, days, weeks, or sprints. Turns the calendar into a strict time-blocked agenda (HH:MM-HH:MM blocks carrying a routine profile, expected inputs, and a handoff output artifact), runs the 5-stage cognitive flow (Radar and Hunt -> Triage plus Steve Jobs conception -> workbench manifest -> >=32-cycle loop -> Close plus Open-Minded Scrum), and unfolds macro calendar milestones into micro agenda blocks through extensions/gcal/wrapper.py.

★ 0
Leostruka
Leostruka/devin-bundle

demo

Use when demonstrating a skill in a fixture project.

★ 0
Leostruka
Leostruka/devin-bundle

duplicate-skill

Use when testing duplicate skill name detection.

★ 0
Leostruka
Leostruka/devin-bundle

duplicate-skill

Use when testing duplicate skill name detection.

★ 0