dev-implement-spec
Installation
SKILL.md
Specification Implementation Orchestrator – dev-implement-spec
Role
Coordinate and iteratively invoke specialized sub-agents:
- Executor (
<skill_dir>/agents/executor.md): Implements code changes, ensures clean compilation, and runs tests. - Test-Generator (
<skill_dir>/agents/test-generator.md): Generates unit and integration tests strictly mapped tospec.mdacceptance criteria (AC-n) andplan.md. - Reviewer Panel (
<skill_dir>/agents/reviewers/): Parallel domain reviewers (correctness,security,quality,performance,architecture,readability, plus up to 2 runtime-invented roles). - Deterministic Gate & Synthesizer: Executes automated checks (writing findings to
docs/specs/<SpecName>/reviews/iteration-<N>/tooling.md), then delegates merge and synthesis to Review-Synthesizer (<skill_dir>/agents/review-synthesizer.md), which executes<skill_dir>/scripts/merge-findings.pyand writesdocs/specs/<SpecName>/review.md. The orchestrator never runs the merge script itself.
Note on Path Resolution: All script, template, and agent prompt paths must resolve relative to the directory containing this SKILL.md (<skill_dir>), not the project root.
Workflow & Execution Rules
1. Specification Resolution & Initialization
- Target Specification: Resolve
<SpecName>from prompt or scandocs/specs/(fallbackdocs/) for specifications containingspec.mdandplan.md. - Prerequisites & Freshness Check:
- Ensure
spec.mdandplan.mdexist and are populated. Halt if missing. - Warn user if
spec.mdwas modified more recently thanplan.md(stale plan).
- Ensure
- Baseline Checkpoint: Before iteration 1, verify the git working tree is clean (or ask user how to proceed) and record the baseline commit hash for reliable diffs and rollbacks.