How yangagent/whiteboard-animation-skill works
1. Repository purpose
This is not an application runtime; it is a Python-based skill/tooling repo for generating whiteboard-style animation assets and videos. The top-level README.md says it contains two reusable Agent Skills under skills/.
2. Two independent skill boundaries
The architecture is split into two mostly separate modules:
- skills/whiteboard-animation: generate whiteboard hand-drawn animation videos from one or more images.
- skills/whiteboard-video-workflow: run an end-to-end pipeline from SRT subtitles to storyboard, images, video segments, and final assembly.
Each skill has its own SKILL.md, which is the natural contract layer for an agent or operator.
3. Whiteboard animation subsystem
skills/whiteboard-animation/scripts/ contains the operational entry points:
- setup_env.py for local environment setup
- generate_whiteboard.py for single-job generation
- batch_generate.py for multi-image or bulk processing
This skill is centered on converting prepared image inputs into a whiteboard-style animation output, with assets/ likely holding sample or supporting media.
4. Workflow subsystem for video generation
skills/whiteboard-video-workflow/scripts/ breaks the larger pipeline into stages:
- generate-storyboard.py to transform an SRT subtitle file into a structured storyboard
- generate-image.py to create images for storyboard scenes
- workflow_helper.py for shared orchestration logic
- check_env.py to verify required configuration
This skill is the higher-level orchestration layer for producing a complete video sequence.
5. Data flow in the workflow skill
The main pipeline appears to be:
SRT subtitle input → storyboard parsing → scene/image generation → video clip generation → final merge.
The visible scripts cover the first two stages directly and provide helpers for the rest; the README indicates the skill’s intended end state is a fully assembled video.
6. Prompting and model-specific logic
banana_prompt_template.py suggests the workflow skill uses a templated prompt layer for an external AI/image-generation backend. This file likely separates prompt construction from execution so the workflow can adapt to a specific generator without changing the orchestration scripts.
7. Reference docs as architecture support
skills/whiteboard-video-workflow/references/ contains:
- storyboard-parser.md
- image-generator.md
These act as design/reference boundaries for how subtitles are parsed and how generated imagery should be requested, which keeps the scripts thin and the workflow behavior explainable.
8. Environment and external dependencies
The presence of .env.example and check_env.py shows that the workflow depends on external configuration, likely API keys, endpoints, or model parameters. setup_env.py plays the same role for the animation skill. This repository therefore has a clear boundary between local orchestration code and external AI/service dependencies.
9. Artifacts and local resources
The repo includes assets/ only under whiteboard-animation, implying that skill may rely on bundled local examples, templates, or media inputs. The workflow skill is more reference-driven and configuration-driven, with fewer bundled assets.
10. What the architecture diagram should emphasize
A good diagram would show:
- the repo as two skill modules under skills/
- each skill’s SKILL.md as the instruction/interface layer
- Python scripts as execution/orchestration
- reference docs and env files as support/configuration layers
- external AI/image-generation services as off-repo dependencies
- generated media/video outputs as the terminal artifacts of each pipeline
Main entry points: whiteboard-video-workflow/scripts Scripts · whiteboard-animation/scripts Scripts · generate-image.py Image gen · generate-storyboard.py Storyboard
Components 18
Repository
Top-level docs and two reusable skills under skills/
- README · Repo overview and skill entrypoint
README.md
Whiteboard animation
Standalone image-to-animation skill
- Skill contract · Agent-facing instructions for the animation skill
skills/whiteboard-animation/SKILL.md - Scripts · Local setup and batch/single-job generation entrypoints
skills/whiteboard-animation/scripts - Env setup · Prepare local runtime for animation generation
skills/whiteboard-animation/scripts/setup_env.py - Generate board · Create a whiteboard-style animation from prepared images
skills/whiteboard-animation/scripts/generate_whiteboard.py - Batch generate · Process multiple images or bulk jobs
skills/whiteboard-animation/scripts/batch_generate.py - Assets · Bundled examples or supporting media for the animation skill
skills/whiteboard-animation/assets
Whiteboard video workflow
End-to-end subtitle-to-video orchestration skill
- Skill contract · Agent-facing instructions for the workflow skill
skills/whiteboard-video-workflow/SKILL.md - Env example · Template for required workflow configuration
skills/whiteboard-video-workflow/.env.example - Scripts · Pipeline entrypoints and shared helpers
skills/whiteboard-video-workflow/scripts - Check env · Verify required configuration before running the workflow
skills/whiteboard-video-workflow/scripts/check_env.py - Storyboard · Transform SRT subtitles into a structured storyboard
skills/whiteboard-video-workflow/scripts/generate-storyboard.py - Image gen · Create scene images from storyboard content
skills/whiteboard-video-workflow/scripts/generate-image.py - Workflow helper · Shared coordination logic for the pipeline stages
skills/whiteboard-video-workflow/scripts/workflow_helper.py - Prompt template · Model-specific prompt construction for image generation
skills/whiteboard-video-workflow/scripts/banana_prompt_template.py - References · Design notes for parsing and image generation behavior
skills/whiteboard-video-workflow/references - Video output · Final assembled video and intermediate media artifacts
- External AI · Off-repo model or image-generation backend
Connections 26
- README → Skill contract: documents · README introduces the animation skill
- README → Skill contract: documents · README introduces the workflow skill
- Skill contract → Scripts: uses · Skill contract is executed through scripts
- Scripts → Env setup: includes · Environment bootstrap entrypoint
- Scripts → Generate board: includes · Single-job generation entrypoint
- Scripts → Batch generate: includes · Bulk generation entrypoint
- Scripts → Assets: reads · Scripts may use bundled media or examples
- Generate board → Video output: produces · Creates whiteboard-style animation output
- Batch generate → Video output: produces · Creates multiple animation outputs
- Skill contract → Env example: configured by · Workflow relies on external configuration
- Skill contract → Scripts: uses · Skill contract is executed through pipeline scripts
- Scripts → Check env: includes · Validates environment before execution
- Scripts → Storyboard: includes · Subtitle-to-storyboard stage
- Scripts → Image gen: includes · Storyboard-to-image stage
- Scripts → Workflow helper: includes · Shared orchestration logic
- Scripts → Prompt template: includes · Prompt construction for the image backend
- Scripts → References: supported by · Reference docs define expected behavior
- Check env → Env example: validates · Checks required environment settings
- Storyboard → Workflow helper: coordinates with · Uses shared workflow orchestration
- Storyboard → Video output: feeds · Storyboard becomes downstream video assets
- Image gen → Prompt template: builds · Uses templated prompt construction
- Image gen → External AI: calls · Sends image generation requests to off-repo service
- Image gen → Video output: produces · Creates scene images used in final assembly
- References → Storyboard: describes · Storyboard parser behavior reference
- References → Image gen: describes · Image generation behavior reference
- External AI → Video output: contributes · External generation results are assembled into final media