一键导入
retro
Generate or update a feature-level retrospective that synthesizes patterns, risks, and lessons from all plans and reports in the feature.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate or update a feature-level retrospective that synthesizes patterns, risks, and lessons from all plans and reports in the feature.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Audit a feature implementation against its approved plan and implementation report, then produce the architect verdict and follow-up direction.
Create a feature document covering business context and initial architecture for a new feature using the PM and Architect workflow.
Execute a review-approved feature plan and produce or refine the implementation report for that feature.
Orchestrate the full feature workflow loop by detecting artifact state and routing through review, implementation, audit, and follow-up steps.
Create or update a feature implementation plan with concrete steps, risks, and acceptance criteria for the Architect workflow.
Revise an existing feature plan after review findings, implementation issues, or manual edits while preserving plan history.
| name | retro |
| description | Generate or update a feature-level retrospective that synthesizes patterns, risks, and lessons from all plans and reports in the feature. |
| applyTo | [] |
Purpose: Synthesize a retrospective report for a feature — not a copy of retro blocks, but distilled insights, patterns, and recommendations for future plans. Output is saved to {feature-dir}/notes/{feature-slug}.retro.md.
Choose any of the following:
/retro # Auto-detect FEATURE_ID from chat history
/retro feat-2026-01-123 # FEATURE_ID explicitly
/retro path/to/feature/directory # Feature directory path explicitly
When no args: auto-detect FEATURE_ID from chat, infer feature directory.
/retro — skill will infer FEATURE_ID from chat context./retro feat-2026-01-123 (explicit feature)./retro path/to/feat-2026-01-123/ (explicit directory).notes/{feature-slug}.retro.md generated sections may be refreshed, but manual decision sections must be preserved.You are the Architect (architect.md). Doc context = this feature (feat doc + all plans/ + all reports/).
Input: Feature directory path. Discover all artifacts automatically.
plans/*.plan.md in feature directory.reports/*.implementation.md.reports/*.review.md.reports/*.audit.md.contexts/*.md and contexts/**/*.md in feature directory. These include research contexts and other feature-scoped context artifacts.notes/{feature-slug}.retro.md exists. If it exists, read it before writing the new report.## Manual Notes, ## Decisions, or ## Follow-up Decisions, preserve those sections verbatim in the rewritten report.Extract from each artifact and distill into patterns: [plan], [codebase], [process], [risk], [tooling], [automation]
From plans: Plan title, Plan-Version, status, date created, ## Retrospective blocks (including [automation] entries), ## Decision Log, revision log, risks, acceptance criteria
From implementation reports: Implementation Round blocks, ## Retrospective sections (including [automation] entries), ## Decision Log, Out-of-Plan Work, BLOCKER/PROBLEM issues, deviations
From review files: Review rounds count, final Verdict per round, key concerns (including automation suggestions if marked [automation]), ## Retrospective
From audit files: Final decision (ready | needs-fixes | plan-fix | re-plan), risk re-evaluation, automation suggestions noted in retrospective
From context files / research contexts: Context title/topic, source type when available, ## Retrospective sections, and user-only ## Decision Log sections. Treat research retrospectives as reusable findings; do not treat research conclusions as final architecture decisions unless a later plan/audit adopted them.
Decision Log pipeline:
/plan, /implement, /research, and /replan write user-only ## Decision Log entries as raw user decisions and corrections./retro collects those entries, filters out local one-off corrections, and highlights only explicit or repeated user/workflow preferences in the feature retrospective./retro does not write user profile files directly. Profile promotion is a later audit/profile step.## Decision Log in plans, implementation reports, and context/research files. Keep them as evidence, not as issues. Filter for signals worth carrying forward: repeated preferences, explicit "always/never" instructions, workflow rules, language/format rules, artifact placement rules, and agent behavior corrections. Do not invent labels or require structured fields.[automation] entries from ## Retrospective in plans and implementation reports, plus Reviewer findings. Identify repeating patterns or procedural workflows that appear across multiple plans or features — these are candidates for skill creation or process automation.## Retrospective sections and connect them to plans, reviews, implementations, or unresolved knowledge gaps.Every Key Discovery, Process Insight, Risk conclusion, Actionable Follow-up, and Automation Opportunity must include evidence. Evidence must name the artifact path and the relevant section, round, or status marker where possible.
Use this evidence shape in the report:
- **Evidence**: `plans/{plan-slug}.plan.md` -> `## Risks`; `reports/{plan-slug}.implementation.md` -> `## Implementation Round I{n}`
If evidence is weak or inferred, label it explicitly as Evidence strength: weak and explain what is missing.
Write report to {feature-dir}/notes/{feature-slug}.retro.md:
Sections:
[high] unfixed → Team evaluates: Quick fix in next round? Separate plan? Risk to next feature?[mid] unfixed → Suggested for next sprint or future replan[low] unfixed → Suggested for backlog; not urgent[nit] unfixed → Track in backlog if resource availableRecommendation → Evidence → Applies to → Candidate owner/skillAlso output a structured summary in chat using Retrospective Response Format from response-formats.md: include Summary, Key Lessons, Actionable Follow-ups, Retrospective Artifact, Next Steps, and Active context footer.
After emitting Retrospective Response, halt and wait for user input.
When the next user input is exactly one of the offered chooser keys:
[a] / a: stay in current Architect context and convert evidence-backed retrospective recommendations into concrete follow-up proposals. Do not edit plan/feature docs unless user approves.[q] / q: stay in current context and ask 3-5 deep questions about unresolved lessons, root causes, missing evidence, or recurring workflow failures.[n] / n: start a next-plan proposal flow in the current Architect context using evidence-backed retro findings. Do not continue with free-form discussion in place when this chooser action is selected. Do not create a plan until user confirms direction.[p] / p: run /retro-all in current context as a workflow step, not as free-form discussion.[x] / x: finish and stop.Do not treat arbitrary custom user messages as chooser input.
Every /retro response must end with:
---
**Active context**: role: Retrospective · feat: {feat-id} · skill: /retro
{feature-dir}/notes/{feature-slug}.retro.md, run workflow-doc validation per /validate skill if the validator supports retrospective documents.## Next Steps, and active context footer are present.0.See also: /retro-all skill, /plan skill