codebase-inspection

Analyze codebases with pygount for LOC counts, language breakdowns, code/comment ratios.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/CHENyiru3/AI-Skills-Collections --skill codebase-inspection-chenyiru3
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codebase-inspection
Source: https://github.com/CHENyiru3/AI-Skills-Collections/tree/main/skills-market/platforms/github/codebase-inspection
Command: npx skills add https://github.com/CHENyiru3/AI-Skills-Collections --skill codebase-inspection-chenyiru3

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Inspect and analyze codebases to quantify lines of code, language distribution, and code-vs-comment ratios using pygount, enabling quick assessment of project size and complexity.

Core Features & Use Cases

  • Analyze LOC counts and per-language breakdown for repositories and monorepos.
  • Generate codebase metrics (files, code, comments) to guide maintenance planning and refactoring decisions.
  • Use case: audit a repo to estimate effort for upcoming changes and compare language mix across components.

Quick Start

Run pygount on your repository with appropriate folders-to-skip to produce a reproducible codebase report.

Frequently Asked Questions about codebase-inspection

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

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

To measure lines of code and language breakdown, this Skill analyzes your repository using pygount to produce LOC counts, per-language distributions, and code-vs-comment ratios for standalone projects and monorepos.

What is the best way to audit codebase size and complexity for refactoring?

Auditing codebase size for refactoring involves generating repository metrics such as file counts, code volume, and comment ratios to guide maintenance planning and estimate effort for upcoming changes.

Does pygount work with monorepos and multiple programming languages?

Yes, pygount works with monorepos and multiple programming languages. The Skill applies consistent folder-exclusion rules across various languages to ensure reproducible codebase metrics and language mix comparisons.

Do I need to install pygount before analyzing my codebase?

Yes, you need to install pygount before analyzing your codebase. The Skill requires this dependency to be present in your environment to successfully execute LOC counts and generate language distribution reports.

How do I ensure reproducible results when analyzing repository metrics across components?

To ensure reproducible results when analyzing repository metrics, you must apply consistent folder-exclusion rules during the pygount scan to skip non-source directories and generate accurate codebase reports.