con un clic
repo-retrospective
// Quality assurance for AI onboarding documentation. Analyzes ONBOARD documents against X-Ray outputs and actual code to identify gaps, verify claims, and suggest improvements.
// Quality assurance for AI onboarding documentation. Analyzes ONBOARD documents against X-Ray outputs and actual code to identify gaps, verify claims, and suggest improvements.
| name | repo-retrospective |
| description | Quality assurance for AI onboarding documentation. Analyzes ONBOARD documents against X-Ray outputs and actual code to identify gaps, verify claims, and suggest improvements. |
Quality assurance skill for AI onboarding documentation. Ensures ONBOARD documents effectively enable fresh Claude instances to work in codebases.
ONBOARD documents are curated from X-Ray scans + investigation.
Curation involves judgment:
- What to include (critical for warm start)
- What to omit (noise, duplicates, low-value)
- What to verify (claims need evidence)
- What to flag (gotchas, hazards)
Judgment can be wrong:
- Critical information omitted
- Claims not properly verified
- Gotchas missed
- Gaps not acknowledged
Cost of errors: Hours of developer time wasted.
Retrospective analysis with five phases:
| Phase | Purpose | Output |
|---|---|---|
| Inventory | Catalog ONBOARD claims | Checklist to verify |
| Coverage | Compare ONBOARD vs X-Ray | Gap analysis |
| Verification | Spot-check [VERIFIED] claims | Accuracy report |
| Actionability | Test usability with questions | Score (X/8) |
| Recommendations | Synthesize findings | Specific fixes |
# Full retrospective
@repo_retrospective full \
--onboard path/to/ONBOARD.md \
--xray path/to/xray.md \
--codebase /path/to/code
# Quick verification audit only
@repo_retrospective quick --onboard path/to/ONBOARD.md --codebase /path/to/code
# Coverage analysis only
@repo_retrospective coverage --onboard path/to/ONBOARD.md --xray path/to/xray.md
# Actionability test only
@repo_retrospective actionability --onboard path/to/ONBOARD.md
| Scenario | Mode | Purpose |
|---|---|---|
| Project completion | full | Final QA before commit |
| Mid-project checkpoint | quick | Verify claims are accurate |
| After X-Ray refresh | coverage | Ensure new signals captured |
| User suspects issues | actionability | Test document usability |
full — Complete RetrospectiveAll five phases. Most thorough analysis.
Inputs:
Output: Full retrospective report with recommendations
Token budget: ~30-40K
quick — Verification AuditSpot-check [VERIFIED] claims only.
Inputs:
Output: Verification audit report
Token budget: ~15-20K
coverage — Gap AnalysisCompare ONBOARD against X-Ray output.
Inputs:
Output: Coverage matrix with gaps identified
Token budget: ~15-20K
actionability — Usability TestTest if document enables effective coding.
Inputs:
Output: Actionability score (X/8) with breakdown
Token budget: ~10-15K
When comparing ONBOARD vs X-Ray:
| Category | Examples | Expected in ONBOARD? |
|---|---|---|
| Must Have | Architecture diagram, Hazards, Top pillars | Yes |
| Should Have | Key data models, Critical side effects, Required env vars | Yes (curated) |
| Nice to Have | Decorator counts, Orphan files, Freshness stats | No (can omit) |
When auditing [VERIFIED] claims:
| Outcome | Meaning | Action Required |
|---|---|---|
| Confirmed | Claim matches code exactly | None |
| Partially True | Correct but missing context | Recommend enhancement |
| Outdated | Code changed since verification | Re-investigate |
| Inaccurate | Claim doesn't match code | Critical fix needed |
| Unverifiable | Can't find cited location | Clarify reference |
Standard questions to test document usability:
Scoring:
20% claims unverifiable
Findings are marked:
| Level | Meaning |
|---|---|
[CONFIRMED] | Verified by reading actual code |
[ASSESSED] | Based on document analysis only |
[UNCERTAIN] | Needs human judgment |
# Retrospective Report: [Project Name]
## Executive Summary
[1-2 sentences overall assessment]
## Coverage Analysis
### Critical Gaps (Must Fix)
### Moderate Gaps (Should Fix)
### Justified Omissions
## Verification Audit
### Confirmed Claims
### Issues Found
## Actionability Score
[X/8 with breakdown]
## Specific Recommendations
[Numbered, actionable items]
## Conclusion
[Ship It / Needs Minor Fixes / Needs Significant Rework]
This skill is designed to QA documents produced by the repo_xray agent:
Workflow:
┌─────────────────────────────────────────────────────────────────────────┐
│ │
│ 1. xray.py scans codebase → xray.md + xray.json │
│ │
│ 2. repo_xray agent investigates → ONBOARD.md │
│ │
│ 3. repo_retrospective reviews → RETROSPECTIVE_REPORT.md │
│ ↓ │
│ Identifies gaps, verifies claims, scores actionability │
│ ↓ │
│ Produces specific recommendations │
│ │
│ 4. Developer/Agent fixes issues (if any) │
│ │
│ 5. Final ONBOARD.md ready for use │
│ │
└─────────────────────────────────────────────────────────────────────────┘
repo-retrospective/
├── SKILL.md # This file
├── COMMANDS.md # Quick reference
└── templates/
└── RETROSPECTIVE.md.template # Report template
This skill ensures AI onboarding documentation maintains quality and effectively solves the cold start problem.
Exhaustive LLM-powered codebase investigation for optimal AI agent onboarding. Builds on X-Ray signals with unlimited investigation budget to produce the highest-quality onboarding document possible.
AST-based Python codebase analysis. Use for exploring architecture, extracting interfaces, mapping dependencies, or generating onboarding documentation.