From asynkron-devtools
Counts lines of code, analyzes codebase size/composition, and compares code between versions using `cloc`. Supports 200+ languages and multiple output formats.
How this skill is triggered — by the user, by Claude, or both
Slash command
/asynkron-devtools:cloc [path or git ref][path or git ref]The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Before running cloc, check if it is installed:
Before running cloc, check if it is installed:
which cloc
If not found, install it:
brew install clocnpm install -g clocsudo apt install clocsudo yum install cloccloc counts blank lines, comment lines, and physical lines of source code in 200+ programming languages. It can analyze files, directories, archives (tar, zip, .whl, .ipynb), and git commits/branches.
Count a directory (default: current project):
cloc .
Count using git file list (respects .gitignore):
cloc --vcs=git
Count a specific path:
cloc $ARGUMENTS
Count by file (detailed breakdown):
cloc --by-file --vcs=git
Diff between two git refs:
cloc --git --diff <ref1> <ref2>
Exclude directories:
cloc --exclude-dir=node_modules,vendor,.git .
Use these flags for machine-readable output:
--json — JSON--yaml — YAML--csv — CSV--md — Markdown table--xml — XML| Flag | Purpose |
|---|---|
--by-file | Per-file breakdown instead of per-language |
--vcs=git | Use git to get file list (respects .gitignore) |
--git | Treat arguments as git targets (commits, branches) |
--diff <a> <b> | Show added/removed/modified lines between two sources |
--exclude-dir=<d1,d2> | Skip directories |
--exclude-lang=<l1,l2> | Skip languages |
--include-lang=<l1,l2> | Only count these languages |
--force-lang=<lang>,<ext> | Map file extension to a language |
--processes=N | Parallel processing (N cores) |
--quiet | Suppress progress output |
--vcs=git over bare . to avoid counting generated/vendored files--json when the user needs to process the output programmatically--git --diff <ref1> <ref2>--processes=N to speed things upnpx claudepluginhub asynkron/asynkron-skills --plugin asynkron-devtoolsAnalyzes codebases using tokei for fast line counts by language and difft for semantic AST-aware diffs. Use for project overviews, code statistics, language composition, file comparisons, and git change reviews.
Counts source lines by file type and auto-detected modules via shell inspection. Handles JS/TS monorepos, Rust/Go/Python workspaces, Java/Kotlin multi-module, full-stack monoliths.
Surveys codebase structure including modules, tech stack, entry points, git hotspots, and call graphs using analyzers.