Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add victorzhong0110/skill-evolution --skill code-statsgit clone --depth 1 https://github.com/victorzhong0110/skill-evolutionWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/victorzhong0110/skill-evolution/code-stats)<a href="https://agentmods.dev/skills/victorzhong0110/skill-evolution/code-stats"><img src="https://agentmods.dev/badge/skills/victorzhong0110/skill-evolution/code-stats/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/victorzhong0110/skill-evolution/code-stats"><img src="https://agentmods.dev/badge/skills/victorzhong0110/skill-evolution/code-stats.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00091 | $0.00529 |
| Opus 5.5 | $0.00036 | $0.00212 |
| Sonnet 5.5 | $0.00018 | $0.00106 |
| Haiku 4.5 | $0.00009 | $0.00053 |
Grade A, and why
code-stats scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
88% identical to code-stats — 16 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
What it actually says
Code Stats Skill
Analyzes code files and generates statistics about a codebase.
Usage
When invoked, this skill will:
- Scan the specified directory (defaults to current directory)
- Count total lines and files by extension
- Report the largest files
- Output results in a structured format
- Sort extension summaries by total line count in descending order
Prefer the bundled script scripts/count_stats.py over re-implementing find /
wc by hand. Pass the target directory as the first argument.
Output Format
Always use this exact format for the output:
# Code Statistics
## Summary
- Total Files: <count>
- Total Lines: <count>
- Total Size: <size_bytes> bytes
## Files by Extension
| Extension | Files | Lines |
|-----------|-------|-------|
| .go | 12 | 1500 |
| .md | 5 | 200 |
## Top 5 File Extensions by Line Count
1. .go — 1500 lines
2. .md — 200 lines
## Largest Files (top 5)
1. main.go (500 lines)
2. util.go (300 lines)
If a file has no extension, group it under (no ext) in both extension sections.
Process
- Run
python3 scripts/count_stats.py <dir>when the script is available - Otherwise locate files, count lines, and aggregate locally
- Group files with no extension under
(no ext) - Sort both extension summaries by total line count in descending order
- Aggregate the results into the output format above
- If no directory is specified, analyze the current working directory
Examples
- "Analyze the current directory"
- "Run code-stats on ./src"
- "Show me file type distribution"
- "How many lines of Python do we have?"
What ships with it
9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 71 lines · 91 tokens per session scan A b5caaeebddac
code-stats is a skill published in the GitHub repository victorzhong0110/skill-evolution (12 stars, last pushed 2mo ago), licensed MIT. It adds 91 tokens to every session and 529 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 88% identical to code-stats, differing in 16 lines, and is treated as a copy.
code-stats compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| code-statsvictorzhong0110/skill-evolution | Skill | 12 | 2mo ago | MIT | A | 91 | Claude Code, Codex |
| my-skillsarveshtalele/mcp-skills-registry | Skill | 3 | 2mo ago | MIT | A | 30 | Claude Code, Codex |
| hello-worldjnMetaCode/skillet | Skill | 2 | 2mo ago | MIT | A | 21 | Claude Code, Codex |
| hello_worldrscheiwe/open-skills | Skill | 34 | 1y ago | MIT | A | 11 | Claude Code, Codex |
| subagent-driven-developmentNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 17 | Claude Code, Codex |
| mcporterNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 16 | Claude Code, Codex |
| article-writingaffaan-m/ECC | Skill | 314k | yesterday | MIT | A | 57 | Claude Code, Codex |