code-stats
/code-stats
Liczy linie kodu według języka i pokazuje semantyczne różnice narzędziami tokei i difft, bez ręcznego liczenia.
- Autor
- 0xDarkMatter ↗
- Repozytorium
- claude-mods ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 31.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 5
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 31.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Liczy linie kodu według języka i pokazuje semantyczne różnice narzędziami tokei i difft, bez ręcznego liczenia.
Oryginalny opis (EN)
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.
Jak działa
- tokei - Line Counts
- difft - Semantic Diffs
- Quick Reference
- When to Use
- Additional Resources
Podgląd SKILL.md
--- name: code-stats description: "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." license: MIT compatibility: "Requires tokei and difft CLI tools. Install: brew install tokei difft (macOS) or cargo install tokei difftastic (cross-platform)." allowed-tools: "Bash" metadata: author: claude-mods --- # 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 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 node_modules` | | Semantic diff | `difft file1 file2` | | Git diff | `GIT_EXTERNAL_DIFF=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
Pliki w paczce (5)
- SKILL.md 3 KB
- assets/.gitkeep 1 KB
- references/difft-advanced.md 5 KB
- references/tokei-advanced.md 5 KB
- scripts/.gitkeep 1 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · 0xDarkMatter/claude-mods | 100 | MIT |
| alibaba/skill-up | 100 | Apache-2.0 |
Migawka bazy z 13.11.2026 · wersja paczki 7eab9b74d768 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100codebase-inspection
Analizuje bazy kodu za pomocą pygount: liczy linie kodu, pokazuje podział na języki i stosunek kodu do komentarzy oraz rozmiar repozytorium. - 84codebase-inspection
Liczy linie kodu, udział języków i stosunek komentarzy do kodu za pomocą pygount. - 95codebase-search
Przeszukuje duże bazy kodu i pomaga w nawigacji: wzorce kodu, śledzenie wywołań funkcji, struktura kodu i lokalizowanie błędów przez wyszukiwanie semantyczne, grep i analizę AST. - 100branch-stats
Podsumowuje zmienione linie na gałęzi względem main: kategorie, największe pliki i podział na commity. - 100scout-loc
Liczy linie kodu w wielu językach narzędziem cloc, także w czasie z historii git, np. kod aplikacji względem testów. - 95codebase-analysis
Tworzy strukturalny raport z analizy bazy kodu: przegląd architektury, kluczowe pliki, wzorce i konkretne rekomendacje.