Implement code from contract documents. Reads 02-02-solutions.md for design, dispatches sub-agents per repo. Produces 03-implement-logs.md as progress log.
This step implements the code based on all contract documents. It dispatches sub-agents per repo for isolated implementation. Progress is logged in 03-implement-logs.md.
Read all documentation and implement the complete feature:
Use this skill when:
/contracts-solutions and are ready to implementDo NOT use for:
/contracts-review "bug description"contracts/<feature-folder>/01-problem-analysis.md or contracts/<feature-folder>/02-solutions.mdattached_repos read from 01-problem-analysis.md or 02-solutions.md frontmatterBefore starting, determine active feature:
| Scenario | Behavior |
|---|---|
| No features exist | "Run /contracts-new first" |
| One feature exists | Auto-select it |
| activeFeature set | Use it |
| User specifies folder | Use specified (e.g., /contracts-implement payment-v2) |
| Multiple features, no active | Show selector |
/contracts-implement # First implementation
/contracts-implement # Re-implements EVERYTHING from scratch
Every call:
If you only want to fix a bug, use /contracts-review "bug description" instead.
You MUST complete these items in order:
contracts/<feature-folder>//contracts-tests| Document | Required | Effect |
|---|---|---|
01-problem-analysis.md | Optional | Defines what to build |
02-solutions.md | Recommended | Follow solution design steps |
Main Agent (contracts-implement)
│
├── Sub-agent: Step 1 (repo: frontend)
│ Input: 02-solutions.md step, attachedRepos context
│ Output: implemented code, test file
│
├── Sub-agent: Step 2 (repo: api)
│ Input: 02-solutions.md step, attachedRepos context
│ Output: implemented code, test file
│
└── ...
When attached_repos is defined in frontmatter, dispatch sub-agents to each repo:
attached_repos from 01-problem-analysis.md or 02-solutions.mdCreated automatically during implementation:
---
ai_summary: "Implementation completed"
ai_warnings: ["Deviated from contract in Step 2"]
ai_generated_at: "2026-03-26T10:00:00Z"