ad-reference-breakdown
Skill4 starsChanged 2 months agoMITView on GitHub
Break a reference advertisement video into shots and describe each one (framing, camera move, subject, on-screen text, pacing) so it can be rebuilt with a different product, character, or scene. Use when the user uploads or links a reference ad and asks to 拉片, replicate, remix, or "make one like this", or when a storyboard must follow an existing video's rhythm.
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ad-brief-intakeSkill
- ad-compliance-reviewSkill
- ad-script-writingSkill
- cineloom-ad-filmSkill
- final-cut-assemblySkill
- shot-quality-gateSkill
- spark-local-media-generationSkill
- spark-model-schedulerSkill
- storyboard-designSkill
The file
Files
Ad reference breakdown (拉片)
Turn a reference video into an editable shot list. Cutting is done with ffmpeg and viewing with the local vision model, so an unreleased or licensed reference never leaves the machine.
Workflow
Cut the video into shots and export one keyframe per shot:
cineloom shots reference.mp4 --out projects/<id>/breakdown --threshold 0.30This writes
shots.json(index, start, end, duration, keyframe path) andshot_XXX.jpg. Lower--thresholdwhen soft dissolves are missed; raise it when flashes or fast motion cause false cuts. Shots shorter than--min-shotseconds merge into the previous one.- Describe each keyframe with the local StepFun vision model (
cineloom qauses the same endpoint). Send keyframes in batches of at most 12, in order, and ask for the fields in the output format. Ask for what is visible; do not let the model guess brand names it cannot read. - Derive pacing from
shots.json, not from the model: average shot length, the longest and shortest shot, and where the product first appears. - Map every shot to a storyboard slot. Keep duration, framing, and camera move; replace subject, product, and scene with the user's approved assets.
- Hand the result to storyboard design. Reference describes structure only - never carry over the reference brand's logo, slogan, or talent likeness.
Output format
{
"source": {"duration": 15.0, "shot_count": 7, "avg_shot_seconds": 2.1},
"shots": [
{"index": 1, "start": 0.0, "end": 1.8, "framing": "close-up", "camera": "slow push-in",
"subject": "...", "action": "...", "on_screen_text": "...", "lighting": "...",
"role": "hook | product_reveal | benefit | social_proof | cta"}
]
}Failure handling
shots.jsonhas one shot for a clearly edited video: the threshold is too high; rerun lower.- The vision model returns prose instead of JSON: resend that batch with the format only.
- Vertical and horizontal versions differ: break down the ratio the user will deliver.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

