/spec-governed-development:project-specs-implementationfrom spec-governed-development
Implements code changes from reconciled PRDs, ADRs, and traceability matrices. Owns the spec-to-test-to-code workflow with two-phase red-green-refactor.
Ships in spec-governed-development. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill to implement a project change after the governing PRD or ADR has been reconciled. Consume the implementation_handoff from project-specs-reconciliation when available.
Do not use this skill to invent or rewrite product requirements. If the requested behavior is not covered by a reconciled PRD, ADR, traceability matrix, or explicit user-provided handoff, stop and use project-specs-reconciliation first.
This skill owns:
Use language-specific or repository-specific skills for:
Treat the workflow as two red phases:
governance red: reconciled PRD, ADR, matrix, or handoff exists before code changes
implementation red: executable acceptance, integration, or unit tests fail for the intended behavior
Read applicable local instructions before changing code. Prefer nearer-scope repository guidance over this skill when they conflict.
Use the paths from the implementation_handoff when present. Otherwise use the conventional locations from project-specs-reconciliation:
docs/PRD/
docs/ADR/
docs/<scope>/PRD/
docs/<scope>/ADR/
Read only the relevant PRDs, ADRs, README.md indexes, and MATRIX.md files needed to understand the requested implementation.
Confirm the implementation has:
If any required input is absent or contradictory, pause implementation and run project-specs-reconciliation to repair the governing spec first.
For each impacted PRD scenario, identify the executable artifact that should prove it:
Keep existing scenario IDs, scenario titles, matrix rows, and executable scenario names stable when the behavior is unchanged. When adding coverage, use the naming and numbering scheme already present in the conventional spec directory.
Inspect the code paths needed to satisfy the mapped scenarios. Avoid unrelated refactors and avoid broad rewrites that are not required by the governing specs.
When the project uses Gherkin or acceptance tests, create or update the executable scenario before production code changes. Align scenario titles with the PRD and matrix as tightly as the local project permits.
Use local TDD or language-specific skill guidance to add focused unit or integration tests for the implementation boundary. Keep these tests tied to the acceptance scenario or constraint they support.
Run the smallest useful test command and confirm it fails for the intended missing behavior. If a failing test cannot be produced before code changes, document why and keep the implementation surface smaller than usual.
Implement only the behavior required by the governing specs and failing tests. Preserve architecture constraints from related ADRs.
Rerun the previously failing checks and fix the implementation until they pass. Add broader tests only when the change crosses shared contracts or user-visible workflows.
Refactor only after the green check passes. Keep test names, scenario titles, matrix rows, and spec references aligned after moving or renaming artifacts.
If implementation reveals that the spec is wrong, incomplete, or impossible as written, stop and use project-specs-reconciliation to update the PRD or ADR before continuing.
Run the validation commands named in the handoff, touched spec directory, local instructions, or changed package. Prefer targeted commands first, then broader checks when risk justifies them.
Before finishing, verify:
End with a concise report in this shape:
implementation_report:
spec_paths:
acceptance_artifacts:
tests_added_or_changed:
implementation_summary:
verification_commands:
traceability_notes:
follow_ups:
Use none for fields that do not apply. Include failed or skipped verification commands with the reason.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
spec-driven-development, tdd, bdd, traceability, acceptance-testing
npx claudepluginhub leefowlercu/agent-kit --plugin spec-governed-development2 skills in this plugin