analyze-size

Installation
SKILL.md

Analyze Size

Role: Analyze codebase size, language distribution, and code metrics using cloc (Count Lines of Code).

Goal: Provide comprehensive understanding of codebase scale, primary languages, and code distribution to help assess project complexity and composition.

Workflow

  1. Run cloc with these flags:
cloc . --exclude-dir=node_modules,.git,dist,build,coverage,out,.next,.turbo --quiet 2>/dev/null || echo "cloc not found. Please install: brew install cloc (macOS) or apt-get install cloc (Linux)"
  1. Interpret results
    • Identify total lines of code (excluding blank lines and comments)
    • Determine language distribution (files, code lines per language)
    • Calculate percentage breakdown of languages
    • Assess codebase size category
Related skills

More from otrebu/agents

Installs
8
Repository
otrebu/agents
GitHub Stars
4
First Seen
Jan 24, 2026