evaluator
/evaluator
Quality evaluation of rendered UGC mp4s — scene segmentation, audio loudness / dead-air, caption density, and per-scene visual analysis. Produces an actionable report (eval.json + eval-report.md) sized for a downstream fixer agent. USE WHEN the user asks to "evaluate / score / grade / review / QA / check quality of" a rendered video, asks "is this video good?", drops an mp4 path with no other instruction, mentions "find issues / problems / artifacts", asks for retention or scroll-stop assessment, or has just rendered something and wants verification before publishing. TRIGGER (EN): "evaluate t
- Author
- alecs5am ↗
- Repository
- ralphy ↗
- Licence
- Apache-2.0
- Last repository change
- 04.11.2026
Assessment and security
- Files in this package
- 4
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 04.11.2026, without references to retired models or APIs.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
What it does and when to use it
Quality evaluation of rendered UGC mp4s — scene segmentation, audio loudness / dead-air, caption density, and per-scene visual analysis. Produces an actionable report (eval.json + eval-report.md) sized for a downstream fixer agent. USE WHEN the user asks to "evaluate / score / grade / review / QA / check quality of" a rendered video, asks "is this video good?", drops an mp4 path with no other instruction, mentions "find issues / problems / artifacts", asks for retention or scroll-stop assessment, or has just rendered something and wants verification before publishing. TRIGGER (EN): "evaluate t
Triggers from the description
Original author description
Quality evaluation of rendered UGC mp4s — scene segmentation, audio loudness / dead-air, caption density, and per-scene visual analysis. Produces an actionable report (eval.json + eval-report.md) sized for a downstream fixer agent. USE WHEN the user asks to "evaluate / score / grade / review / QA / check quality of" a rendered video, asks "is this video good?", drops an mp4 path with no other instruction, mentions "find issues / problems / artifacts", asks for retention or scroll-stop assessment, or has just rendered something and wants verification before publishing. TRIGGER (EN): "evaluate t
How it works
- Trigger refinements
- Hard invariants
- What this skill is not
- The single command
- How to read the report
- Workflow
- Editorial retention review (post-render)
- Post-publish outcomes (558)
- Post-publish comments (582)
- When findings are clearly false-positives
SKILL.md preview
---
name: evaluator
namespace: user
description: >-
Quality evaluation of rendered UGC mp4s — scene segmentation, audio loudness / dead-air, caption density, and per-scene visual analysis. Produces an actionable report (eval.json + eval-report.md) sized for a downstream fixer agent.
USE WHEN the user asks to "evaluate / score / grade / review / QA / check quality of" a rendered video, asks "is this video good?", drops an mp4 path with no other instruction, mentions "find issues / problems / artifacts", asks for retention or scroll-stop assessment, or has just rendered something and wants verification before publishing.
TRIGGER (EN): "evaluate this video", "score the render", "grade the mp4", "review the final cut", "QA this video", "is this ready to ship", "what's wrong with this video", "find issues in <path.mp4>", "audit the video", "scene-by-scene breakdown", "retention check", "quality gate".
See body for ALSO FIRE / DO NOT FIRE / HARD INVARIANTS.
---
# evaluator
## Trigger refinements
**ALSO FIRE** when the user just dropped a path that ends in `.mp4` from `.ralphy/workspaces/<ws>/projects/<id>/render/` with no other instructions, when an editor handed off and the user asks "and now?" (any language), or when the owner sends the comments on a posted video ("what do the comments say", "analyze the comments", "what should the next video be") — that is the post-publish comments flow below.
**DO NOT FIRE** for unrendered projects (handback to editor for `ralphy render`), for raw research downloads (those go through researcher's `analyze-video` flow, not eval), or for source media that hasn't been composed yet.
## Hard invariants
- Every model call (vision pass) routes through `cli/lib/providers/llm.ts → callLLM()` via the CLI. No direct OpenAI / fal calls.
- Findings are deterministic outputs of `cli/lib/eval/*` — don't paraphrase them; pass through verbatim to the fixer agent.
- **Keyframe slicing is a cheap diagnostic, NOT a ship gate (#411).** A keyframe-only (or structure-only) report can NEVER mark a Unit ship-ready — `report.gate.shipReady` is hard-false on it. The final gate before forming/publishing a Unit is the **native-video** pass (full mp4 → model), or **deep-style** when a STYLE_LOCK/brief exists. Screenshot slicing misses temporal continuity, audio-picture alignment, pacing, and caption sync — exactly the failures that hallucinate when the model only sees stills.
> **Where this sits in the Unit lifecycle.** Eval is phase 14 of the canonical [Unit lifecycle](../../../docs/playbooks/unit-lifecycle.md). Its native-video gate is the one that flips `polished` to `true` in `ralphy project status <id> --contract`; the `quality-gate-failed` and `native-gate-required` stop conditions are derived from `eval.json`'s `gate` / `scoring.verdict`. A `block` verdict feeds the repair loop (phase 15) and the optional polish council (phase 16).
---
You evaluate rendered UGC videos and produce a report that another agent (the fixer) can act on without reading the video itself. The contract is: **the report is the handoff**.
## What this skill is not
- Not a researcher tool. For "analyze this TikTok/Reel from a creator I want to imitate", route to `/researcher`.
- Not a fixer. The findings list is meant to be read by a separate agent (or the editor / art-director / scenarist) that will execute the fixes. Don't try to fix issues from inside this skill — that's a different role and would skip the user's chance to triage.
- Not a publisher / scheduler. Verdict is informational, not a publish gate.
## The single command
```bash
ralphy eval video <path-to-mp4>
```
Auto-detects the project ID when the mp4 lives at `.ralphy/workspaces/<ws>/projects/<id>/render/...` (the current layout — fixed in #411; the legacy `workspace/projects/<id>/` shape still resolves as a fallback). If detected, the report incorporates `scenario.json`, `captions.json`, `BRIEF.md`, `STYLE_LOCK.md`, and the template name from the project — these unlock the *declared-vs-actual* findings (duration drift, hook-zone-thin-vo, intent-drift, etc.) that are otherwise unavailable.
### Validation modes (`--mode`, #411)
Eval has four explicit modes, cheapest → most thorough. **Choose by what you're doing: a quick smoke check vs. the final gate before a Unit ships.**
| Mode | What it runs | Model spend | Can mark a Unit ship-ready? |
|---|---|---|---|
| `structure` | Deterministic only: ffprobe, scene durations, loudness, dead-air, caption density. No model call. | $0 | **No** |
| `keyframe` | structure + the cheap per-scene keyframe vision pass (one still/scene, gemini-flash). A smoke check for blank/garbled frames. | ~$0.01 | **No** |
| `native-video` | structure + a **full-mp4 model pass** (gemini-3.1-pro-preview sees every frame at native temporal resolution) for temporal continuity, audio-picture alignment, pacing, caption sync, format fit. No style sheet required. | model on full mp4 | **Yes** (when verdict passes) |
| `deep-style` | native-video PLUS style-lock / brief / reference conformance scoring. | model on full mp4 | **Yes** (when verdict passes) |
```bash
ralphy eval video <mp4> --mode native-video # the final gate before forming/publishing a Unit
ralphy eval video <mp4> --mode keyframe # cheap diagnostic only — does NOT approve a polished Unit
```
**Default (no `--mode`) = the final gate.** When you omit `--mode`, eval runs the **native-video** gate automatically if a model provider is configured (`OPENROUTER_API_KEY`), and upgrades to **deep-style** when a project `STYLE_LOCK.md` / `BRIEF.md` is discoverable. With NO credentials it falls back to `structure` and explicitly marks the report **not ship-ready** (a `eval.mode-downgrade` info finding records why).
**Why keyframe is not enough for a polished Unit:** a still never reveals a continuity jump between cuts, a caption that lags the VO, a music hit on the wrong frame, or a draggy hold. Those are exactly the failures the native-video pass catches and the keyframe pass hallucinates around. Use `keyframe` to triage fast and free; use `native-video` (or `deep-style`) as the gate before `ralphy unit` / publish. The report's `gate.shipReady` boolean is the authoritative signal — it is hard-false on any non-native report.
**Legacy flags (still work, mapped to modes):**
- `--no-vision` ⇒ `--mode structure`.
- `--no-deep-vision` ⇒ caps at `--mode keyframe` (never escalates to the full-mp4 pass).
- `--style-sheet` / `--brief` ⇒ implies `--mode deep-style`.
### Deep-style pass (project-specific, anti-generic findings)
When the user asks "validate against my niche / style / creator reference" — or the project carries a style-sheet (typically from `ralphy research scrape-profile` or `ralphy project style-lock`) — the **deep-style** mode scores the full mp4 against every rule in the style sheet's "Vibe & visual register" and "What this creator NEVER does" sections. Trigger it explicitly with `--mode deep-style`, or just pass `--style-sheet` (which implies it):
```bash
ralphy eval video <mp4> --style-sheet <style-sheet.md> [--brief <BRIEF.md>] [--reference-urls <url> <url> ...]
```
Both native-video and deep-style produce a structured JSON output at `<out-dir>/eval-deep-vision.json` (the repair loop, #409, consumes its `what_to_redo`). It carries:
- `overall_verdict` — holistic pass/warn/fail
- `register_match` — declared vs observed cinematographic register, with severity if mismatched
- `rule_conformance[]` — per-rule pass/warn/fail with **verbatim style-sheet quotes** and **specific timestamp evidence** from the rendered video
- `brief_conformance[]` — same shape, scoring against BRIEF.md intent
- `uncanny_mechanism_check` — whether the render delivers the style sheet's proprietary aesthetic mechanism or just mimics the surface
- `pacing_and_timing` — hook / body / closer evaluation
- `ai_artifacts[]` — concrete timestamp-tagged artifacts the model spotted
- `what_works` — be honest, what the render did right
- `what_to_redo` — prioritized 1-6 item fix list with `target` (start-frame / end-frame / i2v / audio / scene-prompt / model-swap / regen-entire)
Each rule violation also flows into the main `findings[]` array under `style.register-mismatch`, `style.rule-violation`, `brief.intent-drift`, `style.aesthetic-mechanism-missing`, or `style.timing-*` categories so the unified scoring + downstream fixer pipeline pick them up.
**When to use deep-style over native-video:**
1. The user said "validate against [creator]" / "evaluate against my style" / "is this on-brand for [niche]".
2. The user shows you a `scrape-profile` style-sheet path and then drops an mp4.
3. The project has a discoverable `STYLE_LOCK.md` / `style-sheet.md` (auto-discovered by walking up from the mp4 path). Eval auto-upgrades the default gate to deep-style in that case.
**When native-video is the right gate (no style scoring):** a generic Unit-readiness check with no creator-style reference — "is this ready to ship", "QA the final cut". This is the default. It still catches temporal/audio/pacing/caption/format failures; it just doesn't score against a specific creator's rules.
**When NOT to run the full-mp4 pass at all:**
- A fast triage pass mid-iteration — use `--mode keyframe` (cheap, free-ish) but remember it can't approve a Unit.
- The mp4 is over about 13.9 MiB raw (the provider's 20 MB request limit after base64) — the deep-vision pass now transcodes a smaller proxy automatically (#583) and records it under `upload` in `eval-deep-vision.json`; it fails with a clear error only when the video is too long to fit.
### Standard flags
- `--mode <structure|keyframe|native-video|deep-style>` — the explicit validation mode (see the table above). Omit for the default final gate (native-video, or deep-style when a STYLE_LOCK/brief is discoverable).
- `--no-vision` — legacy alias for `--mode structure` (deterministic only, $0). Use for a quick structure/audio sanity pass; not a ship gate.
- `--no-deep-vision` — legacy: cap the mode at `keyframe` (never run the full-mp4 native pass even if a `--style-sheet` / `--brief` / project `BRIEF.md` is present).
- `--deep-vision-model <id>` — override the full-mp4 model. Default `google/gemini-3.1-pro-preview`. For cheaper smoke tests, swap to `google/gemini-2.5-pro`.
- `--project <id>` — force project context when the mp4 was moved out of the project tree.
- `--no-project` — explicitly evaluate as a standalone video (skips `scenario.json`-derived findings).
- `--out-dir <path>` — override where `eval.json` + `eval-report.md` + `eval-deep-vision.json` land. Default: project dir, or the mp4's parent for standalone.
The command returns JSON with `verdict`, `score`, `mode`, `shipReady`, `gateReason`, `findings` (count), and the output paths. **`shipReady` is the gate to honor before forming/publishing a Unit** — never form a Unit off a `shipReady: false` report unless the user explicitly accepted a cheap-mode result.
## How to read the report
Two files written:
- `eval.json` — machine contract. The fixer agent reads this. Schema in `references/report-schema.md`.
- `eval-report.md` — same data flattened for humans. Show the user this one.
The shape that matters: `report.findings[]` is the actionable list. Each finding has:
- `id` (F1, F2, …) — stable ref to call out in chat
- `category` — taxonomy like `audio.loudness`, `vision.text`, `structure.duration-drift`
- `severity` — `info` | `warn` | `fail`
- `sceneIndex` + `timestampSec` — where in the video, when applicable
- `message` — what's wrong (specific, not generic)
- `fixHint` — what kind of fix, conceptually
- `fixCommand` — a copy-pasteable `ralphy` / `ffmpeg` command if one applies
`scoring.verdict` is `pass`, `warn`, or `fail` — a quality summary. `report.gate` is the **readiness** signal: `gate.mode` (which mode ran), `gate.nativeVideo` (was it a full-mp4 pass), and `gate.shipReady` (the single boolean a Unit-forming step gates on). A `pass` verdict from a `keyframe` gate still has `shipReady: false` — keyframe slicing cannot approve a polished Unit. The user always decides whether to ship, but do not present a non-native report as ship-ready approval.
## Workflow
1. **Confirm the path.** If the user gave a project id instead of an mp4 path, resolve to `.ralphy/workspaces/<ws>/projects/<id>/render/final.mp4` (or whatever the project's render output is — check `composition-props.json` if the path isn't obvious).
2. **Run** `ralphy eval video <path>`. Omit `--mode` for the final gate — it runs native-video automatically (or deep-style when a STYLE_LOCK/brief is discoverable). Use `--mode keyframe` only when the user explicitly wants a fast/cheap triage and accepts it isn't a ship gate.
3. **Show** the markdown report to the user, highlighting `gate.shipReady`, the verdict, and the top 3-5 findings by severity. If `shipReady` is false because the run was a cheap mode, say so and offer to re-run native-video.
4. **Hand off** if the user wants fixes. The fixer agent reads `eval.json` directly — don't summarize the findings into your own prose, just point at the path. Suggested handoffs by finding category:
- `vision.text`, `vision.composition`, `vision.ai-artifacts`, `vision.quality` → `/ralph-art-director` (regen affected keyframes / tweak prompts).
- `structure.duration-drift`, `structure.hook-zone-*` → `/ralph-scenarist` (re-time / re-script).
- `audio.*`, `format.*` → `/ralph-editor` (loudnorm / re-render / re-cut).
- `captions.*` → `/ralph-editor` (regenerate captions or tighten the script).
## Editorial retention review (post-render)
Alongside `ralphy eval video`, run the course-grounded editorial pass in [`../scenarist/references/retention-review.md`](../scenarist/references/retention-review.md): `ralphy eval retention-check <id>` for the scenario facts (facts only, never fails), then judge job fit, hook, one idea, development, payoff, next step and visual presentation from the render. Write it to `<project>/RETENTION_REVIEW.post-render.md` (append-only, `.v2.md` on a re-run). It is advisory: it never changes `verdict` or `gate.shipReady`, and its findings are not eval `findings[]`. When it contradicts a rubric-derived finding (cut interval, duration, captions, CTA), say which one the course treats as context-dependent and let the user decide.
## Post-publish outcomes (#558)
The render eval judges craft; real outcomes judge whether the work was worth doing. When the owner sends platform analytics screenshots, read them yourself (free), fill the JSON payload, run `ralphy analytics import <unit> --platform <p> --data <json> --screenshot <png> --dry-run`, show the parsed numbers, and write only after the owner confirms (`--yes`). Then `ralphy analytics report --workspace <ws>` gives the hit rate and the decision-vs-outcome table. Field locations, unit conversions, and traps per platform: [`references/analytics-screenshots.md`](references/analytics-screenshots.md).
## Post-publish comments (#582)
Comments on our own posts say what viewers wanted next, where they got lost, and what they disputed. Read comment screenshots yourself (free) into the JSON payload, take pasted text as is, or pull our own YouTube video's comments with `--from-ytdlp <url>`. Then `ralphy analytics comments import <unit> --platform <p> --data <json> --dry-run`, show the labels, re-run with `--yes`, and run `ralphy analytics comments report <unit>` for class counts, the beat-level confusion map (joined to the imported retention curve), and iteration proposals with comment-id evidence. Nothing is posted or replied to. Payload, classes, and how proposals are derived: [`references/post-comments.md`](references/post-comments.md).
## When findings are clearly false-positives
The October 2026 gate audit ([`docs/research/gate-audit-2026-10.md`](../../../docs/research/gate-audit-2026-10.md), #569) moved the most common format-choice findings to advisory in code:
- `structure.hook-zone-static` is `info`. The scene detector sees hard cuts only, so an animated opener, a static frame around a moving panel (the brainrot top-half image, an IG-post mock, a letterboxed talking head) or a deliberate continuous shot reads as one long shot. Judge the opening with the full-video pass and the retention review instead.
- `format.resolution` no longer fires on a 9:16 render at or above 1080x1920 (e.g. 2160x3840); a portrait frame that is not 9:16 is a `format.aspect-ratio` warn.
- Keyframe `vision.*` findings are capped at `warn` and carry a "confirm on the full video" hint: the audited keyframe fails (clipped-text claims on frames whose text was fully visible, split-screen and platform-chrome layouts) were wrong on every frame inspected.
- `captions.thin` / `captions.dense` count caption words, not caption entries.
`RALPHY_EVAL_STRICT_RUBRIC=1` restores the pre-audit severities for one release. Other template-specific false positives still go in the chat handoff: mark them expected-for-template so the fixer agent skips them.
## Handoff to a fixer agent
When the user says "fix the issues" or similar, a downstream agent will read `eval.json`. The minimum it needs from you:
- Path to the report
- Path to the original mp4
- Project id (if any)
- Optional: which finding ids to skip (template false-positives)
Do not try to fix from inside evaluator. The skill ends at the report.
## References
- `references/report-schema.md` — full JSON schema of `eval.json`
- `references/analytics-screenshots.md` — reading TikTok / Instagram / YouTube analytics screenshots for `ralphy analytics import`
- `references/post-comments.md` — comment payload, classes, and proposals for `ralphy analytics comments import|report`
- `../scenarist/references/retention-review.md` — the post-render editorial retention review (Content Autopilot method)
- `cli/lib/eval/findings.ts` — rule taxonomy + thresholds (the source of truth for `category` and severity ladders)
- `MODELS.md` — vision model used (`google/gemini-2.5-flash` via OpenRouter)
- `docs/green-zone.md` (when added) — the safe-zone geometry the vision prompt references
Files in this package (4)
- SKILL.md 18 KB
- references/analytics-screenshots.md 6 KB
- references/post-comments.md 6 KB
- references/report-schema.md 6 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · alecs5am/ralphy | 100 | Apache-2.0 |
| mickeyyaya/evolve-loop | 100 | Apache-2.0 |
| alecs5am/ralphy | 100 | Apache-2.0 |
Database snapshot: 13.11.2026 · package version 870a9a42c301 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100100x-prompt-compose
Fill a UGC ad-generation template with product/persona/scene variables and package the result for a target image or video model (Veo / Seedance / 即创). Use when the user asks to "帮我组装提示词", "填个模板出提示词", "这条视频用什么模型", "生成视频提示词", "选个模板配变量", "compose a video prompt", "fill in this… - 100video-quality-reviewer
Review a rendered code-made video against its storyboard and the acceptance checklist. Runs the automatic checks (spec, layout, ffprobe, black/frozen frames, loudness, determinism), then actually looks at the contact sheet, seam strips and keyframes to judge accuracy, events,… - 100script-evaluator
Evaluate video scripts and presentations for flatness, tension, and emotional impact. Use when: 'is this script good', 'review script', 'evaluate video', 'why is this boring', 'flatness check', 'script review', 'improve script', 'rate this video'. Scores 6 dimensions (tension,… - 98video-review-skill
Lets Claude "watch" a video without playing it. It turns a rendered video or a Remotion project into frames taken at scene changes and every 2 seconds, reads the on-screen text in each frame, matches the narration to what is on screen, and checks the audio for loudness,… - 100audio-polish
Fix video and audio loudness, dead air and clicks. Use when the user wants audio normalized for YouTube/TikTok/podcasts (two-pass EBU R128 loudnorm, true-peak limit), silence or dead air trimmed from the start, end or middle, clips joined without pops, or crossfades between clips. - 90apply-video-review
Apply a video review made with the AI Video Review Tool (video-review). Use when the user asks to "check my review", "apply my video review", "implement the review notes", or points at a *.review folder, REVIEW.md or notes.json next to a rendered video.