with one click
speckit-retrospect-run
// Run a session retrospective that surfaces context-management gaps and routes them to approved follow-up actions.
// Run a session retrospective that surfaces context-management gaps and routes them to approved follow-up actions.
Archive a feature specification into main project memory after merge, resolving gaps and conflicts
Run the full speckit workflow end-to-end — specify, plan, critique, tasks, implement, review, extract — making all decisions autonomously.
Perform a dual-lens critical review of the specification and plan from both product strategy and engineering risk perspectives before implementation.
Extract knowledge, guidelines, and ADRs from one or more completed spec directories into the project documentation system.
Produce a flow-level summary of the current Claude Code session — executive summary, chronological timeline, and outcomes — written into the active feature directory next to spec.md / plan.md.
| name | speckit-retrospect-run |
| description | Run a session retrospective that surfaces context-management gaps and routes them to approved follow-up actions. |
| compatibility | Requires spec-kit project structure with .specify/ directory |
| metadata | {"author":"github-spec-kit","source":"retrospect:commands/retrospect.md"} |
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty). Treat it as optional scope guidance, such as a focus area, a pasted transcript summary, or a preferred disposition.
Run a retrospective on the current agent session while the work is still fresh in context. The goal is to identify concrete improvements to the repository's context-management surface area: AGENTS.md, CLAUDE.md, .claude/settings.json, .agents/skills/, .agents/commands/, .specify/templates/, dev/knowledge/, dev/guides/, dev/guidelines/, dev/adr/, and product or architecture decisions that caused avoidable friction.
This command closes the loop from "the agent struggled with X" to "X is captured as an approved repo improvement, dedicated PR, GitHub issue, or local-only note."
fix-now, open-pr, github-issue, and local-only.fix-now, present a diff preview or precise patch plan before writing files. Apply only the approved changes.github-issue, defer to the existing create-issue skill when available; if it is unavailable, use gh issue create only after the user approves the exact issue content.AGENTS.md guardrails. Ask First topics, including database migrations, GraphQL schema changes, new dependencies, CI/CD workflow changes, and authentication or authorization changes, are never auto-applied. Route them to open-pr or github-issue.local-only for non-project-specific workflow preferences.git rev-parse --show-toplevel.git branch --show-current.git status --short to understand whether there are existing edits..specify/scripts/bash/check-prerequisites.sh --json --paths-only.FEATURE_DIR and use FEATURE_DIR/retrospective.md as the report path..claude/retrospectives/YYYYMMDD-HHMMSS-<short-branch-or-session-slug>.md as the report path.AGENTS.md and any area-specific AGENTS.md touched this session.CLAUDE.md and .claude/settings.json if present..agents/skills/ and commands in .agents/commands/..specify/templates/.dev/knowledge/, dev/guides/, dev/guidelines/, or dev/adr/ pages.Review the current conversation and repository context for friction that was avoidable through better shared context. Organize findings into exactly these categories:
AGENTS.md, CLAUDE.md, .claude/settings.json, skill prompts, commands, or spec-kit templates.dev/knowledge/, dev/guides/, dev/guidelines/, or dev/adr/.Prefer concrete findings over broad observations. Each finding must cite the session event or repository location that motivated it.
For each finding, propose one disposition:
| Disposition | Use When | Action After Approval |
|---|---|---|
fix-now | Small, low-risk repo context updates that belong on the current branch and do not touch Ask First topics. | Show diff preview, then edit files only after approval. |
open-pr | Context or harness changes that should be reviewed separately from the current feature branch, or anything touching Ask First topics. | Draft a branch/PR plan. Do not branch, commit, push, or open a PR unless explicitly approved. |
github-issue | Larger work, ambiguous ownership, product/architecture debt, ADR candidates needing human authorship, or work outside current scope. | Use the create-issue skill to draft each issue; create only after approval. |
local-only | Personal workflow preferences or notes that should not become repo policy. | Record only in approved local .specify/memory/report locations supported by the runtime. |
Disposition rules:
fix-now.github-issue unless the user explicitly asks for a dedicated PR.Before writing any files, present the retrospective in chat using this structure:
## Session Retrospective
**Scope**: <current feature, branch, or ad-hoc session>
**Proposed report path**: <path>
### Findings
| ID | Category | Evidence | Improvement | Disposition |
|----|----------|----------|-------------|-------------|
| R1 | Instructions / Configuration Gaps | <specific session event or file path> | <concrete change> | fix-now |
### Disposition Buckets
#### fix-now
- R1: <target file and change summary>
#### open-pr
- R2: <branch or PR scope>
#### github-issue
- R3: <issue title>
#### local-only
- R4: <memory/report note>
### Approval Request
Reply with one or more approved buckets, for example:
- `approve report only`
- `approve fix-now`
- `approve github-issue R3`
- `approve all except open-pr`
The report must include concrete findings in all four categories. If a category genuinely has no findings, include the category with None found and a one-sentence reason.
Save the retrospective report only after the user approves report only, a disposition bucket, or all.
Report path:
specs/<current-feature>/retrospective.md..claude/retrospectives/YYYYMMDD-HHMMSS-<short-branch-or-session-slug>.md.If the report path already exists, append a numeric suffix rather than overwriting it.
Process only the buckets the user approved.
create-issue skill with the finding as source material.After approved actions are complete, provide a brief summary: