add-tests
Skill11 starsChanged 2 months agoMITView on GitHub
Author Unity EditMode, PlayMode, or regression tests for the current change without conflating that with test execution.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- buildomator/buildomatortheir own version, first seen Sep 20, 2026
- dperezcabrera/pico-skillstheir own version, first seen Jul 29, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- buildomator/buildomator★ 90same name
- dperezcabrera/pico-skills★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository28 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- 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
Show its rules and text
We split this skill into the rules it gives an agent
21 rules. About 0 are common, 17 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈17
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
Add or update Unity tests for the current change.
- Very specific: line 28
If qq-project-state.py is available, read it before choosing scope:
- Distinctive: line 43
Prefer the smallest meaningful coverage for the current task
- Distinctive: line 44
Do not turn this into a whole-project test rewrite
- Distinctive: line 54
Ask the user one concise question if the target is still ambiguous
- Distinctive: line 56
When the input is broad, narrow it:
- Distinctive: line 66
read existing test files near the code under test
- Distinctive: line 69
prefer extending an existing test file when it keeps the suite coherent
- Distinctive: line 71
If no tests exist yet, create the smallest conventional home that fits the repo:
- Distinctive: line 82
If the user did not force a mode, choose the lightest mode that still proves the behavior.
- Distinctive: line 89
add the highest-risk edge case or regression assertion
- Distinctive: line 90
avoid tests that merely duplicate production implementation line by line
- Distinctive: line 91
keep setup minimal; extract helpers only when repetition is real
- Distinctive: line 92
if adding a new test assembly, keep references minimal and consistent with repo conventions
- Distinctive: line 94
When this work is tied to a bug fix:
- Distinctive: line 96
prefer writing the regression first when the repro is clear
- Distinctive: line 97
if the current architecture makes the repro impossible to express cleanly, state that explicitly and write the next-best narrow guardrail
- Very specific: line 107
--automode: after writing the tests, continue directly to /qq:test --auto with the narrowest appropriate scope. - Very specific: line 117
Keep /qq:add-tests separate from /qq:test.
- Distinctive: line 118
Prefer modifying existing test files over spawning a brand-new structure for every change
- Distinctive: line 119
If a plan already contains a Tests step, implement that step here instead of inventing a different coverage target
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill 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
Script path fallback: qq scripts are invoked as bare commands (e.g.
unity-test.sh). If "command not found", use${CLAUDE_PLUGIN_ROOT}/bin/<command>instead.
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.
Querying live scene/component state while authoring tests: before deciding what to assert (component layouts, serialized values, runtime state), check the actual values in the live Editor instead of guessing from source code — through the project's channel (
shared/unity-live-state.md):
- Official Unity CLI (
Library/Pipeline/.unity-pipeline-portexists):unity command --project-path "$PWD" --json --no-banner find_gameobjects -- --name X, thenget_component_properties -- --target <instanceId> --type Fooorget_serialized_fields; look up parameters withunity command --project-path "$PWD" --query <keyword> --detail full --json(shared/unity-cli-reference.md).- tykit (
Temp/tykit.json):unity_query,unity_object,get-field,get-array(shared/tykit-reference.md).- Neither: derive the expected values from source and say they are unverified.
Read-only queries only — this skill writes tests; it does not change Editor state or run tests (
/qq:testdoes). Never open or printLibrary/Pipeline/.unity-pipeline-port— it holds an eval token.
Arguments: $ARGUMENTS
- A file path, symbol, bug description, or plan step that needs coverage
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 --autoafter tests are written
0. Read qq project state first when available
If qq-project-state.py is available, read it before choosing scope:
qq-project-state.py --prettyUse it for:
work_modeandpolicy_profileto understand expected verification pressurechanged_runtime_filesto identify the code under test when the user did not specify a targetlast_test_statusto understand whether coverage is missing vs. failing
Rules:
- Explicit user scope always wins
- Prefer the smallest meaningful coverage for the current task
- Do not turn this into a whole-project test rewrite
1. Determine the target
Pick scope in this order:
- Explicit user input (file path, bug description, plan step, or test type)
- A known failing bug / regression path from the current conversation
- The active implementation plan step and its done criteria
- Current uncommitted runtime changes
- Ask the user one concise question if the target is still ambiguous
When the input is broad, narrow it:
- one system over the whole feature
- one regression path over a full suite rewrite
- one test assembly over new scattered files
2. Inspect the existing test layout
Before writing tests:
- read existing test files near the code under test
- inspect any nearby test
.asmdeffiles - reuse existing helpers, fixtures, scene setup, and naming patterns
- prefer extending an existing test file when it keeps the suite coherent
If no tests exist yet, create the smallest conventional home that fits the repo:
Assets/Tests/EditMode/for pure logic or editor-side behaviorAssets/Tests/PlayMode/for scene/lifecycle/integration behavior
3. Choose the right test kind
- EditMode: pure logic, data transforms, orchestration, deterministic calculations, and code that does not need scene frames to prove correctness
- PlayMode: MonoBehaviour lifecycle, scene wiring, frame progression, physics, animation, or behavior that only makes sense in play
- Regression: the smallest test that proves a bug stays fixed; prefer this for
fixmode when feasible
If the user did not force a mode, choose the lightest mode that still proves the behavior.
4. Write the tests
Author the smallest useful coverage:
- cover the intended behavior, not every branch in the file
- add the highest-risk edge case or regression assertion
- avoid tests that merely duplicate production implementation line by line
- keep setup minimal; extract helpers only when repetition is real
- if adding a new test assembly, keep references minimal and consistent with repo conventions
When this work is tied to a bug fix:
- prefer writing the regression first when the repro is clear
- if the current architecture makes the repro impossible to express cleanly, state that explicitly and write the next-best narrow guardrail
5. Stop at authored coverage
By default, this skill stops after the test files are written.
- Summarize which files changed
- State which behavior is now covered
- Recommend the exact
/qq:testcommand to run next, usingeditmode,playmode,--assembly, or--filterwhen that would keep validation narrow
--auto mode: after writing the tests, continue directly to /qq:test --auto with the narrowest appropriate scope.
Handoff
- Tests authored cleanly → "Coverage is in place. Want to run
/qq:testnow?" - Tests authored in
--automode → continue to/qq:test --auto - Blocked by ambiguous expected behavior → ask one short question before writing more code
Notes
- Keep
/qq:add-testsseparate from/qq:test; one authors coverage, the other executes it - Prefer modifying existing test files over spawning a brand-new structure for every change
- If a plan already contains a Tests step, implement that step here instead of inventing a different coverage target
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.

