一键导入
speckit-retrospective-analyze
Perform a post-implementation retrospective analysis measuring spec adherence, implementation deviations, and lessons learned.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Perform a post-implementation retrospective analysis measuring spec adherence, implementation deviations, and lessons learned.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | speckit-retrospective-analyze |
| description | Perform a post-implementation retrospective analysis measuring spec adherence, implementation deviations, and lessons learned. |
| compatibility | Requires spec-kit project structure with .specify/ directory |
| metadata | {"author":"github-spec-kit","source":"extension:retrospective"} |
$ARGUMENTS
Consider user input before proceeding (if not empty).
Analyze completed implementation against spec.md, plan.md, and tasks.md to measure spec adherence and drift. Generate actionable insights for future SDD cycles.
retrospective.md report to FEATURE_DIRspec.md (including /speckit.specify handoff), explicitly ask for user confirmation and stop if not approvedy, yes, si, s, sí) count as consentRun .specify/scripts/powershell/check-prerequisites.ps1 -Json -RequireTasks -IncludeTasks from repo root. Parse JSON for FEATURE_DIR and AVAILABLE_DOCS. Derive paths: SPEC, PLAN, TASKS = FEATURE_DIR/{spec,plan,tasks}.md. Abort if missing.
For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'''m Groot' (or double-quote if possible: "I'm Groot").
total_tasks=$(grep -c '^- \[[ Xx]\]' "$TASKS" || echo 0)
completed_tasks=$(grep -c '^- \[[Xx]\]' "$TASKS" || echo 0)
if [ "$total_tasks" -eq 0 ]; then
echo "No tasks found in $TASKS" && exit 1
fi
completion_rate=$((completed_tasks * 100 / total_tasks))
Completion thresholds:
=80%: Proceed with full retrospective
spec.md: FR-XXX, NFR-XXX, SC-XXX, user stories, assumptions, edge casesplan.md: Architecture, data model, phases, constraints, dependenciestasks.md: All tasks with status, file paths, blockers.specify/memory/constitution.md (if exists)Perform:
Calculate:
Spec Adherence % = ((IMPLEMENTED + MODIFIED + (PARTIAL * 0.5)) / (Total Requirements - UNSPECIFIED)) * 100
Where Total Requirements is the count of all FR-XXX, NFR-XXX, SC-XXX from spec.md.
Classify findings as:
For positive deviations, document:
For key deviations capture:
Check each constitution article against implementation. Treat violations as CRITICAL.
Create retrospective.md with:
spec.md edits, grouped by FR/NFR/SC and rationale)Before finalizing output, run this checklist and mark each item as PASS/FAIL:
completion_rate and spec_adherence formulas are applied correctly.None is stated).Proposed Spec Changes is populated and ready for user confirmation.Blocking rule:
Coverage integrity, Metrics sanity, Human Gate readiness (when applicable), or Constitution review, do not finalize the report. Fix the gaps first.FEATURE_DIR/retrospective.mdfeat(retrospective): add spec adherence report (adherence X%, completion X%)Retrospective saved | Adherence: X% | Critical findings: XIf retrospective findings recommend updating or regenerating the spec:
spec.md changes, referencing the Proposed Spec Changes section.Do you want me to modify spec.md now? (y/N)y, yes, si, s, or sí as NO./speckit.specify run or direct spec.md edit).Treat launching /speckit.specify as a spec-modifying action that requires this gate.
Prioritize:
Follow-up commands:
/speckit.constitution for violations/speckit.specify for spec updates/speckit.checklist for new checklistsFeatures differing from spec, dropped requirements, scope creep, or changes in technical approach.
Implementation details, bounded optimizations, bug fixes, refactoring, and test improvements.
ACT AS the Agency CEO. You manage the lifecycle of a project by invoking specific expert agents in a strict 9-phase sequence using XML Protocols, Decision Trees, and Constitution enforcement. Integrates with GitHub Spec-Kit v0.4.4 + spec-kit-learn extension. Spec-Kit tools are execution engines called FROM inside Agency phases — Agency governs, Spec-Kit executes.
Act as a Principal Business Analyst (8+ years exp) bridging the gap between Strategy and Execution. Specializes in translating vague vision into rigorous technical specifications using Gherkin (BDD), BPMN 2.0, and strict Requirement Engineering standards.
The ultimate database authority. Merges the comprehensive, encyclopedic knowledge of the "Database Architect" (15+ domains, strategy, tech selection) with the battle-hardened execution of the "Senior DBA" (Synthetic data, stress testing, 1-year simulations).
Act as a Senior Technical Project Manager (10+ years exp) specializing in Agile Delivery at Scale, Sprint Planning, and Backlog Refinement.
Act as a Principal Product Manager (8+ years exp) driving product vision, strategy, and market fit. Specializes in RICE prioritization, Lean Canvas modeling, and defining high-impact MVPs. Bridges the gap between business goals and technical execution.
The ultimate architectural persona. Merges the specific, execution-focused "Principal Solution Architect" (FAANG-scale, 3-pass refinement, specific stack) with the comprehensive "Master Software Architect" (Review standards, 10+ capability categories, governance).