Individual skill
code-stats
Analyzes code files and reports statistics including line counts, file counts by extension, and total size. Use this skill whenever the user wants to understand the composition of a codebase - asking about "how many lines of code", "what file types exist", "code distribution", or needing a quick audit of project size and structure. Make sure to invoke this skill when users mention analyzing codebases, counting lines, checking file distributions, or auditing code.
examples/code-stats/SKILL.md
Source commit f2d726e5f61a57c378dbae001264bb4ed6f13967
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- Yes
- Observed behavior
- Not checked yet
- Last checked
- Nov 3, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 1,439
- Repository last updated
- Nov 6, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
README.mddoc · 4,694 bytesSKILL.mdcore · 2,179 bytesevals/cases/analyze-directory.yamlasset · 1,513 bytesevals/cases/current-directory-format.yamlasset · 841 bytesevals/cases/exclude-dependencies.yamlasset · 1,024 bytesevals/cases/top-extensions.yamlasset · 687 bytesevals/eval.yamlasset · 821 bytesevals/evals.jsonasset · 1,835 bytesevals/fixtures/repos/sample-project/README.mddoc · 73 bytesevals/fixtures/repos/sample-project/main.goruns · 143 bytesevals/fixtures/repos/sample-project/util.goruns · 134 bytesevals/fixtures/scripts/check-stats.shruns · 1,899 bytes
Read excerpt
# Code Stats Skill
Analyzes code files and generates statistics about a codebase.
## Usage
When invoked, this skill will:
1. Scan the specified directory (defaults to current directory)
- Exclude `node_modules/`, `.git/`, `dist/`, and `build/` unless the user explicitly asks to count them. These are dependencies, repository metadata, or generated output rather than project source.
2. Count total lines, files by extension
3. Report the largest files
4. Output results in a structured format
5. Sort extension summaries by total line count in descending order