codebase-inspection

Analyze codebases to report lines of code, language distribution, and repository size using pygount.

1.2k|116|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/math-inc/OpenGauss --skill codebase-inspection-math-inc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codebase-inspection
Source: https://github.com/math-inc/OpenGauss/tree/main/skills/github/codebase-inspection
Command: npx skills add https://github.com/math-inc/OpenGauss --skill codebase-inspection-math-inc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Analyze and quantify codebase composition by computing LOC, language distribution, and repository size using pygount to inform project decisions.

Core Features & Use Cases

  • Language breakdown with file counts and percentages
  • LOC and file-count metrics across repositories
  • Code-vs-comment ratio assessments for maintainability
  • Use Case: Assess a new project to understand language balance and hotspots.

Quick Start

Analyze the target repository with pygount to output a language breakdown, LOC counts, and code-vs-comment ratios.

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 composition and get a language breakdown?

To analyze codebase composition, you can use this Skill to compute lines of code, language distribution with file counts and percentages, and repository size using pygount. It outputs a structured summary of the language breakdown for single repos or monorepos.

Can I assess code-vs-comment ratios for maintainability across a monorepo?

Yes, you can assess code-vs-comment ratios for maintainability across a monorepo. The Skill applies pygount to calculate these ratios alongside LOC counts and file-count metrics, helping you understand project balance and identify potential hotspots.

Do I need pygount installed to count lines of code in my repository?

Yes, you need pygount installed to count lines of code in your repository. The Skill requires pygount and proper folder exclusions to process the codebase and produce the structured summary of LOC counts and language distribution.

What is the best way to quantify language mix and file counts in a codebase audit?

The best way to quantify language mix and file counts in a codebase audit is applying this Skill. It leverages pygount to report language breakdowns with percentages, LOC metrics, and repository size to inform project decisions.

Why should I exclude certain folders when analyzing repository size and LOC?

Excluding certain folders when analyzing repository size and LOC is required to avoid counting dependencies or build artifacts. Proper folder exclusions ensure pygount produces an accurate, structured summary of your actual codebase composition.

Does codebase-inspection work for single repos or is it limited to monorepos?

Codebase-inspection works for both single repos and monorepos. It applies pygount to analyze codebases uniformly, reporting lines of code, language distribution, and repository size across either context to inform your project decisions.