token-audit
/token-audit
Tylko do odczytu sprawdza, co zużywa tokeny i limity w Claude Code w projekcie, bez wprowadzania zmian.
- Autor
- Er2oneousbit ↗
- Repozytorium
- claude-code-game-kit ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 12.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 12.11.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
Tylko do odczytu sprawdza, co zużywa tokeny i limity w Claude Code w projekcie, bez wprowadzania zmian.
Wyzwalacze z opisu
Oryginalny opis (EN)
Read-only audit of what uses up tokens and usage in Claude Code for this project (memory files, MCP tools and deferral, model and effort, hooks, subagent models, scheduled work, the prompt cache). Use when the user says "token audit", "why am I running out of tokens", "why am I running out of usage", "I keep hitting my usage limit", "save tokens", or asks what a session costs. Reports only, changes nothing.
Jak działa
SKILL.md bez nagłówków drugiego poziomu · 30 linii, 331 słów
Podgląd SKILL.md
--- name: token-audit description: Read-only audit of what uses up tokens and usage in Claude Code for this project (memory files, MCP tools and deferral, model and effort, hooks, subagent models, scheduled work, the prompt cache). Use when the user says "token audit", "why am I running out of tokens", "why am I running out of usage", "I keep hitting my usage limit", "save tokens", or asks what a session costs. Reports only, changes nothing. --- # Token audit **Rules:** report only: change no file and no setting, not even an obvious fix (the user decides). Measure, do not estimate. Where a number cannot be read, write UNKNOWN, never a guess. Evidence is a number or a path, never an adjective. 1. **Measure:** `python tools/token_audit.py` (`--json` for the raw report, `--log <file>.jsonl` when it finds no session log). It sizes the memory files and their @imports (estimates at 4 characters per token), reads the settings (model, effort, hooks, proxy variable names, `.mcp.json`), the subagent models, the skills, and sums the newest session log's usage once per API response. It lists what it cannot see. 2. **Ask** the user to run `/context` and `/usage` and paste both: you cannot run slash commands yourself. `/context` numbers replace the tool's estimates. Skipped: those rows stay UNKNOWN. 3. **MCP:** from your own tool list, name each connected MCP server, how many tools it gives you, and whether they are deferred (names only until a tool search loads them) or loaded in full. 4. **Scheduled work:** the scheduled tasks, loops and background jobs you started or can see, with their intervals. Flag an interval longer than the cache lifetime (the tool's "cache writes by lifetime": 5 minutes or 1 hour): each run then rebuilds the cache. None you can see: UNKNOWN. 5. **Report:** one table sorted by cost, RED first, built from the tool's FINDINGS plus steps 2 to 4: | FINDING | SEVERITY (RED/AMBER/GREEN) | EVIDENCE | WHAT IT IS COSTING ME | |---|---|---|---| Then one line: the single highest-leverage change. Stop there; make the change only if the user asks. **Tips, not rules** (cite them as tips): the 5,000-token file and 10,000-token total memory thresholds, the warning that `ANTHROPIC_BASE_URL` or `ANTHROPIC_AUTH_TOKEN` silently turns tool deferral off, and "each model switch rebuilds the cache" come from one video's description (E154 in `docs/EVIDENCE.md`, grade D: check with `/context`). The effort row rests on E62 (grade C). Context habits that cut usage: `docs/sop/SOP-07-claude-code-hygiene.md`.
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · Er2oneousbit/claude-code-game-kit | 86 | MIT |
| swarm-routing/skills | 100 | LGPL |
| FlorianBruniaux/claude-code-ultimate-guide | 100 | CC-BY-SA-4.0 |
| dreamlab-ai/agentbox | 100 | AGPL-3.0 |
| BooneAndrewsLab/claude-plugins | 100 | MIT |
| kreht1/anchor | 100 | MIT |
| estebanmr99/lean-agents | 86 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki 19e33bfba713 (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
- 100claude-token-audit
Pokazuje, gdzie idą tokeny i limity Claude Code, z lokalnych logów: podział na projekty, sesje, modele i narzędzia oraz poprawki. - 87tare
Ustala, dokąd poszły tokeny Claude Code i dlaczego wyczerpano limit 5-godzinny lub tygodniowy. - 90claude-code-cost-coach
Pomaga ograniczyć zużycie Claude Code: wyjaśnia, dlaczego sesja zjada tokeny, sprawdza plik CLAUDE.md i zakresy reguł. - 100tokenmeter
Otwiera lokalny panel Tokenmeter, który pokazuje zużycie tokenów, koszty, okna limitów i chybienia cache dla Claude Code i Codex. - 100claude-token-spend
Raportuje zużycie tokenów Claude Code z lokalnych logów: na model, projekt i typ tokenu w oknach 24 godzin, 7 i 30 dni. - 100k-tokens
Obniża zużycie tokenów w Claude Code: audyt lokalnych transkryptów pokazuje, na co idą tokeny, a zastosowanie zmian dopisuje klucze do settings.json i reguły dla agentów do CLAUDE.md.