How xiaoyecodes/code-animation-prompts works
Code Animation Prompts is an offline style library and installable Claude Code/Codex skill, not an animation application: an author selects or searches a style, reads its prompt, then asks an agent to plan and produce HTML animation; the optional local renderer exports compatible HTML to MP4. README documents the picker, 341-style library, reference examples and audio-capable rendering. Edges are limited to relationships stated in the README or visible in the sampled scripts; unsampled skill orchestration is represented without speculative links.
Main entry points: render_video.py Video renderer · 风格挑选.html Offline style picker · styles.py Style search · STYLES.md Style index
Components 15
Style discovery
- Offline style picker
skills/code-animation-prompts/assets/library/风格挑选.html - Style index
docs/STYLES.md - Style search
skills/code-animation-prompts/scripts/styles.py - Style catalog
skills/code-animation-prompts/references/catalog.json
Agent skill
- Skill instructions
skills/code-animation-prompts/SKILL.md - Animation examples
skills/code-animation-prompts/assets/library/示例
Animation production
- Timed HTML starter
skills/code-animation-prompts/assets/starter - Video renderer
skills/code-animation-prompts/scripts/render_video.py - Playwright / Chromium
- FFmpeg
- MP4 output
Prompt library
- Style prompts
skills/code-animation-prompts/assets/library/风格提示词 - Reference stills
skills/code-animation-prompts/assets/library
Other components
- Creator
- Claude Code / Codex
Connections 16
- Creator → Offline style picker: browses styles
README.md - Creator → Style search: searches styles
README.md - Offline style picker → Creator: exports selection
README.md - Style search → Style catalog: reads
skills/code-animation-prompts/scripts/styles.py - Style index → Creator: lists styles
README.md - Creator → Claude Code / Codex: requests animation
README.md - Claude Code / Codex → Skill instructions: follows workflow
README.md - Claude Code / Codex → Style prompts: reads style prompt
README.md - Claude Code / Codex → Animation examples: consults examples
README.md - Claude Code / Codex → Reference stills: consults references
README.md - Claude Code / Codex → Timed HTML starter: adapts example
README.md - Creator → Video renderer: runs renderer
README.md - Video renderer → Playwright / Chromium: drives browser
skills/code-animation-prompts/scripts/render_video.py - Video renderer → FFmpeg: streams frames
skills/code-animation-prompts/scripts/render_video.py - Video renderer → MP4 output: writes video
skills/code-animation-prompts/scripts/render_video.py - Video renderer → MP4 output: adds optional audio
skills/code-animation-prompts/scripts/render_video.py