Agent skill

code-stats

Analyze codebase with tokei (fast line counts by language) and difft (semantic AST-aware diffs). Get quick project overview without manual counting. Triggers on: how big is codebase, count lines of code, what languages, show semantic diff, compare files, code statistics.

majiayu000github.com/majiayu000GitHub ↗
claude-codecan modify filesMIT
Install
npx skills add majiayu000/claude-skill-registry --skill code-stats --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 3 KB
Bundled scripts: none
Allowed tools: Bash
Requires: Requires tokei and difft CLI tools. Install: brew install tokei difft (macOS) or cargo install tokei difftastic…
Path: skills/analysis/code-stats/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Code Statistics Quickly analyze codebase size, composition, and changes. ## tokei - Line Counts ```bash # Count all code tokei # Compact output sorted by code tokei --compact --sort code # Specific languages tokei --type=TypeScript,JavaScript # Exclude directories tokei --exclude node_modules --exclude dist # JSON output for scripting tokei --output json | jq '.Total.code' ``` ### Sample Output ``` =============================================================================== Language Files Lines Code Comments Blanks =============================================================================== TypeScript 45 12847 9823 1456 1568 JavaScript 12 2341 1876 234 231 ------------------------------------------------------------------------------- Total 57 15188 11699 1690 1799 =============================================================================== ``` ## difft - Semantic Diffs ```bash # Compare files difft old.ts new.ts # Inline mode difft --display=inline old.ts new.ts # With git GIT_EXTERNAL_DIFF=difft git diff GIT_EXTERNAL_DIFF=difft git show HEAD~1 ``` ### Why Semantic? | Traditional diff | difft | |-----------------|-------| | Line-by-line | AST-aware | | Shows moved as de

What's inside
Steps it walks through
  1. tokei - Line Counts
  2. Sample Output
  3. difft - Semantic Diffs
  4. Why Semantic?
  5. Quick Reference
  6. When to Use
  7. Additional Resources
Ships with 1 file
  • metadata.json
Commands it runs
Count all code
tokei
Compact output sorted by code
tokei --compact --sort code
Specific languages
tokei --type=TypeScript,JavaScript
Exclude directories
tokei --exclude node_modules --exclude dist
JSON output for scripting
tokei --output json | jq '.Total.code'
More from claude-skill-registry
All skills →
About this skill
What does the code-stats skill do?

Analyze codebase with tokei (fast line counts by language) and difft (semantic AST-aware diffs). Get quick project overview without manual counting. Triggers on: how big is codebase, count lines of code, what languages, show semantic diff, compare files, code statistics.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill code-stats --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going