shot-quality-gate
Skill4 starsChanged 2 months agoMITView on GitHub
Inspect a generated advertisement frame with the local vision model and decide whether it may proceed to video generation - product identity against references, warped text or logos, anatomy errors, and whether the required content is present. Use after every generated frame and before any clip is made from it, or when the user asks to check, QA or verify generated shots.
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ad-brief-intakeSkill
- ad-compliance-reviewSkill
- ad-reference-breakdownSkill
- ad-script-writingSkill
- cineloom-ad-filmSkill
- final-cut-assemblySkill
- spark-local-media-generationSkill
- spark-model-schedulerSkill
- storyboard-designSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 38
When every candidate is rejected, change the prompt according to the issue before regenerating - the same prompt mostly fails the same way:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Shot quality gate
Video generation is the expensive step - about six minutes a clip on this machine - and it faithfully animates whatever is wrong in its first frame. Gate frames with a second pair of eyes that did not write the prompt, on a different model from the one that did.
Workflow
Gate every frame against the approved product hero still and the storyboard's
must_show:cineloom qa --project <id> --shot 1 --frame projects/<id>/frames/shot_001.png \ --ref projects/<id>/refs/product.png --expect "the can upright in ice with its label readable"The local StepFun vision model returns
{"pass", "score", "issues"}; the report is saved toreports/qa_1.json. Exit code 1 means rejected.- Reject on any one of these, whatever the score:
- the required content is missing;
- the product is a different product from the hero still: container type, main colours or brand lettering. Condensation, lighting, angle, scale and fine print are expected to change and are not grounds;
- any text outside the product label - captions, slogans, numbers, lens specs, watermarks - or any garbled or duplicated lettering;
- a person, hand or fingers in a shot that does not call for them; extra limbs, malformed hands, a distorted face;
- the product cropped, floating, physically implausible, or a drink that should be clear in an odd colour.
- With several candidates for a shot, keep the passing one with the highest score.
- When every candidate is rejected, change the prompt according to the issue before regenerating - the same prompt mostly fails the same way:
- product mismatch -> restate that image 1 is the product and that its label must not change; simplify the scene around it
- stray text -> remove whatever in the prompt reads like a caption, a number or a spec
- unwanted hands or people -> reframe as a product-only composition
- missing content -> move it to the front of the prompt
- At most two regenerations per shot. Then keep the best attempt and note the open issue for the delivery report.
- If the vision model cannot return a verdict, retry once with a larger token budget. If it still cannot, accept the frame marked as unverified and say so in the delivery report. The gate must never take the whole film down, and it must never claim a check it did not make.
- Record pass rate and regeneration count across the project; they are the evidence that the loop works.
Limits
The vision model judges one frame. It does not see motion, it can miss small logo errors, and it always reasons before answering, so give it at least 3500 output tokens. For hero product shots, show the frame to the user as well.
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.

