/qq:add-testsfrom qq
Authors Unity EditMode, PlayMode, or regression tests for the current change, reading live Editor state to determine correct assertions.
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.
None: SKILL.md is the whole skill.
Run qq scripts as
${CLAUDE_PLUGIN_ROOT}/bin/<name>: they are not on PATH, so a bareqq-project-state.pyexits 127.
Respond in the user's preferred language (detect from their recent messages, or fall back to the language setting in CLAUDE.md).
Add or update Unity tests for the current change. This skill is for writing tests, not for running them. After authoring coverage, hand off to /qq:test.
Before deciding what to assert (component layouts, serialized values, runtime state), read the actual values from the live Editor instead of guessing from source, read-only, through the project's channel:
${CLAUDE_PLUGIN_ROOT}/bin/qq-unity-cli.py channel --project "$PWD"printsunity-cli,tykitornone(shared/unity-live-state.md).
- Official Unity CLI:
unity command --project-path "$PWD" --json --no-banner find_gameobjects -- --name X, thenget_component_properties -- --target <instanceId> --type Fooorget_serialized_fields(shared/unity-cli-reference.md).- tykit:
unity_query,unity_object,get-field,get-array(shared/tykit-reference.md).- Neither: derive the expected values from source and say they are unverified.
Arguments: $ARGUMENTS
editmode / edit: force EditMode coverageplaymode / play: force PlayMode coverageregression: force the smallest regression-focused test--assembly "Asm.Tests": prefer a specific test assembly--auto: skip prompts and continue into /qq:test --auto after tests are writtenWith --auto, first make sure a pipeline tracks this run, so the handoff at the end can advance it: qq-execute-checkpoint.py pipeline-start --project . --type feature --current-skill "/qq:add-tests" --branch "$(git branch --show-current)" --if-not-running. It starts one only when none is running here (you were invoked on your own) and leaves a running one alone.
${CLAUDE_PLUGIN_ROOT}/bin/qq-project-state.py --pretty
work_mode and policy_profile: expected verification pressurechanged_runtime_files: the code under test when the user did not specify a targetlast_test_status: whether coverage is missing vs. failingPick scope in this order:
Narrow broad input: one system over the whole feature, one regression path over a full suite rewrite, one test assembly over new scattered files.
Read the existing tests and test .asmdef files near the code under test, reuse their helpers, fixtures, scene setup and naming, and prefer extending an existing test file. If no tests exist yet, use Assets/Tests/EditMode/ for pure logic or editor-side behavior and Assets/Tests/PlayMode/ for scene/lifecycle/integration behavior.
Unless the user forced a mode, choose the lightest one that still proves the behavior:
fix mode when feasibleFor a bug fix, write the regression first when the repro is clear; if the architecture makes the repro impossible to express cleanly, say so and write the next-best narrow guardrail.
/qq:test command to run next, using editmode, playmode, --assembly, or --filter when that would keep validation narrow--auto mode: after writing the tests, run qq-execute-checkpoint.py pipeline-advance --project . --completed-skill "/qq:add-tests" --next-skill "/qq:test", then invoke /qq:test --auto with the narrowest appropriate scope.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub tykisgod/quick-question --plugin qq28 skills in this plugin
/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.Other plugins' skills for the same job