codebase-inspection

Generate codebase metrics and language composition reports using pygount.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides developers with quick, accurate statistics about a codebase, including total lines of code, language distribution, and comment ratios, eliminating manual counting and guesswork.

Core Features & Use Cases

  • LOC counting: Calculates total lines of code across all files while excluding irrelevant directories.
  • Language breakdown: Shows how many files and lines belong to each programming language.
  • Code vs comment ratios: Highlights documentation coverage per language.
  • Use case example: When reviewing a new project, use this skill to generate a summary report that tells you the size of the codebase and which languages dominate, helping you plan onboarding or refactoring efforts.

Quick Start

Ask Monika to provide a codebase summary for the repository 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 get a language breakdown and lines of code count for a local repository?

To get a language breakdown and lines of code count for a local repository, generate a codebase metrics report that calculates total lines, language distribution, and code-to-comment ratios automatically.

What are code metrics and what problem does analyzing them solve?

Code metrics provide quick statistics about a codebase, including total lines of code and language distribution, solving the problem of manual counting and guesswork when reviewing project size.

Do I need pygount installed to analyze codebase lines of code?

Yes, you need the pygount command-line tool installed on your system to analyze codebase lines of code, as the metrics generation relies on it to process local repositories.

Can I calculate code vs comment ratios for different programming languages?

Yes, you can calculate code vs comment ratios for different programming languages to highlight documentation coverage per language, helping you understand how comments are distributed across your codebase.

What is the best way to count lines of code while excluding irrelevant directories?

The best way to count lines of code while excluding irrelevant directories is to use a codebase analysis tool that automatically filters out non-essential folders and focuses only on relevant source files.

Why use codebase metrics when onboarding to a new project?

Use codebase metrics when onboarding to a new project to instantly see which languages dominate and the overall codebase size, helping you plan onboarding or refactoring efforts effectively.