codebase-inspection

Analyze codebases with pygount to count lines of code, language breakdown, and code-vs-comment ratios.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/AXGZ21/hermes-agent-railway --skill codebase-inspection
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codebase-inspection
Source: https://github.com/AXGZ21/hermes-agent-railway/tree/main/skills/github/codebase-inspection
Command: npx skills add https://github.com/AXGZ21/hermes-agent-railway --skill codebase-inspection

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the analysis of codebases to provide detailed metrics on lines of code, language composition, and code-vs-comment ratios, helping developers understand project size and structure.

Core Features & Use Cases

  • Lines of Code (LOC) Counting: Accurately count code lines across various programming languages.
  • Language Breakdown: Identify the proportion of different programming languages within a repository.
  • Code vs. Comment Analysis: Determine the ratio of actual code to comments and documentation.
  • Use Case: When asked "How large is this GitHub repository in terms of code?", this Skill can provide a comprehensive breakdown of its size and composition.

Quick Start

Use the codebase-inspection skill to get a summary of lines of code and language breakdown for the current repository.

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 in a GitHub repository?

To count lines of code in a GitHub repository, this Skill automates codebase analysis to calculate total lines, break down programming languages, and determine code-to-comment ratios using the pygount tool.

How do I analyze code vs comment ratios in my project?

Analyzing code vs comment ratios in your project involves calculating the proportion of actual code lines relative to documentation, which this Skill performs automatically using pygount to assess codebase quality metrics.

Do I need pygount installed to analyze codebase metrics?

Yes, you need pygount installed to analyze codebase metrics, as this Skill relies on the pygount dependency to execute lines of code counting and language breakdown analysis within your repository.

What is the best way to identify programming language composition in a codebase?

The best way to identify programming language composition in a codebase is to run an automated analysis that calculates the proportion of different languages within the repository, providing a comprehensive structural breakdown.

Can I measure repository size by lines of code across multiple languages?

Yes, you can measure repository size by lines of code across multiple languages, as this Skill accurately counts code lines and breaks down the composition by various programming languages for project assessment.