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.

Install it, pinned
mdr add techwolf-ai/ai-first-toolkit/token-doctor@git:20260916.a134489

Pins 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

The exact contents, by fingerprint
mdr add techwolf-ai/ai-first-toolkit/token-doctor@sha256:138493ba3e125962

The 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_6ns245meorzojmkt.svg)](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.

versioncommittedcommitsizeaudit
git:20260916.a134489 latest2026-09-16 a134489 17,724 BA view · diff
git:20260612.f6380c92026-06-12 f6380c9 14,608 BA view · diff
git:20260513.d7270ec2026-05-13 d7270ec 13,951 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • 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

GitHub

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.

More from techwolf-ai/ai-first-toolkit

AGENTS.md AGENTS.md file
techwolf-ai/ai-first-toolkit · AGENTS.md
git:20260922.e58574c · audit A · 139 stars
task-profile SKILL.md skill
techwolf-ai/ai-first-toolkit · plugins/ai-adoption/skills/task-profile/SKILL.md · Mine the user's Claude Code + Cowork session history into a structured task profile, what they do with AI, how often…
git:20260916.a134489 · audit A · 139 stars
AGENTS.md@plugins/ai-firstify/codex AGENTS.md file
techwolf-ai/ai-first-toolkit · plugins/ai-firstify/codex/AGENTS.md
git:20260310.f8426c2 · audit A · 139 stars
ai-firstify SKILL.md skill
techwolf-ai/ai-first-toolkit · plugins/ai-firstify/skills/ai-firstify/SKILL.md · Analyze, re-engineer, or bootstrap projects to align with AI-first design principles. Use when asked to review, audit…
git:20260410.852272e · audit A · 139 stars
AGENTS.md@plugins/content-studio/codex AGENTS.md file
techwolf-ai/ai-first-toolkit · plugins/content-studio/codex/AGENTS.md
git:20260310.f8426c2 · audit A · 139 stars
analyze-performance SKILL.md skill
techwolf-ai/ai-first-toolkit · plugins/content-studio/skills/analyze-performance/SKILL.md · Analyze engagement patterns across published posts to identify what works. Use when asked to review performance, find…
git:20260305.f09c96a · audit A · 139 stars
brainstorm-linkedin SKILL.md skill
techwolf-ai/ai-first-toolkit · plugins/content-studio/skills/brainstorm-linkedin/SKILL.md · Generate LinkedIn post ideas from external sources (files, URLs, research). Use when the user provides source material…
git:20260305.f09c96a · audit A · 139 stars
brainstorm-opinion SKILL.md skill
techwolf-ai/ai-first-toolkit · plugins/content-studio/skills/brainstorm-opinion/SKILL.md · Generate opinion piece ideas from recent LinkedIn posts (last 30 days). Use when asked to find opinion topics…
git:20260305.f09c96a · audit A · 139 stars
content-studio SKILL.md skill
techwolf-ai/ai-first-toolkit · plugins/content-studio/skills/content-studio/SKILL.md · Entry point for the TechWolf content-studio plugin. Use to understand the workflow, pick the right content skill, or…
git:20260310.f8426c2 · audit A · 139 stars
setup-content-studio SKILL.md skill
techwolf-ai/ai-first-toolkit · plugins/content-studio/skills/setup-content-studio/SKILL.md · Set up a new content studio for a person. Copies the plugin template, adapts it to the person's voice, themes, and…
git:20260610.38aa811 · audit A · 139 stars
write-blog-post SKILL.md skill
techwolf-ai/ai-first-toolkit · plugins/content-studio/skills/write-blog-post/SKILL.md · Write or develop a blog post. Use for blog content - writing, drafting, developing ideas into drafts, or editing…
git:20260306.4818d5d · audit A · 139 stars
write-linkedin-post SKILL.md skill
techwolf-ai/ai-first-toolkit · plugins/content-studio/skills/write-linkedin-post/SKILL.md · Write or develop a LinkedIn post. Use ALWAYS for LinkedIn content - writing, drafting, developing ideas into drafts, or…
git:20260306.4818d5d · audit A · 139 stars

Every file in techwolf-ai/ai-first-toolkit

Browse by kind, by grade A, or by owner.