codebase-inspection

Analyze codebase structure for lines of code, file types, and languages.

1|Updated May 19, 2026
One-click install
npx skills add https://github.com/justinsensei/apollo-backup --skill codebase-inspection-justinsensei
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codebase-inspection
Source: https://github.com/justinsensei/apollo-backup/tree/main/skills/.archive/codebase-inspection
Command: npx skills add https://github.com/justinsensei/apollo-backup --skill codebase-inspection-justinsensei

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a fast and convenient way to inspect the lines of code, file counts, language breakdown, and other important metrics of your codebase.

Core Features & Use Cases

  • Lines of Code (LOC) Analysis: Get an overall view of your codebase's size and composition.
  • Language Breakdown: Understand which programming languages are used and their distribution.
  • File Count Metrics: Count files by language, identify empty and binary files, and much more.
  • Use Case: Before presenting a project for code review, quickly use this Skill to analyze its size and the percentage of code lines, comments, and empty lines.

Quick Start

Analyze your local codebase for size and composition by running 'pygount --format=summary --folders-to-skip=".git,node_modules,venv,.venv,pycache,.cache,dist,build,.next,.tox,.eggs,*.egg-info" .'

Frequently Asked Questions about codebase-inspection

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

FAQPage Schema
How do I analyze lines of code and language breakdown in a local codebase?

Codebase metrics analysis measures lines of code, file counts, and language distribution using pygount. It breaks down code composition into actual code, comments, and empty lines to help you understand project size and structure.

How do I count lines of code in my project while skipping dependency folders?

Run pygount with the folders-to-skip parameter to exclude directories like node_modules, venv, and build from your lines of code analysis. This ensures your LOC metrics reflect only your actual project source files.

Does pygount work for code reviews and repository audits?

Yes, pygount is applicable for code reviews and repository audits by providing a quick summary of project size and code composition. You can assess the percentage of code lines, comments, and empty lines before presenting a project for review.

What is the best way to get a summary of code file types and language distribution?

The best way to get a summary of file types and language distribution is using pygount with the summary format flag. It analyzes your codebase structure and identifies which programming languages are used along with their file counts.

Do I need to install pygount to measure codebase metrics locally?

Yes, you need to install pygount as it is a required dependency for executing local codebase measurement. The Skill relies on pygount to analyze codebases for LOC, file types, and language breakdown directly on your machine.

Can I identify empty and binary files during a codebase inspection?

Yes, during a codebase inspection pygount can identify empty and binary files as part of its file count metrics. This allows you to understand exactly what files exist in your repository beyond just standard source code.