본문으로 건너뛰기
cccskills
무료GitHub에 공개

speckit-retrospective-analyze

Perform a post-implementation retrospective analysis measuring spec adherence, implementation deviations, and lessons learned.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md6.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

User Input

$ARGUMENTS

Consider user input before proceeding (if not empty).

Goal

Analyze completed implementation against spec.md, plan.md, and tasks.md to measure spec adherence and drift. Generate actionable insights for future SDD cycles.

Constraints

  • Output: Generates and saves retrospective.md report to FEATURE_DIR
  • Post-Implementation: Run after implementation complete; warn if <80% tasks done, confirm before proceeding if <50%
  • Human Gate for spec changes: before any action that modifies spec.md (including /speckit.specify handoff), explicitly ask for user confirmation and stop if not approved
  • Confirmation policy: default is NO. Only explicit approvals (y, yes, si, s, sí) count as consent

Execution Steps

1. Initialize Context

Run {SCRIPT} 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").

2. Validate Completeness

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

  • 50-79%: Warn about incomplete implementation, continue with partial analysis
  • <50%: STOP and confirm before continuing

3. Load Artifacts

  • spec.md: FR-XXX, NFR-XXX, SC-XXX, user stories, assumptions, edge cases
  • plan.md: Architecture, data model, phases, constraints, dependencies
  • tasks.md: All tasks with status, file paths, blockers
  • constitution: /memory/constitution.md (if exists)

4. Discover Implementation

  • Extract file paths from completed tasks plus recent git history
  • Inventory: Models, APIs, Services, Tests, Config changes
  • Audit: Libraries, frameworks, integrations actually used

5. Spec Drift Analysis

Perform:

  1. Requirement coverage (implemented, partial, not implemented, modified, unspecified)
  2. Success criteria validation
  3. Architecture drift against plan
  4. Task fidelity (completed/modified/added/dropped)
  5. Timeline and blockers (if available)

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.

6. Severity Classification

Classify findings as:

  • CRITICAL (core functionality or constitution violations)
  • SIGNIFICANT (deviations that affect UX/performance/operations)
  • MINOR (small or cosmetic variations)
  • POSITIVE (improvements over spec)

7. Innovation Opportunities

For positive deviations, document:

  • What improved
  • Why it is better
  • Reusability potential
  • Whether it is a constitution candidate

8. Root Cause Analysis

For key deviations capture:

  • Discovery point (planning/implementation/testing/review)
  • Cause (spec gap, tech constraint, scope evolution, misunderstanding, improvement, process skip)
  • Prevention recommendation

9. Constitution Compliance

Check each constitution article against implementation. Treat violations as CRITICAL.

10. Generate Report

Create retrospective.md with:

  • YAML frontmatter (feature, branch, date, completion_rate, spec_adherence, counts)
  • Executive summary
  • Proposed Spec Changes (explicit list of intended spec.md edits, grouped by FR/NFR/SC and rationale)
  • Requirement coverage matrix
  • Success criteria assessment
  • Architecture drift table
  • Significant deviations
  • Innovations and best practices
  • Constitution compliance
  • Unspecified implementations
  • Task execution analysis
  • Lessons learned and recommendations
  • File traceability appendix

11. Self-Assessment Checklist (Required)

Before finalizing output, run this checklist and mark each item as PASS/FAIL:

  • Evidence completeness:
    • Every major deviation includes concrete evidence (file/task/behavior).
  • Coverage integrity:
    • FR/NFR/SC coverage is complete with no missing requirement IDs.
  • Metrics sanity:
    • completion_rate and spec_adherence formulas are applied correctly.
  • Severity consistency:
    • CRITICAL/SIGNIFICANT/MINOR/POSITIVE labels match stated impact.
  • Constitution review:
    • Constitution violations are explicitly listed (or None is stated).
  • Human Gate readiness:
    • If spec changes are proposed, Proposed Spec Changes is populated and ready for user confirmation.
  • Actionability:
    • Recommendations are specific, prioritized, and directly tied to findings.

Blocking rule:

  • If any of these fail: Coverage integrity, Metrics sanity, Human Gate readiness (when applicable), or Constitution review, do not finalize the report. Fix the gaps first.

12. Save Report

  1. Write to FEATURE_DIR/retrospective.md
  2. Optionally commit with:
    • feat(retrospective): add spec adherence report (adherence X%, completion X%)
  3. Confirm:
    • Retrospective saved | Adherence: X% | Critical findings: X

13. Human Gate Before Spec Changes

If retrospective findings recommend updating or regenerating the spec:

  1. Present a short summary of the proposed spec.md changes, referencing the Proposed Spec Changes section.
  2. Ask explicitly: Do you want me to modify spec.md now? (y/N)
  3. Treat any response other than y, yes, si, s, or sí as NO.
  4. Require a separate confirmation for each spec-modifying action (for example, each /speckit.specify run or direct spec.md edit).
  5. If declined or no response, do not modify spec and continue with report-only recommendations.

Treat launching /speckit.specify as a spec-modifying action that requires this gate.

14. Follow-up Actions

Prioritize:

  1. CRITICAL: constitution violations, breaking changes, security issues
  2. HIGH: significant drift and process improvements
  3. MEDIUM: best practices and constitution candidates
  4. LOW: minor optimizations

Follow-up commands:

  • /speckit.constitution for violations
  • /speckit.specify for spec updates
  • /speckit.checklist for new checklists

Guidelines

Count as Drift

Features differing from spec, dropped requirements, scope creep, or changes in technical approach.

Not Drift

Implementation details, bounded optimizations, bug fixes, refactoring, and test improvements.

Principles

  • Facts over judgments
  • Process over blame
  • Positive deviations are learning opportunities
  • Keep report concise and actionable

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

adapters

무료

Skill for the Adapters area of paddock. 108 symbols across 22 files.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

racecraft-lab/paddock-prototype122026년 6월 26일 업데이트

chat

무료

Skill for the Chat area of paddock. 62 symbols across 10 files.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

racecraft-lab/paddock-prototype122026년 6월 26일 업데이트

dashboard

무료

Skill for the Dashboard area of paddock. 80 symbols across 16 files.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

racecraft-lab/paddock-prototype122026년 6월 26일 업데이트

github

무료

Skill for the Github area of paddock. 23 symbols across 5 files.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

racecraft-lab/paddock-prototype122026년 6월 26일 업데이트

Use when the user needs to run GitNexus CLI commands like analyze/index a repo, check status, clean the index, generate a wiki, or list indexed repos. Examples: "Index this repo", "Reanalyze the codebase", "Generate a wiki"

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

racecraft-lab/paddock-prototype122026년 6월 26일 업데이트

Use when the user is debugging a bug, tracing an error, or asking why something fails. Examples: "Why is X failing?", "Where does this error come from?", "Trace this bug"

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

racecraft-lab/paddock-prototype122026년 6월 26일 업데이트

racecraft-lab의 스킬 모두 보기

이 스킬의 문제 신고