token-doctor SKILL.md skillA
token-doctor from techwolf-ai/ai-first-toolkit is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add techwolf-ai/ai-first-toolkit/token-doctor@git:20260916.a134489Pins git:20260916.a134489 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- techwolf-ai/ai-first-toolkit
- Path
plugins/ai-adoption/skills/token-doctor/SKILL.md- Versions recorded
- 3
- Latest version
- git:20260916.a134489, committed Sep 16, 2026
- First version recorded
- May 13, 2026
- Size
- 17,724 bytes
- Repository stars
- 139
- License
- MIT
Personal diagnosis of where your Claude Code + Cowork spend goes. Reads local transcripts, prints your conversation length distribution, marathon share, cache rebuild costs, and per-project diagnosis (good projects and problem projects) right in the terminal. Then offers a deeper dive that fans out parallel Haiku subagents over your most expensive (and most efficient) sessions and writes a tight Markdown report. Use when the user asks "why is my Claude spend so high…
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Token Doctor > **Platforms: Claude Code / Cowork and Codex.** `scripts/inventory.py` detects the host (via the `platform` stamp `install.sh` writes, or `AI_FIRST_PLATFORM`) and routes: Claude Code (`~/.claude/projects`) + Cowork transcripts, or Codex rollouts (`~/.codex/sessions`). Codex token usage comes from Codex's own per-response `token_count` events; cost uses OpenAI list rates in `pricing.py` (gpt-5.4 family; unknown models show token counts with no fabricated cost). **Antigravity** is unsupported: its IDE store is AEAD-encrypted at rest and its CLI store has no parseable turn/token content, so the skill prints a clear "not available" message and exits. Two-stage diagnostic. Stage 1 is fast and lands directly in the terminal so the user always walks away with their numbers. Stage 2 is opt-in, fans out subagents over hotspots, and writes a tight Markdown report. **Read this whole file before running.** ## When to run Trigger phrases: "diagnose my Claude habits", "why am I spending so much", "where are my tokens going", "audit my spend", "token doctor", "what's driving my Claude bill". Do NOT trigger for: - "what tasks do I do with Claude" → that's `task-profile`. …
Read the whole file at its exact version.
How to install
mdr add techwolf-ai/ai-first-toolkit/token-doctor@sha256:138493ba3e125962The line at the top of this page pins the label git:20260916.a134489, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_6ns245meorzojmkt)
5 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 3 versions of this file, between May 13, 2026 and Sep 16, 2026, about one every 63 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260916.a134489 latest | 2026-09-16 | a134489 | 17,724 B | A | view · diff |
| git:20260612.f6380c9 | 2026-06-12 | f6380c9 | 14,608 B | A | view · diff |
| git:20260513.d7270ec | 2026-05-13 | d7270ec | 13,951 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (17724 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
techwolf-ai/ai-first-toolkit · 139 stars · license MIT · pushed 2026-09-29 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_6ns245meorzojmkt GET https://markdownregistry.com/api/v1/resolve?ref=techwolf-ai/ai-first-toolkit/token-doctor GET https://markdownregistry.com/api/v1/blob/138493ba3e125962c121a38427c3de49d625a2bb9e3a7238ab6cdda0e5d79d65
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.