agentleFS
LuisHiluyLuisHiluy/claude-code-pipeline-skills/clip-feedback/SKILL.md

clip-feedback

Skill0 starsChanged 7 months agoMITView on GitHub

Analyze an AI-generated video clip against the prompt that produced it. Detects canon rule violations, emotion/energy/world mismatches, palette drift, and quality issues, then suggests specific prompt fixes to improve the next generation. Use whenever the user has a Veo, Seedance, Kling, Runway, or other AI-generated clip and asks "why does this look wrong", "check the clip", "check this clip", "prompt feedback", "analyze this clip", "compare clip to prompt", or anytime a video was generated from a prompt and needs iteration. Trigger this skill even when the user casually asks "is this good" about an AI clip — prompt vs reality analysis is the job.

  • Reads credentials
  • Installs packages

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask which clip (path) if not obvious from context

    line 59
  2. Distinctive:

    Ask for or find the prompt that generated it

    line 60
  3. Very specific:

    Run --rules-only first for instant feedback

    line 61
  4. Distinctive:

    If the user wants deeper analysis, run the full version

    line 62

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Clip Feedback — Prompt Intent vs Reality

What this does

Takes a video clip plus the prompt that generated it, analyzes what the clip actually looks like (via Gemini 2.5 Pro), and returns:

  • Rule violations — character names in prompt, 4th wall breaks, missing focal length, safety trigger stacking
  • Intent gaps — emotion mismatch, world palette drift, shot type wrong, energy level off
  • Quality issues — text overlays, CGI artifacts, motion blur, missing face
  • Specific prompt fixes — exact corrections to improve the next generation

Usage

Quick rule check (no API call — instant)

python3 scripts/prompt_feedback.py \
  --clip /path/to/clip.mp4 \
  --prompt "the generation prompt used" \
  --rules-only

Full analysis (calls Gemini 2.5 Pro — ~10s)

python3 scripts/prompt_feedback.py \
  --clip /path/to/clip.mp4 \
  --prompt "the generation prompt used" \
  --source veo

Supported sources: veo, seedance, kling, runway, or any label.

From a prompt file

python3 scripts/prompt_feedback.py \
  --clip /path/to/clip.mp4 \
  --prompt-file /path/to/prompt.txt \
  --source seedance

JSON output (for piping to other tools)

python3 scripts/prompt_feedback.py \
  --clip /path/to/clip.mp4 \
  --prompt "..." \
  --json

When the user says "check the clip"

  1. Ask which clip (path) if not obvious from context
  2. Ask for or find the prompt that generated it
  3. Run --rules-only first for instant feedback
  4. If the user wants deeper analysis, run the full version
  5. Present the feedback summary and suggested fixes
  6. Offer to apply the fixes and regenerate

What it checks (canonical rules)

RuleWhat it catches
No character names"Jane" → should be "the daughter"
No 4th wall"looking at camera" → eyeline off-camera
No resolution text"2K" in prompt → handled by tool settings
No music/dialogue"music" in prompt → add to avoid line
Safety stacking3+ trigger words in one sentence → split
Focal length requiredMissing "85mm, f/1.4" → add lens spec
Material descriptorsNo textures → add tactile nouns
World palettePalette drift → strengthen palette direction
Emotion matchPrompt says "dread", clip reads "calm" → add atmosphere cues
Quality flagsText overlays, CGI glow, motion blur → add negative prompts

Configuration

Configure your canonical rules in reference/prompt-rules.md. Each rule gets:

  • A pattern (regex or keyword list) to detect violations in prompts
  • A fix template (the correction to suggest)
  • A severity (block / warn / info)

Dependencies

  • Python 3.10+
  • google-generativeai for Gemini analysis
  • ffmpeg on PATH for frame extraction

Setup

pip install google-generativeai pillow
export GEMINI_API_KEY=your_key_here

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.