codebase-inspection

Inspect codebases for lines of code, language distribution, and code-to-comment ratios using pygount.

4|Updated May 14, 2026
One-click install
npx skills add https://github.com/liumeixin/hermes-skills --skill codebase-inspection-liumeixin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codebase-inspection
Source: https://github.com/liumeixin/hermes-skills/tree/main/github/codebase-inspection
Command: npx skills add https://github.com/liumeixin/hermes-skills --skill codebase-inspection-liumeixin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pygount, and includes scripts (resource) components.

What problem does it solve?

This Skill simplifies the process of inspecting and analyzing codebases, providing valuable metrics like lines of code, language composition, and code-to-comment ratios.

Core Features & Use Cases

  • LOC Counting: Obtain the total lines of code in a repository.
  • Language Breakdown: See the distribution of different programming languages.
  • Codebase Metrics: Understand the size and composition of a codebase.
  • Use Case: When you need to quickly assess a repository's complexity or when preparing for a code review.

Quick Start

Analyze the codebase in the current directory using the codebase-inspection skill.

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?

To count lines of code and get a language breakdown, this Skill inspects codebases using pygount to calculate total lines, language distribution, and code-to-comment ratios for repository assessments.

What are codebase metrics and why are they needed for a code audit?

Codebase metrics provide quantitative data like lines of code and language composition. They are needed for a code audit to quickly assess repository complexity, understand size distribution, and prepare for code reviews.

How do I calculate code-to-comment ratios across a project directory?

You calculate code-to-comment ratios across a project directory by running this Skill, which uses the pygount library to inspect the codebase and report the proportion of comments relative to lines of code.

Do I need pygount installed to analyze codebase metrics?

Yes, you need pygount installed to analyze codebase metrics, as this Skill requires the pygount library to perform its core functionality of inspecting lines of code and language distribution.

What is the best way to assess repository complexity before a code review?

The best way to assess repository complexity before a review is using this Skill to obtain codebase metrics, including total lines of code and language breakdown, to understand the project's size and composition.