codebase-inspection

Count lines of code, comments, and empty files across repositories.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pygount.

What problem does it solve?

This Skill helps you quickly understand how large a codebase is and how its content is distributed across programming languages, so you can assess scope, complexity, and composition without manual counting.

Core Features & Use Cases

  • Lines of Code Analysis: Count code, comment, and empty lines across a repository.
  • Language Breakdown: Identify how many files and lines belong to each language in a project.
  • Codebase Composition Review: Compare code-vs-comment ratios and spot the dominant technologies in a repo.
  • Use Case: A developer or reviewer can inspect a repository before onboarding, estimating maintenance burden or comparing subprojects by size and language mix.

Quick Start

Ask for a pygount-based summary of the repository's lines of code and language breakdown while excluding dependency and build folders.

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 repository to analyze its size and language breakdown?

To count lines of code and analyze repository size, you can use pygount to tally code, comments, and empty lines across your project. This approach provides a quick language breakdown to assess codebase composition and scope.

What is the best way to measure codebase composition and code-vs-comment ratios?

Measuring codebase composition involves counting lines of code and comments to identify dominant technologies and code-vs-comment ratios. By analyzing these metrics, you can estimate maintenance burden and compare subprojects by size.

Does pygount support language breakdown analysis for mixed-language Python and JavaScript projects?

Yes, pygount supports language breakdown analysis for mixed-language Python and JavaScript projects. It identifies how many files and lines belong to each language, allowing you to review the composition of your entire repository.

How do I exclude dependency and build directories when scanning repository size?

When scanning repository size, you must apply folder exclusion rules to skip dependency or build directories. This prevents pygount from inflating your lines of code metrics with external libraries or generated build files.

Do I need pygount installed to perform a codebase audit and count lines of code?

Yes, you need pygount installed to perform a codebase audit and count lines of code. This dependency is required to execute the analysis that tallies code, comments, and empty files across your repository.