/varg:code-path-traced-filmfrom varg
Creates a short animated film where the agent writes a WebGL2 path tracer, SDF characters, procedural grass, denoiser, and numpy score from scratch. Includes a complete starter film and live browser page.
Ships in varg. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Coding models make video by writing programs. Most of those programs drive someone else's renderer (Blender, three.js). This skill goes one step down: the agent writes the path tracer itself, then tells a story with it. The claim a viewer can check is simple and strong: no 3D software, no models, no textures, no video model, no music model. The starter is a finished film made this way in one session.
scripts/smallest-star/ renders "The Smallest Star", a 70 s fable about a firefly and a lost mouse
(watch it). All
1,560 frames at 1280x720 took 1 h 46 min on a MacBook Pro M4 Pro; the whole session, from a one-line
prompt to the encoded film, took under three hours (2026-11-10).scripts/smallest-star/live/ bundles the same renderer into one HTML file. Viewers drag the
camera and watch the picture converge on their own GPU (28 ms a sample at 960x540 on the same laptop).
Post the link with the film: it is the proof.Put these to the person before building. Each one changes hours of work.
timeline.json. Picture, score and assembly all read this file.audio/score.py is pure numpy: music box, pad, bass, crickets,
wing buzz, footfalls, a hand-written reverb and a BS.1770 loudness meter. It reads timeline.json, so it
follows every later change. Hand it to a second agent with the brief in references/score-brief.md.src/world.js): where the path runs, pond, house, props. The same file
emits GLSL constants and JS helpers, so the shader and the animation never disagree.--dev dev_mouse:0.2), not in the dark scene.src/shots.js): camera, both characters, lights, exposure.
Motion blur is free: the renderer asks for the state at a different time for every sample.references/look.md.render.ts skips frames that exist). Do not edit src/ while it runs: a retry would pick up the
new code mid-film.--modes 2,1 writes normals and albedo from one render;
one sample per pixel with no denoise shows the raw light. post/compose.py scales, adds captions and
pipes frames to ffmpeg with the score.live/build.py) and test that its canvas really draws before publishing.These three changes took a 720p frame from 13-23 s to about 4 s at 16 samples, and stopped the GPU from dropping the WebGL context.
height / (slope bound - ray slope) with
a local slope bound. A grazing ray over flat ground takes 5 steps instead of 120.| You see | Cause | Fix |
|---|---|---|
| A black wedge across the sky with a dead-straight edge | pow(x, 2.0) with negative x is NaN on Metal | Multiply instead of pow wherever the base can be negative |
| "webgl context lost" after a few heavy frames | One draw call ran too long | Draw in bands, one sample per call, sync between them |
| Everything looks like fog at dusk, not night | Visible sky uses the same gain as the sky that lights the scene | Separate skyVis (dark) from sky (ambient), cut fog colour and glow by 5-10x |
| Stars look like snow | Too many, all the same brightness | Three layers, sixth-power brightness, 10-25% cell fill |
| A blurred blade covers the hero | Camera stands in the grass | Clear a corridor by blade hash (two zones: empty sight line, thinned sides); never by moving the camera |
| The pond shows no reflection | The mirror point lies on the shore | Solve the camera height: reflection point = camera + (h_cam / (h_cam + h_subject)) x distance must land on water |
| Bokeh discs of stars sparkle from frame to frame | Each disc is a few lucky rays | More samples for that shot only, then a light temporal filter in the encode |
| Hops land off the beat | The cue marks the landing, the animation starts at take-off | Advance the hop phase by the air fraction |
| Text on dark frames bands after upload | 8-bit gradients | Add grain after the temporal filter, never before |
A narrator makes the film work with sound on, and it is the one part that cannot be code. Generate one
clip per caption (the starter used ElevenLabs v4 through varg, 11 lines, $0.11), put the clips in
audio/vo/ and their start times in timeline.json under narration, then run audio/mix_vo.py: it
levels every line, ducks the music 9.5 dB under speech and brings the mix to -16 LUFS. Build with
post/compose.py --narrated, which also adds a credit line for the voice. Keep the captions on screen:
feeds start muted. Deliver both cuts and let the person choose.
Say only what is true of the files. For the starter: story, characters, world, light transport, denoiser, animation, score and sound effects are code written in the session; nothing was modelled, painted, sampled or generated by an image, video or music model. The letterforms in captions are a system font, so do not say "every pixel". If you add a narrator, say that the voice is an AI voice. Publish the source next to the film.
scripts/smallest-star/src/shader.js: the path tracer and post passes (GLSL in template strings)scripts/smallest-star/src/engine.js: accumulate, denoise, bloom, tone mapscripts/smallest-star/src/world.js, shots.js, vec.js: layout, animation, helpersscripts/smallest-star/render.ts: Bun driver for headless Chrome; stills, ranges, modes, resumescripts/smallest-star/audio/score.py: the score and sound from timeline.jsonscripts/smallest-star/audio/mix_vo.py: optional narration over the scorescripts/smallest-star/post/compose.py: captions, making-of wipe, end card, encodescripts/smallest-star/live/: the one-file interactive pagereferences/look.md, references/score-brief.md, references/commands.mdREADME.md (opens in a new tab)references/commands.md (opens in a new tab)references/look.md (opens in a new tab)references/score-brief.md (opens in a new tab)scripts/smallest-star/README.md (opens in a new tab)scripts/smallest-star/audio/mix_vo.py (opens in a new tab)scripts/smallest-star/audio/score.py (opens in a new tab)scripts/smallest-star/live/build.py (opens in a new tab)scripts/smallest-star/live/main.js (opens in a new tab)scripts/smallest-star/live/template.html (opens in a new tab)scripts/smallest-star/post/compose.py (opens in a new tab)scripts/smallest-star/render.ts (opens in a new tab)scripts/smallest-star/src/engine.js (opens in a new tab)scripts/smallest-star/src/film.html (opens in a new tab)scripts/smallest-star/src/shader.js (opens in a new tab)scripts/smallest-star/src/shots.js (opens in a new tab)scripts/smallest-star/src/vec.js (opens in a new tab)scripts/smallest-star/src/world.js (opens in a new tab)scripts/smallest-star/timeline.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
path-tracing, procedural-animation, sdf-rendering, webgl2, demoscene
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: skills.73: Invalid string: must start with "./", skills.74: Invalid string: must start with "./", skills.75: Invalid string: must start with "./", skills.76: Invalid string: must start with "./", skills.77: Invalid string: must start with "./"
.claude-plugin/plugin.json: skills.73: Invalid string: must start with "./", skills.74: Invalid string: must start with "./", skills.75: Invalid string: must start with "./", skills.76: Invalid string: must start with "./", skills.77: Invalid string: must start with "./"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
83 skills in this plugin
/ad-creative-testingTurn one winning ad into a creative testing plan for TikTok and Meta. Decodes why an ad won (hook, argument, buyer, format), plans concepts that Meta's Andromeda and TikTok treat as genuinely different (buyer × angle × format × first frame, not caption swaps), sets how many creatives to launch, the budget per test and when to judge, writes file and ad names that make results readable, reads hook rate, hold rate, CTR and CPA to find which part failed, and says when to kill, iterate or scale. Use when someone asks how many ads to test, how to make ad variants, why their variants all perform the same, whether an ad is fatigued, when to kill an ad, or how to scale a winner. NOT for producing the videos (use ecommerce-video-ads, ecommerce-video-edit or product-video-hooks) or for media-buying account setup./ai-ad-compliance-checkTurns an AI video ad into a compliance report for TikTok Shop, TikTok ads, Meta, YouTube, the FTC, New York's synthetic-performer law and the EU AI Act before it runs: varg video_analyze pulls every shot, spoken and on-screen claim and person, each claim is matched to the seller's evidence, the visuals are checked against TikTok Shop's AI product rules (no fake effects, before/after, changed quantity or size), people and voices against the FTC fake-testimonial rule, and the result is a pass / fix / block list with the rule, source and date, a rewrite for each fix, and the AI labels to set on each platform. Use when someone asks "is this ad allowed", "will TikTok Shop reject this", "check my AI ad for compliance", "do I need an AI label", "can an AI avatar say it used the product", or before publishing AI product ads, UGC or testimonials. Not legal advice, and not for writing the ad (use ecommerce-video-ads or tiktok-shop-video)./ai-parody-videoPlan and make a short AI parody video: a known movie scene, TV format or news shot with one wrong element, 10 to 45 seconds, built to be shared. Gives the joke structure, six formats measured on clips with 60 thousand to 9 million views (scene recast with new dialogue, original-vs-remake, one-prompt sitcom sketch, fake live news shot, character monologue, silent slapstick), which production route each one takes, prompt templates for the sketch and the news shot, subtitle and caption rules, and a plain list of what is allowed with real people, known characters, studio footage and cloned voices, with platform AI labels. Use when someone asks for a parody, spoof, meme video, movie mashup, crossover, "X in the world of Y", a celebrity or politician comedy clip, a fake trailer, or wants videos like the viral AI parodies on X, TikTok or Shorts. Then use scene-recast-video for remakes of an existing clip and multi-angle-monologue for speeches./ai-ugc-ad-videoOpen-source alternative to Arcads: AI UGC ads with an AI actor holding your real product. Casts a creator whose age matches the claim in the room where the problem happens, writes a phone-real script (a yapper, unboxing, street interview or in-car take) with every line in the prompt, locks the face, the voice and the product label across shots, prompts camera flaws and breaths so it doesn't look waxy, generates on Seedance 2.5, Kling 4 or Creatify through varg, and labels it. It never puts a first-person testimonial or result in an AI mouth (FTC rule) and never targets TikTok Shop presenters (AI voices banned there). Use when someone wants AI UGC ads, an AI creator or actor talking about their product, Arcads/Creatify/MakeUGC-style ads, or UGC without hiring creators. NOT for TikTok Shop affiliate videos (use tiktok-shop-video), product-only shots with no person (use product-photo-to-video), or the same characters across a multi-scene story (use varg-consistent-characters)./app-ui-mockupsTen animated UI mockups for product, launch and dev-tool videos, rebuilt as HTML instead of screen recordings: phone message thread, team chat channel, coding-agent terminal session, terminal command run, desktop terminal window, desktop notification banner, code editor walkthrough, 3D code slab, exploded UI panels and an amber CRT console. Presets give typing speed (12-20 characters per second with seeded gaps), reading holds from character count, entrance easing and scale, camera lead before each action, text size as a share of frame height, and theme colors from MIT theme sources, from Charm VHS, Screen Studio, Emil Kowalski, Apple HIG and Netflix timing rules. Use when someone wants a fake text or Slack conversation, a terminal or Claude Code demo, a code walkthrough or an exploded UI shot in a video. NOT for recording a real screen or for real people's messages presented as genuine./blender-code-filmMake a short 3D film in Blender written entirely in Python by an agent (Claude Fable 5.2, Claude Code, Codex): the shots and the look as data, a world built from code (procedural terrain, hundreds of instanced props, node materials, lights, haze), one camera per shot bound to timeline markers, a stills-first approval pass, a quarter-size draft, a contact-sheet audit, a fresh critic subagent, then the final render to PNG frames and an ffmpeg encode with an optional varg music bed. Includes a tested starter (scripts/film.py, a 9 s three-shot film) and the Blender 5.x traps that turn frames black. Use when someone asks for a Blender animation or film made with code or Python, "make a video in Blender with Claude", a 3D short, music video, toy commercial or product film rendered in Blender, a low-poly or storybook 3D film, or a remake of a viral Fable 5.2 Blender video. Not for previz that feeds Seedance (code-to-video-previz, varg-previz), three.js films in the browser (karpathy-3d-story, code-3d-explainer), recording a browser game (code-game-trailer), 2D motion graphics (hyperframes, kinetic-type-art) or AI-generated footage (varg-ai).Other plugins' skills for the same job