Agent skill · data analytics · aiskillstore

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.

Why this skill is useful

Provides specific commands and usage patterns for tokei and difft that enhance codebase analysis capabilities.

What it needs

Requires difft, tokei installed locally. About 1k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

Code Statistics Quickly analyze codebase size, composition, and changes. tokei - Line Counts Sample Output difft - Semantic Diffs Why Semantic? Traditional diff difft ----------------- ------- Line-by-line AST-aware Shows moved as delete+add Recognizes moves Whitespace sensitive Ignores formatting Quick Reference Task Command ------ --------- Count all code tokei Compact output tokei --compact Sort by code tokei --sort code TypeScript only tokei -t TypeScript JSON output tokei --output json Exclude dir tokei --exclude nodemodules Semantic diff difft file1 file2 Git diff GITEXTERNALDIFF=difft git diff When to Use Getting quick codebase overview Comparing code changes semantically Understanding project composition Reviewing refactoring impact Tracking codebase growth Additional Resources For detailed patterns, load: ./references/tokei-advanced.md - Filtering, output formats, CI integration ./references/difft-advanced.md - Display modes, git integration, language support

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/code-stats

View the source on GitHub

Browse the @skills marketplace