Works with the AI tools you already use
Codebase Metrics Report
Inspect a codebase with pygount: count lines of code by language, produce summary and XML/CSV reports, rank the largest files, compute language ratios, spot com
Free
Codebase Metrics Report
Example session with this skill installed
Run a full metrics report on the current directory. Skip node_modules and dist. Give me the top 5 largest files and a language breakdown.
- Read your context and instructions
- Compiled the codebase metrics report
- Generated the data export
Analysis complete.
Total LOC: 12,450 (TS: 65%, CSS: 20%, HTML: 15%).
Top 5 Largest Files:
- src/legacy/api.ts (1,240 lines)
- src/store/main.ts (890 lines)
...
Summary saved to summary.txt, full data in report.csv.
codebase-metrics-report.csv
CSV · data export
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
The problem
Engineering leads and developers often lack objective data on codebase composition. Manual line counting is inaccurate because it fails to distinguish between functional code, comments, and boilerplate.
What it does
- Generates deterministic reports on lines of code (LOC) categorized by language.
- Produces machine-readable XML and CSV files for automated metric tracking.
- Identifies maintenance hotspots by ranking files by size and cyclomatic complexity.
- Calculates language distribution ratios to inform migration or hiring decisions.
- Performs directory comparisons to quantify the impact of refactors or branch merges.
Frameworks & tools
Python, pygount, radon, and standard Unix utilities like csvcut and sort.
Why this beats prompting it yourself
Standard LLM prompts often hallucinate counts or fail to handle large directory structures. This skill provides a specific, reproducible pipeline using offline tools that correctly ignore comments and blank lines, ensuring audit-grade accuracy.
Use cases
- Quantifying technical debt by identifying oversized or overly complex modules.
- Performing due diligence on a new codebase to understand language distribution.
- Measuring the net code reduction after a major refactoring sprint.
- Generating automated reports for stakeholders during a migration project.
Known limitations
Requires Python and pygount installed on the local system. Performance may lag on massive repositories if excluding generated or vendored folders is skipped.
How to install
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 3
Ask your agent to use it
Restart the agent if it was already running. It picks the skill up automatically - no config needed.
Skills folder by agent
Click the path to copy it. Create the folder if it does not exist yet.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
1 install
Downloaded by developers to date
Free forever
No account required to browse
Trust & safety
Security scanned
Verified clean 1 month ago
- Free to download with an account