Help us improve
Share bugs, ideas, or general feedback.
From unity-coding-skills
Reviews existing test files for conformance to test design and writing guides, producing a refinement plan. Invoke as /refine-tests <path>.
npx claudepluginhub nowsprinting/unity-coding-skills --plugin unity-coding-skillsHow this skill is triggered — by the user, by Claude, or both
Slash command
/unity-coding-skills:refine-testsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Reviews existing test code for conformance to the test-designing-guide and test-writing-guide, then produces a refinement plan.
Guides technical evaluation of code review feedback: read fully, restate for understanding, verify against codebase, respond with reasoning or pushback before implementing.
Share bugs, ideas, or general feedback.
Reviews existing test code for conformance to the test-designing-guide and test-writing-guide, then produces a refinement plan.
This skill requires plan mode. Before doing anything else, check the current mode:
ExitPlanMode is in the deferred tools list → not in plan mode → stop immediately and tell the user:
"This skill (
/refine-tests) requires plan mode. Enter plan mode first: use/planor press Shift+Tab to toggle."
ExitPlanMode is NOT in the deferred tools list (i.e., directly callable) → in plan mode → proceed.This skill is for refining existing tests for conformance to the guides. If the request is out of scope, redirect:
/plan-feature instead/fix-bug insteadOne or more target path arguments. Each may be a single test file, a directory (resolved recursively to its test files), or a glob. Resolve the argument(s) to the concrete set of test files to review before proceeding.
Launch Explore agent(s) to read the target test file(s) and the production code they exercise. Reading the production code is necessary to judge layer-appropriateness and structural-vs-spec-based issues.
Load the test-designing-guide and test-writing-guide skills. Apply all rules that are verifiable from the test code alone — no requirements document is available.
The following sections of test-designing-guide require requirements input or production-design changes and are out of scope:
Produce a Findings list. Each finding records:
Compare the target test files against each other and against other tests in the same test class.
A true duplicate has both of the following in common with another test:
Do NOT flag tests that share only one:
For each true duplicate pair, append a Finding to the Findings list from Phase 2:
Read the critical test files. Confirm the proposed changes in the Findings list are consistent with each other and that each change preserves what the test verifies. Also cross-check duplicate findings (Phase 3) against conformance findings (Phase 2): a test slated for rename must not also be the redundant side of a duplicate finding.
Assemble the plan file with these sections:
## Refine Workflow verbatim as the body of this sectionPaste the Template below verbatim as the body of the ## Refine Workflow section in the plan file.
### Step 1: Modify Tests
- [ ] Apply the test changes described in the Findings section
- [ ] Run tests with `/run-tests` and confirm **all pass**
### Step 2: Refactoring
- [ ] Resolve diagnostics at warning or higher for each modified file (`mcp__jetbrains__open_file_in_editor` → `mcp__ide__getDiagnostics` → fix, one file at a time; use `mcp__ide__getDiagnostics` because the Unity editor compiler does not reflect `.editorconfig` severity settings)
- [ ] Run tests with `/run-tests` and confirm **all pass**
- [ ] Run the Claude Code built-in `/simplify` skill (`Skill({skill: "simplify"})` — not a plugin skill) to apply quality improvements to the modified code
- [ ] Run tests with `/run-tests` and confirm **all pass**
- [ ] Commit all remaining changes to git