Skip to content
Back to skills

Implement

ASecurity

Implements a feature or a specification change test-first, phase by phase from the parts with no dependencies up: each phase designs its missing test cases, then writes failing tests and the production code that passes them. Use this skill whenever the user asks to implement or add a feature, or to change an existing specification.

  • 20 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentsgogitapi

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add nowsprinting/unity-coding-skills --skill implement --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Implement?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Implement
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nowsprinting-implement/badge)](https://www.skillsdirectory.com/skills/nowsprinting-implement)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: implement
description: >-
  Implements a feature or a specification change test-first, phase by phase
  from the parts with no dependencies up: each phase designs its missing test
  cases, then writes failing tests and the production code that passes them.
  Use this skill whenever the user asks to implement or add a feature, or to
  change an existing specification.
argument-hint: "[specification and/or test design, file paths, or URLs]"
license: Unlicense
metadata:
  author: Koji Hasegawa
---

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:

- A test design document with an assessment of each test target — see the `design-tests` skill
- Fixing a bug — see the `fix-bug` skill

Terms:

- **Specification** — the observable behavior at the boundary of a part (system, module, scene, prefab, class, or asset); it covers both kinds below.
- **External specification** — the specification at the outermost boundary of the product, as the player or the API user observes it.
- **Design docs** — the specification inside the product, at any level: the smaller parts a part divides into (modules, scenes, prefabs, classes), how they depend on one another, method signatures, and the file and assembly (`.asmdef`) of each class; they cover the production code and assets, not the test design.
- **Test target** — the part a test design is made for, e.g., the screen transitions, a screen, a prefab, or a class.

## Task Type Check

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.

## Input

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:

- **Specification** — the specification to implement, what the user gives as the specification: written directly, file paths, or URLs (e.g., an issue, a wiki page, or a Google Docs document), in any combination.
- **Test design document** — the test cases of each test target, as the `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.
- **Instruction** (optional):
  - Which part of a given document is the specification
  - The test techniques to apply or to suppress, e.g., error guessing, or their test selection criteria, e.g., 1-switch coverage

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:

- Each sheet named after a test class holds the test cases of that test target in one table, with its Notes in the rows below; the "Test method name" and "Parameters" columns together are the test case, and the "Test level" and "Test technique, etc." columns tell the section it belongs to: the test level (`-` for a validator), and the test technique, or `Visual verification`, `Manual`, or `Validator` in its place.
- The rows of the "Test basis" sheet with that test class are the test bases of the test target.
- The rows of the "Assessment" sheet with that test class are the Issues of its Assessment; a test target with no row there has no Issue.

**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.

## Implementation Notes

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.

## Workflow

### Step 1: Plan the Phases

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.

### Step 2: Run the Phases

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:

- The phase's implementation targets, each with its assigned specifications, and which of them are external specifications
- The implementation targets of the earlier phases, already implemented
- The input — the path of each file, or the full text when written directly or taken from the conversation, and the full text with its URL when read from a URL, e.g., an issue, a document, or a spreadsheet
- The user's instructions on the test techniques, if any
- The absolute path of the notes file (see [Implementation Notes](#implementation-notes))

Act on the `STATUS:` line the subagent returns:

- `STATUS: DONE` → proceed to the next phase
- `STATUS: 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 them
- `STATUS: BLOCKED` → stop, and report the blocker to the user

### Step 3: Report the Implementation Notes

After the last phase, or when Step 2 stops:

1. `Read` `<scratchpad>/implementation-notes` if it exists
2. Report the notes to the user in chat under an `## 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"
3. Delete the temporary notes file if it exists

Files in this skill

  • SKILL.md9.2 KB
  • resources/phase-workflow.md9.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.