codebase-inspection

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

Updated Jul 3, 2026
One-click install
npx skills add https://github.com/LynxLabVN/office-agent --skill codebase-inspection-lynxlabvn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codebase-inspection
Source: https://github.com/LynxLabVN/office-agent/tree/main/agent-core/skills/github/codebase-inspection
Command: npx skills add https://github.com/LynxLabVN/office-agent --skill codebase-inspection-lynxlabvn

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides insights into codebases, including lines of code, language breakdown, and code-vs-comment ratios, using the pygount tool.

Core Features & Use Cases

  • LOC Count: Get a count of lines of code in a repository.
  • Language Breakdown: Understand the distribution of programming languages in a repository.
  • Codebase Size: Assess the size and composition of a codebase.
  • Code-vs-Comment Ratios: Determine the ratio of code to comments in a repository.
  • Use Case: A developer wants to understand the complexity and composition of a large codebase before contributing.

Quick Start

Use the codebase-inspection skill to analyze the codebase located at '/path/to/repo'.

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 analyze language distribution in a repository?

To count lines of code and analyze language distribution, you can use this skill to scan a repository path with pygount. It outputs total lines of code, language breakdown, and code-to-comment ratios for codebase assessment.

What is a code-to-comment ratio and how is it measured?

A code-to-comment ratio measures the proportion of comments to actual source code. This skill calculates it by analyzing your codebase with pygount to evaluate documentation density and codebase complexity.

Do I need pygount installed to analyze my codebase?

Yes, you need pygount installed and configured correctly to analyze your codebase. The skill relies on this dependency to perform LOC counting and language breakdown analysis.

How do I assess the size and composition of a large codebase before contributing?

You can assess codebase size and composition by running this skill against the target repository path. It uses pygount to provide LOC counts and language breakdown for complexity evaluation.

What is the best way to get a language breakdown for a codebase?

The best way to get a language breakdown is using this skill with pygount. It scans the repository to identify the distribution of programming languages across the codebase.