line-count

Counts lines of Python code in a project using the cloc utility with selectable scopes.

11|Updated Mar 16, 2024
One-click install
npx skills add https://github.com/adamfilli/happy-simulator --skill line-count
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: line-count
Source: https://github.com/adamfilli/happy-simulator/tree/main/.claude/skills/line-count
Command: npx skills add https://github.com/adamfilli/happy-simulator --skill line-count

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers and project managers quickly understand the codebase size by counting lines of code across different project scopes.

Core Features & Use Cases

  • Codebase Sizing: Accurately measure the volume of code in your project.
  • Scope-Based Analysis: Analyze lines of code for source code only, source plus tests, or the entire project including examples.
  • Use Case: Before a new feature release, use this Skill to report the current line count of the main library code to track growth.

Quick Start

Use the line-count skill to count all lines of code in the project.

Frequently Asked Questions about line-count

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

FAQPage Schema
How do I count lines of code in a Python project?

You can count lines of code in a Python project by running this Skill, which uses the cloc utility to measure code volume across different scopes like source code, tests, and examples.

Do I need cloc installed to measure codebase size?

Yes, counting lines of code requires the cloc utility to be installed and accessible in your system's PATH for execution, as the Skill relies on it to analyze your Python project size.

Can I analyze lines of code for specific scopes like source code or tests?

Analyzing lines of code by scope is supported through predefined options that measure source code only, source code plus tests, or all project files including examples for accurate codebase sizing.

What is the best way to track Python codebase growth before a release?

The best way to track Python codebase growth before a release is to measure the current line count of your main library code, which helps developers and project managers understand project volume.

Does this tool count lines of code for all project files or just source code?

Counting lines of code supports all project files, but you can select specific scopes to measure just the source code, include tests, or encompass the entire project including example files.