ワンクリックで
implement
Generate production code and tests for a story group using agent teams for parallel execution.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Generate production code and tests for a story group using agent teams for parallel execution.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Autonomous build loop with Karpathy ratcheting, GAN evaluator, and session chaining. Iterates story groups until all features pass or stopping criteria met.
Socratic interview to create a Business Requirements Document. First step in the SDLC pipeline.
Generate system architecture, machine-readable schemas, and UI mockups. Spawns planner + ui-designer concurrently.
Evaluation patterns — sprint contract format, three-layer verification, scoring rubric references.
Standard GitHub issue workflow. Branch, reproduce, fix, test, PR.
Refactor existing code for quality, performance, or maintainability. Enforces six quality principles with ratchet gate.
| name | implement |
| description | Generate production code and tests for a story group using agent teams for parallel execution. |
| argument-hint | [group-id] |
| context | fork |
| agent | generator |
Generate production-quality code and tests for all stories in a dependency group, using a Claude Code agent team for parallel execution.
/implement C
Implements all stories in group C. The group ID corresponds to a node in specs/stories/dependency-graph.md.
Before running /implement, verify:
specs/stories/dependency-graph.md exists and lists groups with story assignments.specs/design/component-map.md exists and maps each story to the files it owns.If any prerequisite is missing, stop and report what is absent. Do not proceed with partial context.
Before loading code or spawning agents, invoke superpowers:writing-plans to produce a structured implementation plan for this group. The plan identifies task decomposition, dependencies, and risk areas. This feeds into the teammate spawn prompts and prevents ad-hoc implementation.
Read .claude/skills/code-gen/SKILL.md in full. These six principles (small modules, static typing, functions under 50 lines, explicit error handling, no dead code, self-documenting names) apply to every line of code produced. Inject the full text into every teammate prompt.
Read specs/stories/dependency-graph.md. Identify:
Abort if upstream groups are not yet evaluated as PASS.
Read specs/design/component-map.md. For each story in the group, extract:
This ownership map is the single source of truth for file assignments during parallel execution.
Read .claude/state/learned-rules.md. Inject ALL rules verbatim into every teammate spawn prompt. Learned rules include anti-pattern code examples and better approach code — teammates must study these before writing code, not just read the rule text. Rules represent project-specific decisions made during previous sprints (naming conventions, library choices, API patterns). Skipping this step causes regressions.
If the group contains 2 or more stories, spawn a Claude Code agent team:
Create 1 teammate per story, up to a maximum of 5 concurrent teammates.
If the group has more than 5 stories, batch them: first 5 stories run, then the remainder after all complete.
Each teammate spawn prompt must include:
.claude/state/learned-rules.md..claude/skills/code-gen/SKILL.md.superpowers:test-driven-development — write failing tests before implementation code (red-green-refactor cycle).Teammates must coordinate on shared types:
If two teammates claim ownership of the same file, escalate to the orchestrator (this agent). Do not merge partial changes. Resolve ownership, then continue.
If the group contains exactly 1 story, do not spawn a team. Execute the story using the generator agent directly:
After all teammates (or the generator) complete:
npm test or pytest (whichever applies to the project).npm run lint or ruff check ..tsc --noEmit or mypy ..All three must pass with zero errors before proceeding. If any fails, return the failure output to the responsible teammate for a fix, then re-run the validation gate.
Spawn the code-reviewer agent on the set of changed files:
If the reviewer still emits BLOCK findings after 3 retries, escalate to the user with a summary of the unresolved issues.
.claude/state/learned-rules.md recreates decisions the team has already made, causing style and pattern drift.