Clay-Render AI Video Workbench / Agent Skill
Seedance Skill:
Control AI video with clay renders—and prompts that can’t drift from them.
An AI-agent workbench for Seedance 2.5 where the 3D clay-render reference video, pre-render mathematical geometry probe, and text prompt are all generated from a single scene.json—plus a fourth pipeline that reconstructs clay scenes from a single photo.
Author: Huashu / Alchain · MIT License · Verified against repository on
What Seedance Skill helps you ship.
Pipeline A: Spec-Aligned T2V & R2V Prompts
Clarify three essential decisions upfront (length, aspect ratio, single take vs. cuts), draft a shot sheet, and output prompts aligned with official Seedance guidelines.
Pipeline B: Deterministic scene.json Clay Engine & Probe
Solve 10 camera rigs mathematically in engine/solver.mjs, catch out-of-frame subjects or wall collisions before rendering via probe.mjs, and render 12s 1080p clay video in ~9 seconds.
Pipeline C: 6-Element Reference Image Prompts
Keep clay video dedicated to space, camera motion, and timing while locking materials, lighting, and styling via paired reference-image prompts.
Pipeline D: Photo-to-Clay Reconstruction
Reverse-engineer a 3D clay scene directly from a user-provided photo so the same image anchors both spatial layout and texture reference.
Quick Start
Run the multi-camera template through probe, render, and prompt generation.
git clone https://github.com/alchaincyf/seedance-skill.git ~/.claude/skills/seedance-skillRequires Node.js 18+ and ffmpeg (for frame self-checks). Photo-to-clay reconstruction additionally uses Python 3 + opencv-python; npx hyperframes downloads on demand.
1. Clone the workbench and verify Node 18+ & ffmpeg
Clone alchaincyf/seedance-skill into ~/.claude/skills/seedance-skill (compatible with Claude Code, Codex, Cursor, and OpenClaw) and confirm Node 18+ and ffmpeg work.
2. Approve the shot sheet and clear probe.mjs to zero red flags
Confirm duration, aspect ratio, and cuts first. Generate scene.json, run engine/probe.mjs until zero red geometry defects remain, then build and render whitemodel.mp4.
3. Inspect cut-point frames and export measured prompts
Run engine/frames.mjs to inspect frames around every cut point, then run engine/make_prompt.mjs to generate a text prompt measured directly from the clay geometry.
Copy-and-paste first prompt
Use seedance-skill to plan a 12-second 16:9 shot: [describe your subject and desired camera movement]. Follow references/intake.md to confirm parameters and give me a shot sheet first. Once approved, author scene.json, verify zero red errors with engine/probe.mjs, and generate both the clay-render build steps and the geometry-measured Seedance prompt.
Real references and examples from the repo.
Human-Readable Rules Explainer ↗
Interactive docs/index.html explaining why each clay-render and camera rule exists.
10 Camera Rigs & Shot Distances ↗
Complete camera-rig specification covering orbit, dolly, crane, tracking, POV, and multi-cut setups.
scene.json Full Schema Spec ↗
Exact JSON structure shared by the renderer, geometry probe, and prompt generator.
Cross-Model Formula Comparison ↗
Comparison of four official video model guidelines and how three real conflicts are resolved.
Frequently asked questions.
Why generate clay-render videos instead of writing longer text prompts?
Text alone cannot lock multi-cut timing, exact orbits, or spatial blocking. Field tests showed hard cuts in a 30fps clay render transfer to 24fps generated output within a single frame, while reference images lock texture and lighting.
What errors does engine/probe.mjs catch before rendering?
Subject out of frame, subject under 10% frame height with minimal motion (which video models silently drop), dead time, camera clipping through walls, and wide formations overflowing the lens.
How does it stop clay characters from walking backward?
Character orientation is computed automatically from path tangents in code, and humanoid proxies include visible nose and chest markers so frames.mjs makes orientation obvious on inspection.
Why should clay subjects avoid arbitrary bright colors?
Real tests showed clay colors bleed into generated footage (e.g., blue clay crowds turning into blue-masked crowds). Keep clay neutral and assign color via reference images.
Does seedance-skill call Seedance APIs directly?
No—it focuses on pre-production geometry, clay-render generation, frame QA, and measured prompts. You upload the resulting whitemodel.mp4 and prompt.md to Seedance.
Primary sources
Verified on . Capabilities and install commands follow the public repository; check GitHub for the latest changes.