37 GB
4,042,753 files
Updated about 1 month ago
Name
Size
examples
media
profile
reference
scripts
.gitignore504 Bytes
xet
LESSONS.md5.56 kB
xet
LICENSE1.07 kB
xet
README.md11 kB
xet
SKILL.md14.2 kB
xet
_index.json1.49 kB
xet
_source.json622 Bytes
xet
README.md

ai-video 🎬

The AI video skill that learns.

End-to-end video generation for Claude Code β€” across six models, from prompt to finished cut. It quality-controls every clip it makes, and gets better at prompting with each one.

Claude Code Models Pipeline Python


Most AI-video tooling stops at "here's your clip." ai-video doesn't. Every generation ends with a quality-control pass β€” Claude watches the rendered clip, scores it against the prompt, and writes down what it learned. That lesson is loaded back in before the next prompt is written. The skill is not static; it compounds.

It also covers the whole job, not just the model call: generate a first frame, write the prompt, run it on the right model, synthesize voiceover, stitch the clips, upscale for delivery.

Showcase

Real clips, real prompts β€” each generated with the structure this skill teaches. Open a prompt to see the 5-part craft.

Desert convoy
Desert Convoy Β· seedance-2.0 Β· 21:9 Β· 15s
Wet track
Wet Track Green Light Β· seedance-2.0 Β· 16:9 Β· 15s
Desert Convoy Before the Wall β€” scale needs human pressure
[00:00-00:05] Extreme wide IMAX 70mm desert shot in the Denis Villeneuve and
Greig Fraser register: a tiny armored convoy races across hard salt flats
while a mile-high sandstorm advances behind it, desaturated ochre palette,
enormous negative space.
[00:05-00:10] Cut inside the lead rover, medium close-up of the driver
gripping the wheel at ten and two, dashboard amber reflected in the visor.
Camera shakes with engine vibration. He says, "Do not slow down." Sand
hammers the windshield.
[00:10-00:15] Exterior low tracking shot as the rover crests a dune in real
time, not slow motion. Dust swallows the frame, distant bass rumble, no gore,
no text, hard cut to black.
Wet Track Green Light β€” fixed hands reduce warping
[00:00-00:05] Interior cockpit medium close-up of a veteran race driver at
night, rain lashing the windshield, dashboard LEDs reflected in the visor. He
tightens both gloved hands on the wheel at ten and two, breathing steady.
[00:05-00:10] Cut to rival cockpit, younger driver in the next car, jaw
tense, eyes forward, engine vibration shaking the frame. He whispers, "Hold
the line."
[00:10-00:15] Low exterior tracking shot as the green light hits and both
cars accelerate in real time on wet asphalt. Massive water spray hits the
lens, stadium lights stretch into motion blur, engines roar, no limb
distortion, no text.
Steak ASMR
Cast-Iron Steak ASMR Β· seedance-2.0 Β· 9:16 Β· 8s
Mercury sphere
Mercury Sphere Loop Β· seedance-2.0 Β· 1:1 Β· 6s
Cast-Iron Steak ASMR β€” name the sound source
Extreme macro close-up of a steak hitting a black cast-iron skillet,
background fully blurred. Fat renders, bubbles along the crust, butter foams
around rosemary and garlic, steam blooms into warm tungsten light. Slow
dolly-in, probe-lens feel, razor-thin depth of field. Audio: aggressive
sizzle, fat crackle, one tong clink at end, no music, no voice, no text.
Mercury Sphere Loop β€” match first and last frames
Loop-ready studio macro shot of a perfect liquid mercury sphere on a black
mirror surface. Locked camera, centered composition, cool white strip lights
reflected across the metal. Over 6 seconds the sphere slowly deforms into a
rounded cube under an invisible force, then returns exactly to the original
sphere shape by the final frame. First and last frames match for seamless
playback. No text, no logo, no extra objects, no camera movement.

All four prompts β€” and 26 more β€” ship in examples/prompts.json.

🎞️ See the full results in motion β€” the complete clip library, with video previews and filterable prompts, lives at ai-video-guide.vercel.app/library.html.

Features

🧠 Self-improving
A built-in QC loop watches each clip and appends a prompting lesson to LESSONS.md. Every future prompt builds on it.
πŸŽ₯ Six models, one schema
Seedance 2.0, Kling 3.0, Wan 2.7, Veo 3.1, OmniHuman 1.5, VEED Fabric β€” authored once, auto-routed by intent.
πŸͺ„ Full pipeline
Image gen β†’ prompt β†’ generate β†’ QC β†’ voiceover β†’ stitch β†’ upscale. A single clip or a stitched episode.
πŸ“ Real prompt craft
The canonical 5-part structure, time-coded blocks, a 10-category prompt library, and a 15-entry failure-mode catalog.
πŸ” Multimodal
Character consistency, motion transfer, lip-sync, talking avatars β€” first-class, with schema validation before every spend.
πŸ™‚ "A video of me"
A personal profile wires your avatar + cloned voice into any request. Stays local, never committed.

Install

git clone https://github.com/0xadvait/ai-video-skill.git ~/.claude/skills/ai-video
pip install -r ~/.claude/skills/ai-video/scripts/requirements.txt

ffmpeg + ffprobe must be on PATH (frame QC, stitching, upscaling). The skill activates automatically β€” just ask Claude Code to make a video.

Heads up: API keys are read from the environment. You only need a key for the models you actually call (see Environment).

The pipeline

A single clip needs only stages 2–4. A finished video runs the whole chain.

# Stage Script What it does
1 Still imagegen.py First-frame / reference images β€” Flux Schnell, Flux Pro, Imagen 4
2 Prompt SKILL.md + reference/ 5-part structure (Subject→Action→Camera→Style→Constraints) + time-coded blocks
3 Generate validate.py β†’ generate.py Validate the request, run on the auto-routed model
4 QC + learn review.py β†’ LESSONS.md Watch the clip, score it, record a prompting lesson
5 Voiceover tts.py ElevenLabs text-to-speech narration
6 Assemble assemble.py Stitch clips β€” cuts/crossfades + audio bed β€” from a JSON edit list
7 Finish upscale.py Upscale resolution + interpolate frame rate

Models

One canonical schema (Seedance 2.0's). generate.py translates it to whichever model is chosen β€” "model": "auto" (default) routes by intent.

Model Backend Best for
seedance-2.0 Replicate Generalist β€” quad-modal refs, native audio, lip-sync, motion transfer
kling-3.0-omni fal t2v / i2v with a different moderation gateway (the --fallback)
wan-2.7-i2v Replicate Open-weights image-to-video
veo-3.1 Google Gemini Highest-realism cinematic text-to-video
omnihuman-1.5 fal Audio-driven talking avatar, gesture-rich
veed-fabric-1.0 fal Mouth-only lip-sync β€” included, but see LESSONS.md

The learning loop

This is the part that makes it more than a wrapper:

prompt ──▢ generate ──▢ review.py ──▢ Claude watches the clip
   β–²                                          β”‚
   β”‚                                          β–Ό
LESSONS.md ◀────────────── distill a generalizable lesson

review.py extracts a frame contact sheet; Claude scores the clip on prompt fidelity, consistency, motion, and audio; a one-line cause→effect lesson is appended to LESSONS.md. Step 0 of every workflow reads LESSONS.md back in. No regeneration is needed for the skill to improve — clips are only re-run when you ask.

Documentation

File What's inside
SKILL.md The workflow, model routing, QC loop, hard rules
LESSONS.md Seed lessons + the skill's growing memory
reference/schema.md Canonical Seedance 2.0 request schema
reference/prompt-logic.md 10 prompt categories, theory + perfect examples
reference/style-library.md Cross-model camera / lens / lighting / director vocabulary
reference/real-person.md Real-person workflow + production stacks
reference/failure-modes.md 15 failure modes and their fixes
examples/prompts.json 30 verified, paste-ready prompts

Environment

Variable Used by
REPLICATE_API_TOKEN seedance-2.0, wan-2.7-i2v, Flux stills, ML upscale
FAL_KEY kling-3.0-omni, veed-fabric-1.0, omnihuman-1.5
GEMINI_API_KEY veo-3.1, Imagen 4 stills
ELEVENLABS_API_KEY tts.py voiceover

Personal profile

The "a video of me" shortcut uses a personal profile. Copy the template and fill in your own assets:

cp profile/profile.example.json profile/profile.json

profile.json is git-ignored β€” your avatar paths and voice id never leave your machine.

A note on real-person video

Real-person generation is policy-sensitive. Only build around public figures in legitimate commentary or satire, or consenting, tagged collaborators β€” never undisclosed impersonation of private individuals. Respect voice-provider restrictions when sourcing reference audio. See reference/real-person.md.

Contributing

Issues and PRs welcome β€” new verified prompts for examples/prompts.json, model adapters in scripts/generate.py, and reference-doc corrections are all fair game. Keep prompt examples real (rendered, not invented).

License

MIT Β© 2026 Advait Jayant.


Built from the ai-video-guide research corpus.

🎬 Generated with Claude Code

Total size
37 GB
Files
4,042,753
Last updated
Oct 24
Pre-warmed CDN
US EU US EU

Contributors