qa-compare

qa-compare is a command for Claude Code from JosephOIbrahim/Comfy-Cozy. It costs 0 tokens per session (1,432 once invoked), scanned A, original, MIT.

A video quality-assurance workflow for comparing a recreated montage with a reference video frame by frame. A montage is an edited sequence made from multiple video segments.

In plain words
What is it for?
Use it to compare the reference and recreated videos at segment midpoints using the project’s storyboard and generated comparison frames.
Why use it?
It exposes visual differences at matching timestamps instead of relying only on an overall impression.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to compare the reference and recreated videos at segment midpoints using the project’s storyboard and generated comparison frames.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/josephoibrahim/comfy-cozy/qa-compare
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/JosephOIbrahim/Comfy-Cozy

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for qa-compare

README.md
[![agentmods](https://agentmods.dev/badge/commands/josephoibrahim/comfy-cozy/qa-compare.svg)](https://agentmods.dev/commands/josephoibrahim/comfy-cozy/qa-compare)
Your own site
<a href="https://agentmods.dev/commands/josephoibrahim/comfy-cozy/qa-compare"><img src="https://agentmods.dev/badge/commands/josephoibrahim/comfy-cozy/qa-compare.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,432 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01432
Opus 5 $0.00000 $0.00716
Sonnet 5 $0.00000 $0.00286
Haiku 4.5 $0.00000 $0.00143

Measured 8d ago against content hash be1c2fe6101f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

qa-compare scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

subprocess.run(['ffmpeg', '-ss', str(mid), '-i', 'workspace/reference/input_video.mp4',
video-recreation-agent/.claude/commands/qa-compare.md · 122 lines

How it starts

The opening of the file, as written. The whole thing — 122 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/project:qa-compare — QA Expert

You are the QA expert in the Video Recreation Agent Team.

Your job: Compare the recreated montage against the reference video frame-by-frame.

Prerequisites

  • Reference video: workspace/reference/input_video.mp4
  • Recreation: workspace/montage_v1.mp4
  • Storyboard: workspace/storyboard.json

Steps

1. Extract comparison frames at matching timestamps

mkdir -p workspace/qa/frames

# For each segment boundary, extract frames from both videos
python3 -c "
import json, subprocess
sb = json.load(open('workspace/storyboard.json'))
for seg in sb['segments']:
    mid = (seg['start'] + seg['end']) / 2  # midpoint of segment
    sid = seg['id']
    
    # Reference frame
    subprocess.run(['ffmpeg', '-ss', str(mid), '-i', 'workspace/reference/input_video.mp4',
                    '-frames:v', '1', f'workspace/qa/frames/ref_seg{sid:02d}.png', '-y'],
                   capture_output=True)
    
    # Recreation frame
    subprocess.run(['ffmpeg', '-ss', str(mid), '-i', 'workspace/montage_v1.mp4',
                    '-frames:v', '1', f'workspace/qa/frames/rec_seg{sid:02d}.png', '-y'],
                   capture_output=True)
    
    print(f'Segment {sid}: extracted comparison frames at t={mid:.1f}s')
"

2. Create side-by-side comparison images

# For each segment, create a 3-panel comparison (Original | Recreation | Diff)
for i in $(seq -w 1 6); do
  ffmpeg -y \
    -i workspace/qa/frames/ref_seg${i}.png \
    -i workspace/qa/frames/rec_seg${i}.png \
    -filter_complex "
      [0:v]scale=360:-1,drawtext=text='Original':fontsize=20:fontcolor=white:x=10:y=10[left];
      [1:v]scale=360:-1,drawtext=text='Recreation':fontsize=20:fontcolor=white:x=10:y=10[right];
      [left][right]hstack[out]
    " \
    -map "[out]" \
    workspace/qa/compare_seg${i}.png
done

3. Analyze each comparison with Vision

For each pair, send both frames to Claude Vision and evaluate:

Scoring criteria (1-10 each):

  • Composition: Subject placement, framing, camera angle match
  • Style: Color grade, lighting, visual effects match
  • Subject: Character appearance, pose, clothing accuracy
  • Motion: Body language, movement direction (inferred from pose)
  • Temporal: Does this frame appear at the right moment in the sequence

Read the full file on GitHub · 122 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 122 lines · 0 tokens per session scan A be1c2fe6101f

Subscribe to this mod's changes

qa-compare is a command published in the GitHub repository JosephOIbrahim/Comfy-Cozy (24 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,432 tokens. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.