CommandOpen
report (analytics reporter)
Generate a project analytics report covering code quality, velocity, and health metrics.
Front matter
name: report
description: Generate a project analytics report covering code quality, velocity, and health metrics.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: <N> files, <N> LOC across <N> languages
Tests: <N> tests, <pass rate>% passing
Deps: <N> direct, <N> outdated, <N> vulnerable
Activity: <N> commits in last 30 days by <N> 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.
Author: rohitg00, Claude Code toolkit (rohitg00). License: Apache-2.0.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
There are more like this in the members library
The Codex library holds 7,009 entries. Members can search all of them by meaning and read every one in full.