codebase-metrics

Installation
SKILL.md

Codebase Metrics

Measure structural quality through cyclomatic complexity, afferent/efferent coupling, cohesion indices, and size distribution to identify hotspots and health trends.

Guiding Principle

"Measurement is the first step to improvement, but only if you measure what matters."

Procedure

Step 1 — Size & Distribution Analysis

  1. Count lines of code per language using structural analysis (exclude blanks, comments).
  2. Compute file size distribution: median, P90, P99 to identify outliers.
  3. Identify the largest files and modules — these are refactoring candidates.
  4. Calculate code-to-test ratio per module.
  5. Produce a heat map of file sizes by directory.
Installs
1
GitHub Stars
2
First Seen
Sep 4, 2026