codebase-inspection

Analyze codebases with pygount to produce LOC, language breakdown, and code-vs-comment metrics.

Updated Jun 19, 2026
One-click install
npx skills add https://github.com/AnandaAnugrahHandyanto/savarez_agent --skill codebase-inspection-anandaanugrahhandyanto
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codebase-inspection
Source: https://github.com/AnandaAnugrahHandyanto/savarez_agent/tree/main/skills/github/codebase-inspection
Command: npx skills add https://github.com/AnandaAnugrahHandyanto/savarez_agent --skill codebase-inspection-anandaanugrahhandyanto

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Analyze codebases to determine lines of code, language distribution, and code-vs-comment ratios using pygount.

Core Features & Use Cases

  • Language breakdown: Get per-language counts, code lines, and comments to understand repo composition.
  • LOC and size metrics: Quantify repository size and language mix for audits and planning.
  • Use Case: Quickly assess a project to estimate effort for onboarding, refactoring, or quality improvements.

Quick Start

Run pygount on the target repository with a folders-to-skip list to generate a language breakdown and code metrics.

Frequently Asked Questions about codebase-inspection

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

FAQPage Schema
How do I analyze codebase LOC and language breakdown?

To analyze codebase LOC and language breakdown, you run pygount on the target repository with a folders-to-skip list to generate per-language counts, code lines, and comments.

What's the best way to get code-vs-comment metrics for a repository?

Getting code-vs-comment metrics requires running pygount on your codebase, which calculates the distribution between actual code lines and comments across all detected programming languages.

Does pygount work with repositories of varying sizes and languages?

Pygount analyzes repositories of varying sizes and languages to assess project size, language mix, and code distribution, making it suitable for audits and onboarding planning.

How do I exclude dependency directories when calculating lines of code?

To exclude dependency directories when calculating lines of code, you must configure the pygount command invocation with a specific folders-to-skip list before running the analysis.

Why do I need pygount installed for codebase inspection?

Pygount is required for codebase inspection because it is the underlying engine that produces the LOC breakdown, language distribution, and code-vs-comment ratios for the target repository.

When do I need a language breakdown for refactoring planning?

A language breakdown is needed for refactoring planning when you must quantify repository size, understand the language mix, and estimate effort for quality improvements or onboarding.