codebase-inspection

Analyze codebases to provide LOC and language metrics with pygount.

1|Updated Feb 17, 2026
One-click install
npx skills add https://github.com/brittaniebuffiecsu/zerogravityclaw --skill codebase-inspection-brittaniebuffiecsu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codebase-inspection
Source: https://github.com/brittaniebuffiecsu/zerogravityclaw/tree/main/src/hermes-core/skills/github/codebase-inspection
Command: npx skills add https://github.com/brittaniebuffiecsu/zerogravityclaw --skill codebase-inspection-brittaniebuffiecsu

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill simplifies the process of analyzing codebases, providing metrics such as lines of code, language breakdowns, and code ratios.

Core Features & Use Cases

  • LOC and Language Metrics: Offers a detailed breakdown of lines of code, language distribution, and code vs. comment ratios.
  • Customization: Allows users to exclude certain directories for more focused analysis.
  • Use Case: Ideal for developers looking to quickly assess the size and composition of a codebase or for project managers monitoring the progress of a project.

Quick Start

To analyze a codebase, run the 'codebase-inspection' skill with the path to your repository.

Frequently Asked Questions about codebase-inspection

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

FAQPage Schema
How do I get lines of code and language metrics for a codebase?

To get lines of code and language metrics, you can analyze the codebase using pygount. This process calculates total lines of code, language distribution, and code-to-comment ratios to assess repository composition.

How do I analyze codebase size while excluding specific directories?

You can analyze codebase size and exclude specific directories by configuring the analysis script. This allows for a more focused assessment of repository composition and improves processing performance.

What is codebase analysis used for in project management?

Codebase analysis is used to monitor project progress by providing metrics like lines of code and language distribution. Project managers use these metrics to assess repository size and track codebase composition over time.

Does pygount support code-to-comment ratio analysis?

Yes, pygount supports code-to-comment ratio analysis. It analyzes codebases to provide detailed language breakdowns and code ratios, making it useful for assessing repository size and overall composition.

What are the limitations of using pygount for codebase inspection?

A limitation of using pygount for codebase inspection is performance overhead on large repositories. To mitigate this, the analysis handles file exclusion, allowing users to skip certain directories for more focused metrics.