/ini-dev:spec-firstfrom ini-dev
Walk a software engineer through implementing one feature acceptance-test first. Turns the story into concrete examples, writes one executable specification at a time in the language of the problem, watches it fail, lets the agent make it pass, then reviews and commits. Use when the user asks to implement, build or add a feature, mentions ATDD, BDD, acceptance tests or executable specifications, or says "spec first". Not for unit-level TDD on a single function, and not for bug fixes that need no new behaviour.
Ships in ini-dev. 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.
The human says precisely what the system should do, in a form that runs. The agent decides how. A specification that cannot fail is not a specification.
Work through the phases in order, one scenario at a time. Do not start a phase until the one before it is done.
Check for unfinished work. If .testing/e2e.md has rows and acceptance/ exists, a feature is already under way: tell the engineer what you found and go to Phase 7 instead of asking for a new story. If the engineer wants to start something new anyway, begin at Phase 1 and add to the backlog.
Rules that hold in every phase:
Turn the feature into an ordered list of concrete examples with real values, in the engineer's own words. Build nothing.
Read references/phase-1-examples.md and follow it.
Done when: the examples are recorded in .testing/e2e.md and the engineer has approved the list and the first example.
Take one approved example and write it as a test that says what the system should do and nothing about how.
Read references/phase-2-scenario.md and follow it. It points to references/acceptance-layout.md for where the file goes.
Done when: the engineer has approved the scenario's wording and it exists as one test in acceptance/specs/.
Build the DSL and driver the specification needs, so it can run against the real system. Build only what this one scenario calls.
Read references/phase-3-scaffold.md and follow it. If the system is infrastructure (for example AWS CDK), it sends you to references/infrastructure.md as well.
Done when: the specification loads and runs against the real system. It is expected to fail.
Run the specification and see it fail because the behaviour is missing, not because something is broken. Then stop for the engineer's review.
Read references/phase-4-red.md and follow it.
Done when: the failure is for the right reason, the engineer has approved the spec, DSL and driver, and acceptance/ is staged as the approved snapshot.
Make the specification pass by building the behaviour. Free choice of how. Nothing under acceptance/ may change.
Read references/phase-5-green.md and follow it.
Done when: this specification, the full acceptance suite and the project's other tests all pass, and the tamper check on acceptance/ is clean.
Tell the engineer what changed and what deserves their eyes, look for holes in the specification, and offer the last commit for this scenario.
Read references/phase-6-review.md and follow it.
Done when: the summary and risk flags are given, the scenario's row is gone from .testing/e2e.md, and the remaining changes have been offered as a commit.
Read .testing/e2e.md.
acceptance/legacy/.Never start the next scenario while the last one is failing or its tamper check is not clean.
references/acceptance-layout.md (opens in a new tab)references/asking.md (opens in a new tab)references/commit-offers.md (opens in a new tab)references/fresh-reviewer.md (opens in a new tab)references/infrastructure.md (opens in a new tab)references/phase-1-examples.md (opens in a new tab)references/phase-2-scenario.md (opens in a new tab)references/phase-3-scaffold.md (opens in a new tab)references/phase-4-red.md (opens in a new tab)references/phase-5-green.md (opens in a new tab)references/phase-6-review.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub atoyebs/spec-first-skill --plugin ini-dev