Przejdź do treści
Biblioteka skilli
AI i agenci · Przegląd i audyt

token-audit

/token-audit

Tylko do odczytu sprawdza, co zużywa tokeny i limity w Claude Code w projekcie, bez wprowadzania zmian.

Licencja
MIT
Ostatnia zmiana repozytorium
12.11.2026

Ocena i bezpieczeństwo

86/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść21 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 12.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

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

token auditwhy am I running out of tokenswhy am I running out of usageI keep hitting my usage limitsave tokens
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

RepozytoriumWynikLicencja
Ta strona · Er2oneousbit/claude-code-game-kit86MIT
swarm-routing/skills100LGPL
FlorianBruniaux/claude-code-ultimate-guide100CC-BY-SA-4.0
dreamlab-ai/agentbox100AGPL-3.0
BooneAndrewsLab/claude-plugins100MIT
kreht1/anchor100MIT
estebanmr99/lean-agents86MIT

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.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.