All skills
Skillintermediate
report
Generate a project analytics report covering code quality, velocity, and health metrics.
Claude Code Knowledge Pack7/10/2026
Overview
Generate a project analytics report covering code quality, velocity, and health metrics.
Steps
- Gather git statistics:
git shortlog -sn --no-mergesfor contributor activity.git log --format='%ai' --since='30 days ago'for commit frequency.git diff --stat HEAD~50for recent change volume.
- Analyze code quality metrics:
- Lines of code by language using file extensions.
- Test-to-code ratio (test files vs source files).
- Average file size and function length.
- TODO/FIXME/HACK comment count.
- Check dependency health:
- Total dependencies (direct and transitive).
- Outdated packages count.
- Known vulnerability count.
- Measure test health:
- Run test suite and capture pass/fail ratio.
- Calculate approximate coverage if coverage tool exists.
- Assess documentation coverage:
- README completeness check.
- API documentation presence.
- Inline documentation density.
- Compile findings into a structured report.
Format
Project Health Report - <date>
Code: files, LOC across languages
Tests: tests, <pass rate>% passing
Deps: direct, outdated, vulnerable
Activity: commits in last 30 days by contributors
Score: <A/B/C/D/F>
Top issues:
1. <most impactful issue>
2. <second most impactful>
Rules
- Use objective metrics, not subjective assessments.
- Compare against industry benchmarks where possible.
- Highlight trends (improving/declining) over the last 30 days.
- Keep the report under 100 lines for quick consumption.