quick-question
CLAUDE.md11 starsChanged 2 months agoMITView on GitHub
quick-question is the agent control plane for game-dev work. It is a Claude Code plugin and an engine-agnostic runtime: artifact-driven control (/qq:go), auto-compile hooks, test pipelines, deterministic policy checks, dual-mode cross-model / Claude-only code review with a verification loop, and 26 skills (/qq:*). It targets macOS and Windows (Windows requires Git for Windows for bash + core utilities). Engines at runtime parity: Unity 2021.3+, Godot 4.x, Unreal 5.x, S&box. Unity has the deepest integration via tykit (in-process HTTP server); the…
In this repository28 other files it gives its agents.
- AGENTS.mdAGENTS.md
- add-testsSkill
- best-practiceSkill
- bootstrapSkill
- briefSkill
- changesSkill
- claude-code-reviewSkill
- claude-plan-reviewSkill
- codex-code-reviewSkill
- codex-plan-reviewSkill
- commit-pushSkill
- depsSkill
- design-researchSkill
- designSkill
- doc-driftSkill
- doc-syncSkill
- doc-tidySkill
- executeSkill
- explainSkill
- full-briefSkill
- goSkill
- grandmaSkill
- planSkill
- post-design-reviewSkill
- self-reviewSkill
- tech-researchSkill
- testSkill
- timelineSkill
The file
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
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 55
Read project state from artifacts and recent run records
- Distinctive: line 57
Only fall back to prompt / context heuristics when state is ambiguous
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md 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
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project Overview
quick-question is the agent control plane for game-dev work. It is a Claude Code plugin and an engine-agnostic runtime: artifact-driven control (/qq:go), auto-compile hooks, test pipelines, deterministic policy checks, dual-mode cross-model / Claude-only code review with a verification loop, and 26 skills (/qq:*). It targets macOS and Windows (Windows requires Git for Windows for bash + core utilities). Engines at runtime parity: Unity 2021.3+, Godot 4.x, Unreal 5.x, S&box. Unity has the deepest integration via tykit (in-process HTTP server); the other three reach parity through Python bridges.
Although Claude Code gets the deepest integration (slash commands, hooks, review gates), the runtime core is agent-agnostic: scripts and bridges are plain shell + Python, and .qq/ state is plain JSON. Codex CLI, Cursor, Continue, and any MCP-compatible host can use the same runtime through qq_mcp.py / tykit_mcp.py / direct HTTP.
Repository Structure
hooks/hooks.json— Hook definitions (PreToolUse, PostToolUse, Stop, SessionStart) loaded by the Claude Code plugin systemscripts/— Bash + Python runtime: compile / test / review dispatchers, hook helpers, MCP bridges, controller, runtime helpersscripts/hooks/— Hook implementations (auto-compile.sh,compile-gate-check.sh,review-gate.sh,pre-push-test.sh,skill-modified-track.sh,auto-sync.sh,session-cleanup.sh,auto-pipeline-*,execute-resume-hint.sh)scripts/platform/— OS detection helpersscripts/qq_engine.py— multi-engine source-file matcher (matches-source)scripts/qq-compile.sh— multi-engine compile dispatcher (delegates tounity-compile-smart.sh/godot-compile.sh/unreal-compile.sh/sbox-compile.sh)scripts/qq-test.sh— multi-engine test dispatcherscripts/qq-project-state.py— artifact-driven controller (preferred path for/qq:go)scripts/qq-policy-check.sh— deterministic policy checks (run before deeper review workflows)scripts/qq-decisions.py— cross-skill decision journal (session-decisions.json)
engines/— Per-engine assets (unreal/,godot/,sbox/); referenced by the install flowshared/— Shared prompt fragments (e.g.verification-prompt.md)bin/— Wrapper executables added to Claude Code's PATH soSKILL.mdcan call commands by bare name.qq/— Runtime data written inside target projects (runs/,state/,telemetry/), not in this reposkills/— 26 skill directories, each with aSKILL.md, invoked as/qq:<name>packages/com.tyk.tykit/— UPM package providing tykit (in-process HTTP server inside Unity Editor).claude-plugin/— Plugin manifest (plugin.json,marketplace.json)templates/—CLAUDE.md.example,AGENTS.md.example,qq.yaml.examplecopied into target projects byinstall.shinstall.sh— Installs scripts, templates, bridges, and tykit into a target project (auto-detects engine; supports--wizard,--preset,--profile,--modules,--without)test.sh— Self-tests: shellcheck, JSON validation, executable bits, README consistency (skill count + per-skill/qq:reference), benchmark suites
Key Architecture
Hook System
Defined in hooks/hooks.json. Hooks are the plugin's runtime behavior:
- PreToolUse (Edit | Write): Compile Gate (
compile-gate-check.sh) blocks edits to engine source files when this session's compile is red (except the files with errors and the file that triggered the compile; seescripts/qq_compile_gate.py) or the project has never been opened in its editor; Review Gate (review-gate.sh check) blocks code/doc edits while review verification is pending. A PreToolUse hook only blocks with exit 2 — exit 1 is a non-blocking error and the tool runs anyway. - PostToolUse (Write | Edit): Auto-compile (
auto-compile.sh) compiles viaqq-compile.shafter edits to engine source files. The dispatcher handles.cs(Unity / S&box),.gd(Godot), and C++ (Unreal). Skill file changes are tracked byskill-modified-track.sh. - PostToolUse (Bash):
review-gate.sh setannounces the review gate. The gate itself is opened bycode-review.sh,claude-review.sh,plan-review.sh, andclaude-plan-review.sh(qq_review_gate_openinscripts/platform/detect.sh) once a review has actually run; the hook never guesses from command text. - PostToolUse (Agent):
review-gate.sh countincrements the verification subagent counter to release the review gate once all expected verifiers complete. - Stop:
check-skill-review.shblocks session end if skills were modified without/qq:self-review;review-gate.sh stopblocks if verification is incomplete;auto-pipeline-stop.shandsession-cleanup.shfinalize state. - SessionStart:
auto-sync.shsyncs plugin scripts into the target project; oncompact,execute-resume-hint.shandauto-pipeline-resume-hint.shsurface in-flight work.
All gate / temp files are keyed by the Claude Code session id for session isolation (e.g. $QQ_TEMP_DIR/review-gate-<session_id>, $QQ_TEMP_DIR/compile-gate-<session_id>). Hooks read session_id from their stdin JSON, skill Bash snippets read CLAUDE_CODE_SESSION_ID (same value; subagents carry the parent session's id); both go through qq_session_id in scripts/platform/detect.sh. Never key on $PPID — under Windows Git Bash it is always 1, so every session would share one gate file. No session id → no gate (never fall back to a shared file).
Hook scripts read tool input from stdin via the shared qq_hook_input helper in scripts/qq-runtime.sh (jq-first, with a $QQ_PY python fallback so hooks work even when jq is missing).
Artifact-driven Controller
/qq:go should prefer scripts/qq-project-state.py when available. It is a controller, not an implementation engine:
- Read project state from artifacts and recent run records
- Recommend the next skill
- Only fall back to prompt / context heuristics when state is ambiguous
The decision journal (scripts/qq-decisions.py) records cross-skill decisions in .qq/state/session-decisions.json so later skills can stay coherent with earlier ones.
Runtime Data + Policy
scripts/qq-run-record.pyandscripts/qq-runtime.shwrite structured runtime data to.qq/scripts/qq-policy-check.shruns deterministic engine checks (compile / test / asset hygiene) before deeper best-practice or review workflows.qq/state/*.jsonis the preferred source for the latest compile / test state; raw.qq/runs/*.jsonlogs are for debugging or CI-style consumption.qq/state/session-decisions.jsonis the cross-skill decision journal
Smart Compile Dispatch
scripts/qq-compile.sh is the multi-engine entry point. It detects the active engine and delegates:
- Unity →
unity-compile-smart.sh, which picks the best path:- tykit mode — HTTP call to in-process Unity server (fastest, non-blocking)
- Editor trigger — osascript (macOS) or PowerShell (Windows) to trigger compile in an open Editor
- Batch mode —
Unity -quit -batchmode(when the Editor is closed)
- Godot →
godot-compile.sh(headless--check-onlyGDScript validation) - Unreal →
unreal-compile.sh(UnrealBuildTool + editor commandlet) - S&box →
sbox-compile.sh(dotnet build)
Shared utilities live in unity-common.sh / godot-common.sh / unreal-common.sh / sbox-common.sh (Editor detection, paths, port discovery).
tykit
UPM package at packages/com.tyk.tykit/. An HTTP server auto-starting in Unity Editor, exposing commands: status, compile, run-tests, play / stop, console, find / inspect. Port stored in Temp/tykit.json (hash of project path). Works standalone without qq; the Python bridge tykit_bridge.py and the MCP wrapper tykit_mcp.py expose the same surface to non-Unity hosts.
Code Review
Two symmetric review modes share the same verification loop:
- Claude review (
/qq:claude-code-review):claude-review.sh→claude -p(process-isolated), then verification subagents check each finding - Codex review (
/qq:codex-code-review):code-review.sh→codex exec(cross-model), then verification subagents check each finding
Both modes: over-engineering check, fix confirmed issues, loop until clean (max 5 rounds). The unified review gate (scripts/hooks/review-gate.sh) blocks code edits until ALL verification subagents complete (three-field gate format: <ts>:<completed>:<expected>). MCP exposes one-shot qq_code_review and qq_plan_review tools for non-Claude hosts.
There are also legacy review-gate-{check,set,count,stop}.sh scripts kept for backward compatibility with already-installed projects; new hook bindings should use review-gate.sh <subcommand>.
Development Commands
# Test the installer against a project
./install.sh /path/to/your-project
# Validate shell scripts
shellcheck scripts/*.sh scripts/hooks/*.sh
# Validate hook JSON
python3 -m json.tool hooks/hooks.json > /dev/null
# Run the full self-test suite (shellcheck, JSON, structural checks, README consistency, benchmark suites)
./test.shThere is no build step or package manager for this repo itself. The scripts and skills are consumed as-is by the Claude Code plugin system.
Conventions
- Scripts use
set -euo pipefailand sourceqq-runtime.sh/platform/detect.sh/ engine-specific common files for shared functions - Skills are each a directory under
skills/<name>/containingSKILL.md - Hook scripts in
scripts/hooks/parse stdin JSON viaqq_hook_input(jq-first, python3 fallback) — never calljqdirectly in new hook scripts - Comments in shell scripts are in Chinese (author preference); code identifiers and user-facing output are in English
install.shoutput uses the current plugin skill names (/qq:test,/qq:commit-push, etc.).gitattributesenforces LF line endings for.shand.pyso Windows checkouts don't corrupt hook scripts- Comments and side-effects in hook scripts must remain idempotent; hooks may fire twice on the same input
- Chinese README has one canonical source —
docs/zh-CN/README.mdis the canonical file; the Chinese half embedded in the rootREADME.mdis auto-generated byscripts/qq-sync-readme-zh.py(it strips the title + lang nav and rewrites relative paths to be repo-rooted). Workflow: editdocs/zh-CN/README.md, then runpython scripts/qq-sync-readme-zh.py --writeto mirror, then commit both.test.shsection 4 enforces the contract via--checkand fails CI with aDRIFTmessage if you skip the sync. Do not edit the root README's Chinese half directly — your changes will be clobbered the next time someone runs the sync.
Windows release gotchas
Two recurring traps when releasing from a Windows host. Both have bitten CI more than once — see commits eedebe2, 64bce1d.
chmod +xon Windows does not write the git index mode bit. New.sh/.pyscripts ship as100644even after a successful localchmod, andtest.shsection 7 (Script permissions) catches it on Linux CI asNOT executable. When adding any new executable script, rungit update-index --chmod=+x <path>and verify withgit ls-files --stage <path>(look for100755, not100644) before committing. The Edit / Write tool path is the most common offender — Bashchmodis invisible to git index.qq-release.sh --watchhas a fetch race. It callsgh run listbefore the new commit's CI run has been registered, so the "CI green" message at the end ofqq-release.sh patch ...may be reporting the previous release's run, not the one you just triggered. After the script claims success, always re-confirm withgh run list --limit 2 --branch mainto make sure the latest run on top is actually green for the commit you just pushed.
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.

