/qq:recordfrom qq
Records review videos and screenshot sets of a running game, encodes them to captioned web-ready mp4, self-checks every clip through contact sheets, and builds a review page. Covers Unity in depth; Godot and Unreal have reference notes.
Ships in qq. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Respond in the user's preferred language (detect from their recent messages, or fall back to the language setting in CLAUDE.md). Captions and page text go in that language too.
Run qq scripts as
${CLAUDE_PLUGIN_ROOT}/bin/<name>: they are not on PATH, so a bareqq-frames-to-mp4.pyexits 127. Thebin/*.pyfiles are bash wrappers: run them directly or withbash, not withpython. They need Pillow and ffmpeg (system ffmpeg, orpython -m pip install pillow imageio-ffmpeg); a missing one is reported with the install command.
Arguments: $ARGUMENTS — what to record (free text: the feature, the acceptance items, a branch or commit to look at). Optional --out <dir>: the <topic> folder (step 4) the recording goes under.
Copy this checklist into your reply and tick it off:
Recording progress:
- [ ] 1. Shot list: every visible item → one clip
- [ ] 2. Capture path picked
- [ ] 3. Scene controllable, effect verified to happen
- [ ] 4. Captured (frames + clips.json + done marker)
- [ ] 5. Encoded (qq-frames-to-mp4 --batch)
- [ ] 6. Contact sheets read, problems re-recorded
- [ ] 7. Review page built
- [ ] 8. Handed off: link + absolute local path + what was not recorded
Write the list before touching the engine. One row per visible thing the user asked for or the acceptance criteria name, nothing skipped: users judge by watching, and an item without a clip counts as not delivered.
| Column | Rule |
|---|---|
| What to see | One sentence the viewer can check ("the keeper opens the gate, the hen walks out") |
| Medium | Anything that moves → video. Screenshots only for static looks (materials, layouts). Never GIF as the deliverable: palette reduction and downscaling read as "mosaic" |
| Camera | The player's default game camera first, then a close-up and a wide shot when the effect is small or spread out. Close-ups must avoid occluders (walls, railings) |
| Length | 10–20 s; rare or slow events longer, and note at which second they happen |
| Done when | For an effect the simulation decides (a flock takes off, a worker reaches the door): the readback that says it happened, plus how long to keep filming after it, and a maximum length |
| Speed | Real time. Slow motion is only ever an extra next to the real-time clip, for events too fast to see (blasts, splashes, hits) or when the user asks; never the only version |
| Readback | The state that proves it worked (counts, HP, water depth, timings), read from the game at the start and end of the clip |
Before/after comparisons: lock camera, start state and time, random seed, and noisy post effects (TAA, motion blur, auto exposure); change one thing. Variants the user must choose between have to differ visibly from the default camera, and every clip says which side is which.
| Situation | Path |
|---|---|
| Quick look, no code change, any branch or commit (including a colleague's) | Editor recorder: copy templates/unity_editor_recorder.cs, run it with eval_file in Play mode — reference/unity.md §1 |
| Acceptance evidence where the project judges effects in a player / development build | Build reel: a dev-only component started by a command-line switch — reference/unity.md §3 |
| Animation preview outside Play mode (editor-only preview scene) | reference/unity.md §2 |
| Godot / Unreal | reference/godot.md / reference/unreal.md |
The Editor recorder needs the official Unity CLI (eval_file). Check the channel first: ${CLAUDE_PLUGIN_ROOT}/bin/qq-unity-cli.py channel --project "$PWD" prints unity-cli, tykit or none (shared/unity-live-state.md explains them). On tykit or none, use the build reel. Call shapes and reply rules are in shared/unity-cli-reference.md.
Recording a branch or commit you are not working on: check it out in a separate worktree and open that worktree's editor. Never switch the main checkout. Follow the project's rules for worktrees, editor slots and cleanup. The project's CLAUDE.md may also name a project-specific recording skill: read it first.
Done), escalate the trigger on a deadline (nobody walked close enough after 8 s → send the dog), wait for a clean start (the flock back on the ground before sending the dog, or the clip shows someone else's effect), and caption the second it happened. If it still never happens, find out why before re-recording: often the setup is wrong, sometimes the feature is (birds nobody can reach), and that goes on the page as a finding.Time.captureFramerate in Unity, --fixed-fps in Godot): slow rendering then never drops or speeds up frames. Capture at 30 per game second. For fast events capture 60 or 120 (frame counts and trigger frames in the shot list scale with it); --batch still puts a real-time clip on the page and adds the slow-motion copy as a link.<out>/<clip>/f_00000.jpg … at 1920×1080, plus <out>/clips.json ([{"name", "title", "frames", "fps", "seen", "state"}]) and <out>/done.txt (or error.txt). Optional per-frame captions in <out>/<clip>/timeline.jsonl ({"f": 0, "caption": "..."}).<out>/stills/<name>.jpg and list them in clips.json as {"name", "title", "still": true, "image": "stills/<name>.jpg", "state"}. The Unity template does this for shots marked still.ClearEye / Follow / Fixed pick the viewpoint, with every building and prop that can stand in front of the subject in occluders.Done that hit their maximum without it ever being true write "seen": false into clips.json; --batch names them.<topic>/ holds your recorder script, <topic>/rec is <out> (wiped at each start, so nothing else goes in it).rec. Otherwise record just the failed shots into <topic>/rec-retake with the template's ONLY list (with ONLY set it won't wipe a folder that holds anything unless its name ends in -retake), --batch that folder, and point the page item at the retake: ../../rec-retake/mp4/<shot>.mp4, or ../../rec-retake/stills/<shot>.jpg for a screenshot. A second retake round goes into a new folder (rec2-retake) when the page still points at the first one.Temp/), and don't record while tests, builds or other heavy jobs run on the same machine: frames stall and the editor can be killed for memory.done.txt with a polling helper instead of fixed sleeps.Run exactly this; don't hand-write encoders:
"${CLAUDE_PLUGIN_ROOT}/bin/qq-frames-to-mp4.py" --batch "<out>" --lang <page language, e.g. zh-CN> --page-title "<page title>"
It encodes up to 4 clips in parallel into <out>/mp4/<clip>.mp4 (libx264, yuv420p, even dimensions, faststart; title bar from clips.json, per-frame captions from timeline.jsonl) and writes <out>/mp4/manifest.json. Every <clip>.mp4 plays in real time at the clip's capture rate (thinned to at most 60 fps). A clip captured above 30 fps also gets <clip>_slow.mp4: every frame at 30 fps with a speed badge, linked under the real-time clip on the page. It reads every output back and exits 1 on a wrong size, codec or pixel format. About 2 minutes for 3000 frames at 1080p.
A clip whose effect comes late in a long take (the dog arrives at second 46 of 50): add "from": 40, "to": 50 (game seconds) to its clips.json entry and re-run --batch. Only that window is encoded, captions included; a from / to that is not a range or starts past the end stops the run. Say in the item's fact that it is a cut and where it starts in the take.
One-off forms. Each input can be a frame directory or an existing video; without --fps a video keeps its own frame rate.
qq-frames-to-mp4.py <frames | video> -o x.mp4 --title "..." [--captions timeline.jsonl]. Frames play at --fps (default 30); --capture-fps 120 with the default --fps makes a slow-motion copy with a badge, so give a real-time clip next to it.qq-frames-to-mp4.py <before> --compare <after> --labels "before,after" --width 1920 -o cmp.mp4
--labels off and say which side is which in --title or on the page.--start-left <s> / --start-right <s>.--title off, or it covers them.Screenshot entries in clips.json are not encoded; they go into the manifest as images. A screenshot-only recording still goes through --batch: it writes a manifest with no videos.
Working from existing clips (a before/after of two earlier recordings, nothing to record):
<out>/: cmp.mp4 from the side-by-side form above, then qq-contact-sheet.py --batch <out> (wide videos automatically get large single-column tiles).qq-review-page.py --scan <out> --lang <page language> writes a draft page and <out>/review.manifest.json (it never overwrites an existing one). Fill that in, add {"image": "sheets/<name>_sheet.jpg"} items if a sheet helps the reader (--scan does not look into subfolders), and rebuild with qq-review-page.py <out>/review.manifest.json."${CLAUDE_PLUGIN_ROOT}/bin/qq-contact-sheet.py" --batch "<out>/mp4"
Read every <out>/mp4/sheets/*_sheet.jpg with the image viewer tool. Screenshots: tile them with qq-contact-sheet.py <out>/stills, or read them one by one. Small effects (eggs, sparks, a number on a prop) can't be judged on 480 px tiles: also read one full-size frame of that clip. For each clip check that:
"seen": false in clips.json;Fix and re-record failures; don't explain them away. Also confirm the frames are from this run, timestamps later than the start. A stale folder from an earlier run looks like success.
Edit <out>/mp4/manifest.json:
title and intro: what was recorded, on which commit or build, when. lang: the page language (zh-CN, ja, …).notes: findings first, things that did not work or behaved unexpectedly.text: what to look at. Per item fact: the readback, e.g. "hens 3 → 2".Add screenshots as {"image": ...} items. Layout:
"full": true makes any item span the row."slow" (written by --batch for fast clips) becomes a link under the clip; video stays the real-time one."wide": true on a section gives every item at least 560 px.Then:
"${CLAUDE_PLUGIN_ROOT}/bin/qq-review-page.py" "<out>/mp4/manifest.json"
It writes <out>/mp4/index.html with relative links and exits 1 listing any missing file. qq-review-page.py --scan <dir> builds a first draft from a folder of clips and screenshots.
pub-style command, a docs host; check CLAUDE.md), publish and give the link. Also give the absolute local path. A page opened only on the local desktop does not reach a user who is away from the machine.eval_file does not need a branch. A dev-build reel component is code and goes through the project's normal change flow.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
game-recording, video-review, screenshot-set, contact-sheet, review-page
npx claudepluginhub tykisgod/quick-question --plugin qq28 skills in this plugin
/add-tests0. Read qq project state first when availableAuthor Unity EditMode, PlayMode, or regression tests for the current change without conflating that with test execution./best-practiceScope DetectionQuick Unity best-practice check — run after editing C# files to catch anti-patterns, performance issues, and runtime safety problems./bootstrapPhase 1: Understand the VisionDecompose a high-level game vision (pillars + rules + references) into executable epics, then orchestrate the full qq pipeline for each. Use when starting a new project, bootstrapping a prototype from a pitch, or breaking a large initiative into parallel workstreams./briefExecution StepsCompare the current branch against its base branch and generate two review documents: architecture change diagram + PR review checklist./changesBehaviorSummarize all changes Claude Code made during this conversation./claude-code-reviewReview Scope Selection (no scope argument)Deep code review via a separate Claude CLI run — reviews uncommitted changes by default, loops until no critical issues remain. Use after implementation (e.g. /qq:execute), before /qq:test and /qq:commit-push.Other plugins' skills for the same job