ワンクリックで
implement
Execute a review-approved feature plan and produce or refine the implementation report for that feature.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Execute a review-approved feature plan and produce or refine the implementation report for that feature.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Validate workflow markdown documents such as plans, reviews, implementation reports, and audits against the required format contract.
Master workflow orchestrating feature planning, review, implementation, audit, and retrospectives. Entry point for feature development lifecycle.
Audit a feature implementation against its approved plan and implementation report, then produce the architect verdict and follow-up direction.
Create a feature-specific context document and save it under the feature contexts directory for later planning, review, or implementation work.
Create a feature document covering business context and initial architecture for a new feature using the PM and Architect workflow.
Orchestrate the full feature workflow loop by detecting artifact state and routing through review, implementation, audit, and follow-up steps.
| name | implement |
| description | Execute a review-approved feature plan and produce or refine the implementation report for that feature. |
Purpose: Execute a review-approved plan as Developer and create or refine the implementation report. Hermetic per feature; agent doc context = feature.
Choose any of the following:
/implement # No args: auto-detect from chat history
/implement feat-2026-01-123 # With FEATURE_ID: infer plan-slug from feature dir
/implement plan # Artifact ref: use current feature's latest review-approved plan
/implement feat-2026-01-123 1-refactor # FEATURE_ID + plan-slug explicitly
/implement A{n} # Audit ref: refine active implementation from Audit Round A{n}
/implement {feature-dir}/plans/{plan-slug}.plan.md A{n} # Explicit audit-triggered refinement
When no args: auto-detect from chat — find most recent FEATURE_ID reference and most recent approved plan, or validate if already in feature context.
Mode detection: From user's message, determine whether this is plan execution (execute plan / first run / after replan) or refinement (bug fixes, follow-up work on current implementation). In refinement mode, an implementation report must already exist (last round will be extended). A{n} always means audit-triggered refinement.
/implement — skill will infer current feature and plan from chat./implement ... A{n} after /audit returns needs-fixes; this keeps /implement active and records audit follow-up in the current implementation report.Parse the user's input using this order:
Extract FEATURE_ID from:
feat-2026-01-123)If unable to determine: Prompt user for FEATURE_ID before proceeding.
Infer plan-slug from:
{feature-dir}/plans/{plan-slug}.plan.md)plans/ directory in feature folder)Extract trigger reference from remaining args:
A{n} → Audit Round n; this is audit-triggered refinement and MUST load reports/{plan-slug}.audit.mdI{n} → Implementation Round n; use only as context for refinement if explicitly suppliedDetermine mode:
A{n}; never create a new implementation roundIf ambiguous: Prompt user whether this is plan execution or refinement work.
{feature-dir}/reports/{plan-slug}.review.md from disk. Do NOT assume it exists based on chat history or inference.Verdict: ready (search for line starting with Verdict:).reports/{plan-slug}.review.md. Run /review first."/review, do NOT proceed, do NOT fall back to any other action./review or /replan first."A{n}:
{feature-dir}/reports/{plan-slug}.audit.md from disk.A{n} and parse the audit verdict.A{n} section/source is missing: output error and STOP immediately. Do NOT infer from chat or continue with a different audit round.needs-fixes: output error and STOP immediately. Use /replan for plan-fix or re-plan; use /retro/finish for ready.{feature-dir}/notes/{plan-slug}.problems.md exists, read it. If audit mentions a problems file but it is missing, document the missing file as a blocker and STOP unless the audit findings are fully present in the audit report.{feature-dir}/reports/{plan-slug}.implementation.md exists.## Retrospective section and extract all ### I{n} — {date} blocks.[risk] entries from those sections.[risk] entries to anticipate likely problems.If no implementation report exists yet (first round) — skip this step and proceed to Delegation.
Context documents (optional, if plan has ## Contexts section):
## Contexts, read those context documents from {feature-dir}/contexts/.### Contexts consulted per Implementation Round.Audit-triggered refinement context (required for A{n}):
A{n} from reports/{plan-slug}.audit.md.notes/{plan-slug}.problems.md when present and map each problem to concrete follow-up work, validation evidence, or documented non-action.## Implementation Round I{n}. One plan version → at most one implementation round: each plan version (v{N}) may appear only once in the compatibility table; the next implementation run is for the next plan version after replan.## Implementation Round I{n}'s Out-of-Plan Work section (append entries). No new round is created; Plan Version in the compatibility table stays unchanged. Static sections (Summary, Files Changed, Commands Executed, etc.) are updated to reflect the refinement work.A{n}): Same report-writing behavior as refinement mode, but scope is driven by audit findings and notes/{plan-slug}.problems.md. Do not create a new implementation round; append A{n} follow-up work to the active/last I{round}.CRITICAL — Execution context: When the user invokes /implement directly (inline mode, no "loop" or "auto"), execute the Developer work in the current context — you ARE the Developer. Do NOT launch a subagent. Subagent delegation for /implement happens ONLY in loop/auto mode (user said "loop", "auto", or invoked /loop).
In loop/auto mode only: Delegate to Developer subagent via the Task tool with subagent_type="developer" or equivalent.
Pass to Developer:
Developer prompt (used for both delegation and fallback):
Role: You are the Developer (developer.md). Your only job is to execute the plan and write the implementation report.
Doc context: This feature (feat doc +
plans/+notes/+reports/)Task: Execute plan
{plan-slug}step by step.
- Plan path:
plans/{plan-slug}.plan.md- Output:
{feature-dir}/reports/{plan-slug}.implementation.mdConstraints:
- Execute only what is in PLAN.md — do NOT change the plan
- If something blocks — document in Deviations section
- Validation is mandatory: run ALL validation commands listed in each Step's
- **Validation**:block before marking that step done
- If a validation command cannot be run (environment issue) — mark Step as
partial, document the reason as a PROBLEM entry, and still attempt all other validations- A Step is
doneonly when its validation commands have been executed and passed- A Step is
partialwhen code changes are made but validation was not run or did not pass- Never mark a Step
doneif its validation commands were not executedReport file structure (top to bottom — static sections first, rounds at the end):
- Header + Compatibility table
- Summary, Steps Executed, Files Changed, Commands Executed, Validation, Results, Deviations, Open Issues
## Retrospective— append one### I{n}block after each validation run## Decision Log— user-only; accumulates explicit user choices, corrections, artifact placement choices, rejected/accepted directions, and durable workflow preferences across all rounds## Implementation Round I1,## Implementation Round I2, … — appended at the end, chronologicallyRetrospective (section 3 above):
- One
### I{n} — {YYYY-MM-DD}block per validation run — appended after each run, never deleted- Write when: unexpected codebase facts, environment constraints that changed the approach, risks that materialized
- Do NOT write: paraphrasing of Issues, summary of what was done — no value
- If round produced no discoveries — skip the block entirely
- Suggested labels:
[codebase],[tooling],[plan],[process],[risk]; add domain-specific labels when they make future synthesis clearer- Mirrors
## Retrospectivein the plan fileDecision Log (section 4 above):
- Place for explicit user input that changed implementation behavior, artifact content, language/format, scope, validation/reporting expectations, or continuation handling
- Not round-specific — accumulates throughout the implementation
- Write only when user-driven decisions exist; omit section entirely if none were captured
- Format:
{context/condition}: {decision, correction, or preference}- The section itself means "user"; do not prefix entries with
User:Implementation Round (section 5 above — append after each validation run):
- Step Results table (done/partial/failed per step)
- Issues: structured BLOCKER/PROBLEM entries with evidence + root cause hypothesis
- Contexts consulted (optional): context docs referenced during this round
- Out-of-Plan Work: mandatory — document ALL changes outside plan steps:
- File edits, config tweaks, or code changes not in any plan step
- Debug scripts, extra test runs, logging added temporarily
- Dependency or environment changes, workarounds
- Format:
- [type] description → reason → result- Purpose: Architect reads this to understand real changes — omissions cause plan drift
- If nothing was done outside the plan: write
Out-of-Plan Work: noneRefinement mode (when user requested bug fixes or follow-up work, including audit-triggered
A{n}work): Do not create a new## Implementation Round I{n}. Perform the requested work, then append all changes to the last existing round's Out-of-Plan Work (add new bullet entries). Update static sections (Summary, Files Changed, Commands Executed, Validation, Results, Open Issues, etc.) to reflect the refinement. Plan Version in the compatibility table stays unchanged.Custom continuation rule: Any custom user request handled while
/implementis active MUST be reflected in{feature-dir}/reports/{plan-slug}.implementation.md. Record file edits, validation-only work, decisions not to act, blockers, and user-requested scope changes in the active implementation report before completing the turn.See full format: implementation-format.md
The implementation report MUST include a compatibility table in the header block (after Date/Plan lines):
## Plan–Implementation Compatibility
| Implementation Round | Plan Version | Date | Result |
| -------------------- | ------------ | ---------- | ------------------- |
| I1 | v{N} | YYYY-MM-DD | N passed / M failed |
| I2 | v{N+1} | YYYY-MM-DD | N passed / M failed |
## Implementation Round I{n} is written{feature-dir}/reports/{plan-slug}.implementation.md per implementation-format.md.After emitting Developer Response, halt and wait for the user's next input. The response must end with:
---
**Active context**: role: Developer · feat: {feat-id} · plan: {plan-slug} · implementation: I{round} · mode: {execute | refine | validate} · skill: /implement
Use mode: execute for primary plan execution work, mode: refine for in-round follow-up or audit-driven refinement on the active implementation round, and mode: validate when the current turn is focused primarily on validation evidence, report closure, or validation-only follow-up.
When the next user input is exactly one of the offered chooser keys:
[a] / a (completed or partial): launch an Architect subagent (architect.md) with /audit {feature-dir}/reports/{plan-slug}.implementation.md I{round}. Pass the implementation report path and active round as context. If subagent launch is unavailable, print only the copyable /audit command from the response template and stop.[r] / r (partial or blocked): launch an Architect subagent (architect.md) with /replan {feature-dir}/plans/{plan-slug}.plan.md I{round}. Pass the implementation report path, active round, and blockers/deviations as context. If subagent launch is unavailable, print only the copyable /replan command from the response template and stop.[q] / q: run the QA validation guidance flow below.Do not treat arbitrary custom user messages as chooser input. If the user writes a normal instruction instead of a chooser key, stay in /implement mode, keep {feature-dir}/reports/{plan-slug}.implementation.md as the active implementation document, do the requested follow-up work when in scope, and keep appending/updating the report in the active implementation round (I{round}) rather than starting an unrelated workflow. In refinement mode, extend the last round's Out-of-Plan Work and static summary sections; do not create a new round unless the plan version or validation pass semantics require one.
Mandatory report reflection for custom work: Every custom continuation under /implement must update the implementation report before the turn is complete, even when no files changed. Record the action as Out-of-Plan Work, Validation, Open Issue, or a Developer note as appropriate. If the request is refused or out of scope, record the reason in the report when an active implementation document exists.
Mandatory footer for every /implement response: If feature, plan, and implementation round are known, every response while /implement is active must end with the active context footer, including refinement summaries, blockers, validation-only updates, clarification requests, and error responses. Do not omit the footer just because the response is short or custom. The footer must include the operational mode (execute, refine, or validate) that best matches the current turn.
The QA validation guidance is not a formal QA approval and not an audit. It is a Developer-facing assessment of what validation or test work is missing or weak, including gaps the plan did not explicitly call out.
When the user chooses [q] after an implementation round:
subagent_type="qa-automation") with the feature doc, plan path, implementation report path, changed files, validation results, and implementation round I{round}./implement context or records it as a documented remaining issue/deviation if not feasible now.### QA Validation Guidance
- **Source**: QA Automation assessment for I{round}
- **Accepted Follow-ups**: {count}
- **Implemented Follow-ups**: {count}
- **Remaining Validation Gaps**: {count}
- **Summary**:
- {Developer-authored summary of accepted QA guidance and action taken}
Inputs integration:
.pythia/runtime/inputs.js check on cited plan/context files when verifying grounding.reports/{plan-slug}.implementation.md is updated on disk, launch a Validator subagent in a separate context. Use the handoff prompt in /validate skill § Validator subagent (delegation): absolute {ABS_PATH_TO_VALIDATE_SKILL} and absolute path to the implementation report. Do not complete until exit 0. PostToolUse hook warnings ≠ PASS — see hook-integration.md.
subagent_type="generalPurpose" or the same type your /loop skill uses for one-shot handoffs. Delegated body = only the filled handoff prompt from /validate skill § Validator subagent; do not paste implementation report text, command transcripts, or step results — only validation instructions./loop already documented successful validation for this revision, you may skip nested Validator — state that.partial in Step Results table## Implementation Round I{n} for each validation run (refinement mode: no new round; only last round's Out-of-Plan Work extended)A{n} audit-triggered refinement: verify audit file was read, audit verdict is needs-fixes, problems file was read when present, and A{n} follow-up is documented in the implementation report./implement: verify the implementation report reflects the custom work or refusal before completing.## Implementation Round section is the current I{n} and rounds increase monotonically (I1, I2, … I{n}) with no out-of-order inserts.## Next Steps and the active implementation footer from response-formats.md./implement response with known context ends with **Active context**: role: Developer · feat: {feat-id} · plan: {plan-slug} · implementation: I{round} · skill: /implement.See also: Requires /review skill verdict ready before executing.