Claude-skill-registry Codebase Health Reporter
Generate comprehensive health report for Leavn codebase - metrics, technical debt, bugs found/fixed, recommendations for next session
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/codebase-health-reporter" ~/.claude/skills/majiayu000-claude-skill-registry-codebase-health-reporter && rm -rf "$T"
manifest:
skills/data/codebase-health-reporter/SKILL.mdsource content
Codebase Health Reporter
Generate health metrics and recommendations:
-
Collect metrics:
- Lines of code:
find LeavnApp -name "*.swift" | xargs wc -l - File count:
find LeavnApp -name "*.swift" | wc -l - Git stats:
git log --oneline -20 - Code deleted:
git diff --shortstat main
- Lines of code:
-
Audit key areas:
- @Published usage:
grep -r "@Published" | wc -l - try! force unwraps:
grep -r "try!" | wc -l - Empty catches:
grep -r "} catch {}" | wc -l - UserDefaults:
grep -r "UserDefaults.standard" | wc -l
- @Published usage:
-
Create report sections:
- Session summary (bugs fixed, lines changed)
- Technical debt (remaining issues)
- Recommendations (prioritized by impact)
- Ship readiness checklist
-
Output:
CODEBASE_HEALTH_REPORT.md
Use when: Session complete, need status report, planning next work, ship decision