/unity-coding-skills:implement [specification and/or test design, file paths, or URLs]from unity-coding-skills
Implements a feature or specification change test-first, splitting work into dependency-ordered phases that each design missing tests, write failing tests, then pass them.
Ships in unity-coding-skills. 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.
Implements a specification test-first: splits it into phases, and runs each phase in a subagent that designs the missing test cases, then writes failing tests and the production code that passes them.
Out of scope:
design-tests skillfix-bug skillTerms:
.asmdef) of each class; they cover the production code and assets, not the test design.If the user's request is to investigate or fix a bug rather than implement a new feature, change a specification, or refactor, stop and guide the user to invoke the /fix-bug skill instead.
Take the input from the specification and/or test design argument combined with the conversation, if any; when the argument is omitted, take it from the conversation alone.
The input is a specification, a test design document, or both; if the conversation gives neither, stop and tell the user to give one:
design-tests skill outputs it: a file, or the URL of a spreadsheet.
Given without a specification, its test cases are the specification, and its test targets are the implementation targets.Whatever else you read — a document the specification links to, a test basis the test design document lists, another document of the project, or one the user tells you to read besides the specification — only settles what the specification leaves open: derive no implementation target and no test case from a specification stated there.
Read a URL of the specification yourself and treat what you read as text written directly, since a subagent may lack the credentials to read it.
Read it with the access the user set up, e.g., an MCP server or a CLI of the service (gh issue view <URL> --comments for GitHub Issues).
For an issue, read its comments as well as its body: the comments often revise the body.
For a spreadsheet URL, read the spreadsheet yourself and treat it as a test design document written directly, since a subagent may lack the access to read it.
Read every sheet, not only the one the URL's gid points to, since the test cases and the test bases of a test target lie on separate sheets:
- for a validator), and the test technique, or Visual verification, Manual, or Validator in its place.TBD items: If the specification explicitly contains the text "TBD" for any item, treat that item as non-existent — do not design, test, or implement it.
Only ask the user via AskUserQuestion if the TBD item is a prerequisite that cannot be deferred without blocking the implementation.
Notes for this run go in <scratchpad>/implementation-notes, where <scratchpad> is the scratchpad directory listed in your system prompt (write its absolute path literally): one note per line, in the form <category>: <note>, where the category is one of Design decisions, Deviations, Tradeoffs, Test changes, and Open questions.
Before Step 1, delete that file if it exists, so this run starts from an empty one: every /fix-bug and /implement run in the session shares this file, so an earlier run abandoned before its report would otherwise leak its notes into this one.
The phase subagents append their notes to that file themselves.
Append your own judgment calls in Step 1 as Design decisions as soon as you make them — a note left in context until the end is lost when the context is compacted.
List the implementation targets the specification describes — the parts a phase implements: the screen transitions, each screen and prefab, each master data class and its master data records, and each class the design docs fix.
A master data class is a class that holds master data, e.g., a subclass of ScriptableObject, and its master data records, the instances of it authored in the project, e.g., its assets, are an implementation target of their own.
Assign each specification to exactly one implementation target.
A class no specification describes is no implementation target here: the phase that needs it designs it.
Order the implementation targets so that each comes after every implementation target it depends on: a class after the classes it calls, the master data records after their master data class, and a container after its contained implementation targets, e.g., a screen after the classes placed on it, and the screen transitions after the screens.
Group the ordered implementation targets into phases: a phase holds only implementation targets whose dependencies lie in earlier phases. The tests of a phase then run against the real classes of earlier phases, already implemented and passing, instead of test doubles. Beyond that rule, choose the size of the phases: split a phase further when the specification is large, e.g., one feature area per phase, so that each phase's diff stays reviewable.
Show the phases to the user as a list.
Run the phases one at a time, in order, each in its own general-purpose subagent, so that the test design and the code of one phase stay out of your context and the others'.
Instruct the subagent to read ${CLAUDE_SKILL_DIR}/resources/phase-workflow.md (write its absolute path literally) and follow it, including its commits: the workflow commits at fixed points, so that the test code committed before the implementation stays verifiable — write no instruction that stops the subagent from committing.
Give it:
Act on the STATUS: line the subagent returns:
STATUS: DONE → proceed to the next phaseSTATUS: QUESTION → ask the user via AskUserQuestion, presenting its issues, then send the answer to the same subagent with SendMessage so it continues the phase: a new subagent would find the phase's uncommitted skeleton and test code, and take those tests for existing ones.
When the user cannot resolve them, stop and report themSTATUS: BLOCKED → stop, and report the blocker to the userAfter the last phase, or when Step 2 stops:
Read <scratchpad>/implementation-notes if it exists## Implementation Notes heading — one bold sub-heading per category, each followed by a bullet list.
Always include all five categories in this order: Design decisions, Deviations, Tradeoffs, Test changes, Open questions.
Write - None for any category with nothing recorded, and add any last-minute Open questions before finalizing.
If the file was never created, report every category as "None"What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub nowsprinting/unity-coding-skills --plugin unity-coding-skills12 skills in this plugin
/code-writing-guideProvides coding guidelines for Unity projects. Make sure to use this skill whenever writing, creating, editing, or modifying code files. This includes implementing new features, fixing bugs, refactoring, adding tests, or any task that results in code changes. Even for small edits or one-line fixes, load this skill to ensure project conventions are followed./design-testsDesigns tests from a specification, whatever document states it — a requirements document, design docs, or an ADR: extracts the test targets, then creates test cases for each target at the test level of its subject — e.g., integration tests for a scene or prefab, unit tests for a class's API. Use this skill whenever the specification is settled and the next step is to design the tests./edit-sceneCreates and modifies Unity scene and prefab files. Use this skill whenever creating, editing, or modifying .unity scene files or .prefab prefab files. This includes adding GameObjects, building uGUI hierarchies, wiring up components, and any task that results in changes to .unity or .prefab files./find-and-setup-analysis-ruleFinds an analysis rule that flags a given coding pattern — a Roslyn analyzer package, an IDE inspection, an IDE plugin, or a custom Roslyn analyzer — and sets it up in the Unity project at `warning` or higher severity. Use this skill when the user wants a coding pattern flagged as the code is written, e.g., to keep a fixed bug from recurring, to ban an API, to cap method complexity, or to enforce a coding rule. Also use it when the user wants a named Roslyn analyzer package installed in the Unity project./fix-bugDiagnoses and fixes bugs using a test-first workflow (reproduce, diagnose, fix). Use this skill whenever the user reports a bug, describes unexpected behavior, or asks to investigate or fix a defect./measure-spec-coverageMeasures the specification coverage of one specification document: models its specifications with test techniques into coverage items, then checks off each coverage item a test verifies, finding the tests by the `// Test-basis:` comments in test files. Use this skill when the user asks how well a specification is tested, or which of its behaviors no test verifies.Other plugins' skills for the same job