SkillsGrove
SkillsGrove/Production vidéo/sunxiayi/hand-drawn-follow-animation/hand-drawn-follow-animation

hand-drawn-follow-animation

Installation

$npx skills add https://github.com/sunxiayi/hand-drawn-follow-animation --skill hand-drawn-follow-animation
$git clone --depth 1 https://github.com/sunxiayi/hand-drawn-follow-animation.git /tmp/hand-drawn-follow-animation && mkdir -p ~/.claude/skills && cp -r /tmp/hand-drawn-follow-animation/. ~/.claude/skills/hand-drawn-follow-animation
Installe pour moi cette Agent Skill : https://github.com/sunxiayi/hand-drawn-follow-animation/tree/8b2f23ebfedaf8ee026be95c9d5c5cadfe67823c/ — lis d’abord son SKILL.md et ses scripts, et ne l’installe dans mon dossier de compétences qu’après avoir vérifié qu’elle est sûre.

Résumé

Description d’origine · MITTurn Chinese narration and an optional visual reference into an original hand-drawn follow-along animation with ImageGen scene art, deterministic nib-locked drawing motion, gender-matched Microsoft Edge TTS, word-timed Chinese subtitles, and an H.264 deliverable. Use for 手绘跟随动画、参考图风格、类似画风、白板手绘视频、手绘讲解动画、口播转视频、线稿绘制动画、画笔与画面不同步、分块描出、人物没画完就跳走、hand-drawn follow animation、whiteboard animation、drawing-hand video、Edge TTS、配音性别、or embedded subtitles without a supplied SRT.
Le SKILL.md ci-dessous est reproduit depuis sunxiayi/hand-drawn-follow-animation (commit 8b2f23e) sous licence MIT. Le texte est inchangé ; seules les métadonnées d’en-tête du fichier sont omises, les images sont affichées sous forme de liens et les fichiers très longs sont tronqués. Copyright 2026 sunxiayi. Licence : LICENSE. Seul le fichier d’instructions est affiché ; consultez le dépôt d’origine pour les éventuels scripts.

Hand-Drawn Follow Animation

Convert narration into original scene stills and animate them with a marker whose physical nib follows deterministic, content-aware routes. Use ImageGen for visible scene art and the bundled scripts for timing, motion, TTS, subtitles, and QA.

Chinese edition: SKILL.zh-CN.md.

Language selection and bilingual synchronization

Choose the rule edition from the language used to interact with the user for the current task:

  • Chinese interaction: read SKILL.zh-CN.md and only the matching files under references/zh-CN/.
  • English interaction: read this SKILL.md and the matching English files directly under references/.
  • Mixed-language interaction: follow the language of the user's latest explicit task. Ask only when the intended interaction language is genuinely ambiguous.

Do not read one language edition and answer from memory in the other language. Once the edition is selected, read every required rule from that edition completely.

Treat the two editions as synchronized normative mirrors. Whenever any workflow rule, default, field meaning, prompt constraint, QA threshold, or delivery requirement changes:

  1. Update the corresponding English and Chinese passages in the same change.
  2. Update both reference counterparts when the rule lives in references/.
  3. Keep scripts, schemas, and assets language-neutral when they do not need separate localized copies.
  4. Never complete a rule change after editing only one language.
  5. Run python3 scripts/validate_bilingual_docs.py and the skill validator before accepting the change.

1. Reference routing

Read each required reference completely before its corresponding work:

Inspect assets/motion-stages.jpg and assets/default-hand.png when calibrating motion. Inspect assets/style-anchor.png only when no reference image is supplied.

2. Non-negotiable invariants

  • Preserve every supplied narration clause exactly once and in order.
  • Transfer only abstract visual traits from a reference. Invent new identities, silhouettes, poses, props, relationships, framing, and composition; never trace, recolor, or character-swap the source.
  • Reserve the full-width lower 24% for captions by default. Keep all scene marks, shadows, regions, and nib routes above caption_safe_area.top_ratio.
  • Keep the hand independent from scene style. Place the recorded marker-tip anchor—not the palm or fingertip—on the active route.
  • Reveal each animated pixel only when a real nearby route seed is reached. Require nib-locked timing, pixel-resolution edges, no remote fill bloom, no grid tiles, no trailing fade, and no generic wipe.
  • Complete each declared object before entering the next. For characters, finish dense hair first, then the rest of that character, then later characters or props. Do not impose a global top-to-bottom fill order.
  • Complete each declared writing group before leaving it. Write lines top-to-bottom and Latin text or formulas left-to-right.
  • Match the default TTS voice to the speaking protagonist or narrator. Never reuse a previous project's voice after changing character gender.
  • End every scene on a hand-free completed hold and accept output only from visual evidence plus machine-readable reports.

3. Build the project

Collect the narration, reference image, audience, aspect ratio, resolution, pace, voice, and delivery requirements. Use 16:9, 1920×1080, 24 fps, and a light route-detectable background when unspecified.

Resolve narrator_gender before TTS:

  • First person: match the speaking protagonist.
  • Third person without a distinct narrator: match the main protagonist.
  • Distinct narrator: match that narrator.
  • Mixed or ambiguous protagonists: ask; do not guess from secondary cast.

Use male or female; an explicit user-selected voice overrides the default mapping defined in the TTS reference.

Create a dedicated project folder with narration.txt, storyboard.json, scenes/, assets/, audio/, and output/. Resolve the skill path once:

WHITEBOARD_SKILL_DIR="${CODEX_HOME:-$HOME/.codex}/skills/hand-drawn-follow-animation"

Create the initial project, adding --style-reference only when supplied:

python3 "$WHITEBOARD_SKILL_DIR/scripts/whiteboard_renderer.py" create-project \
  --input /absolute/path/narration.txt \
  --output /absolute/path/storyboard.json \
  --narrator-gender <male-or-female> \
  --style-reference /absolute/path/reference.png

4. Design the storyboard and assets

Split by meaning, keep clauses intact, and give each scene one communication job and one concrete visual metaphor. Replace every TODO. Preserve narration in the project instead of turning it into image text. Add exact notation programmatically.

When a reference is supplied, inspect it first, copy it into project assets, record visual_style: reference-adapted, and store one stable style_profile. Without a reference, use editorial-character and the bundled style anchor.

Present a compact scene plan before spending ImageGen calls. Generate each distinct scene separately at the target ratio. Keep the background uniform, important boundaries dark, all art outside the caption band, and the scene free of hands, pseudo-text, logos, and watermarks. Regenerate malformed or compositionally unsafe results.

Use ordered object_regions for touching character parts or props. Use base_image, draw_image, and ordered hand_regions for notation-heavy scenes so the hand writes only key groups, not static scaffolding. Follow the schema reference for field semantics.

Reuse the bundled hand unless the user explicitly requests another appearance. If replacing it, generate it separately on flat chroma key and run prepare-hand; never bake a hand into scene art.

5. Establish authoritative timing

After semantic scene boundaries and narrator gender are final, synthesize TTS before rendering:

python3 "$WHITEBOARD_SKILL_DIR/scripts/edge_tts_pipeline.py" synthesize \
  /absolute/path/storyboard.json

Treat decoded per-scene audio duration and Edge WordBoundary timestamps as authoritative. They replace text-only duration estimates and produce audio/narration.m4a, per-scene audio, and audio/narration.srt.

6. Render and finish

Check the runtime and install only the missing packages into a project-local environment when requested:

python3 "$WHITEBOARD_SKILL_DIR/scripts/check_env.py"

Render the silent master:

python3 "$WHITEBOARD_SKILL_DIR/scripts/whiteboard_renderer.py" render \
  /absolute/path/storyboard.json \
  --output-dir /absolute/path/output

Do not replace computed drawing motion with a pan, zoom, dissolve, generic hand loop, or directional wipe. Repair source art, regions, route coverage, thresholds, or the hand anchor when evidence fails.

Mux narration and burn the authoritative subtitles:

python3 "$WHITEBOARD_SKILL_DIR/scripts/edge_tts_pipeline.py" finish \
  /absolute/path/storyboard.json \
  --video /absolute/path/output/whiteboard-video.mp4 \
  --output /absolute/path/output/whiteboard-video-tts-subtitles.mp4

7. Verify and deliver

Inspect every path preview, stage sheet, and route JSON, then open the first scene clip and final video. Pass every acceptance row in the rendering reference. At minimum require:

  • caption_safe_area.unsafe_pixels == 0 within tolerance.
  • reveal_sync.mode == "nib-locked".
  • max_seed_distance_px <= limit_px.
  • max_temporal_lag_frames <= 0.2.
  • Ordered hair/object and writing-group completion.
  • A hand-free final hold of at least 0.8 seconds.
  • Narration, subtitle, scene-boundary, voice-gender, stream, resolution, fps, and duration integrity.

Deliver the narrated MP4, silent master, TTS audio and timed SRT, storyboard.json, representative evidence, render-report.json, and final-report.json. Report duration, resolution, fps, audio-track count, voice, timing basis, and any remaining limitation. Label audio/narration.srt as TTS-timed and the renderer's output/narration.srt as estimated.

Voir le texte intégral de la licence (MIT)
MIT License

Copyright (c) 2026 sunxiayi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.