codebase-inspection

Analyze codebases with pygount to calculate lines of code and language breakdowns.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a quick and easy way to inspect codebases, offering insights into lines of code, language composition, file counts, and code-to-comment ratios.

Core Features & Use Cases

  • Lines of Code (LOC): Get an immediate count of lines of code.
  • Language Breakdown: Understand the composition of the codebase in terms of different programming languages.
  • File Counts: Identify the number of files in the repository.
  • Code-to-Comment Ratios: Determine the ratio of executable code to comments.

Quick Start

Run the codebase-inspection skill on your GitHub repository to get a comprehensive analysis.

Frequently Asked Questions about codebase-inspection

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

FAQPage Schema
How do I calculate lines of code and get a language breakdown for my repository?

To calculate lines of code and get a language breakdown, you can analyze codebases using the pygount tool to scan source code and aggregate data on file counts and language composition. The skill provides immediate codebase insights.

What is the best way to analyze code-to-comment ratios in a codebase?

The best way to analyze code-to-comment ratios is to use a codebase inspection tool that scans executable code and comments. This skill utilizes pygount to determine the exact ratio of executable code to comments within your repository.

Does pygount support analyzing multiple programming languages in a single repository scan?

Yes, pygount supports analyzing multiple programming languages in a single repository scan. The codebase inspection skill uses pygount to scan and aggregate data, providing a comprehensive language breakdown of your entire codebase.

Can I use codebase analysis to identify the number of files in my GitHub repository?

Yes, you can use codebase analysis to identify the number of files in your GitHub repository. Running the codebase-inspection skill provides a quick and easy way to inspect codebases and count the total files.

Do I need to install pygount before running a lines of code analysis?

Yes, you need to install the pygount Python package before running a lines of code analysis. This codebase inspection skill requires pygount as a dependency to scan source code and calculate code metrics.

Why does my codebase analysis show different lines of code counts than expected?

Your codebase analysis might show different lines of code counts due to how pygount categorizes executable code versus comments. The tool aggregates data by scanning source files, so variations in file counting or language detection can affect totals.