codebase-inspection

Inspect codebases with pygount to report lines of code, languages, and file types.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps quickly analyze the size, composition, and lines of code in a codebase, providing essential metrics for understanding a repository's complexity and health.

Core Features & Use Cases

  • Lines of Code (LOC) Count: Understand the overall size of a codebase.
  • Language Breakdown: Identify the primary programming languages used.
  • File Composition: Get a summary of files and file types.
  • Code vs Comment Ratio: Assess the amount of code versus comments.
  • Use Case: Ideal for developers and maintainers who need to quickly assess the state of a repository before making changes or for project planning purposes.

Quick Start

Analyze the codebase at '/path/to/repo' by running 'codebase-inspection'.

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 get a language breakdown for a repository?

To count lines of code and get a language breakdown for a repository, you can use this Skill to inspect your codebase directory and provide metrics on language composition, file types, and overall code size.

What is the best way to analyze codebase health and size before making project changes?

Analyzing codebase health and size involves checking the lines of code, file composition, and code versus comment ratio. This Skill uses the pygount library to quickly assess repository complexity for project planning purposes.

Do I need the pygount package to analyze my codebase's file composition?

Yes, you need the pygount package installed to analyze your codebase's file composition. The Skill requires this dependency along with access to the target codebase directory to calculate software metrics and language breakdowns.

Can I measure the code versus comment ratio for my software project?

You can measure the code versus comment ratio for your software project by running this Skill. It inspects your codebase files to assess the amount of actual code compared to comments, helping gauge repository health.

What limitations should I expect when inspecting lines of code with pygount?

When inspecting lines of code with pygount, expect limitations typical of basic codebase analysis tools. This Skill provides fundamental metrics like file types and language composition but does not offer deep complexity analysis or structural code reviews.

Does codebase analysis work with multiple programming languages in one directory?

Yes, codebase analysis works with multiple programming languages in one directory. The Skill identifies the primary programming languages used and provides a comprehensive language breakdown across all files in the specified repository path.