codebase-inspection

Count repository lines of code, language breakdown, and code-versus-comment ratios.

1|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/zerwiz/wayofpi --skill codebase-inspection-zerwiz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codebase-inspection
Source: https://github.com/zerwiz/wayofpi/tree/main/.hermes/hermes-agent/skills/github/codebase-inspection
Command: npx skills add https://github.com/zerwiz/wayofpi --skill codebase-inspection-zerwiz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the manual work of estimating repository size by producing accurate codebase metrics, language breakdowns, and code-versus-comment ratios from a project directory.

Core Features & Use Cases

  • LOC and Size Analysis: Measure how large a repository is in terms of files, code lines, and comment lines.
  • Language Composition: Identify which languages are present and how much of the codebase each one represents.
  • Repository Health Checks: Quickly assess codebase structure during onboarding, audits, or planning sessions.
  • Use Case: A developer wants to compare two services before a refactor and uses this Skill to see which one is larger, which languages dominate, and whether the repo is mostly code or documentation.

Quick Start

Ask the skill to inspect the repository and report lines of code, language distribution, and code-versus-comment ratios with pygount.

Frequently Asked Questions about codebase-inspection

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I count lines of code and get a language breakdown for a repository?

You can analyze a repository's code-versus-comment ratio by running this Skill with pygount on your project directory, which measures code lines against comment lines to provide a quick health assessment of your codebase structure.

Can I measure code and comment ratios for Python and JavaScript projects?

Yes, you can measure code and comment ratios for Python and JavaScript projects using this Skill, which applies pygount to analyze mixed-language codebases and report the exact ratio of code lines to comment lines.

Does pygount automatically skip dependency and build directories during repository analysis?

Pygount requires folder exclusions configured by this Skill to skip dependency and build directories during repository analysis, ensuring that generated metrics reflect your actual source code rather than external libraries.

What is the best way to compare repository size and language composition before a refactor?

The best way to compare repository size and language composition before a refactor is to use this Skill to generate quick metrics on file counts, LOC, and language distribution, allowing you to see which service is larger and which languages dominate.

Do I need to install pygount to perform a repository health check and LOC analysis?

Yes, you need pygount installed to perform a repository health check and LOC analysis, as this Skill relies on it to accurately map repo size, count lines of code, and calculate language breakdowns from your codebase directory.