Skip to content
Back to skills

Token Audit

ASecurity

Find what is spending tokens and suggest concrete config changes, using Codeburn usage data. Use when the user asks about token use, cost, or why a session burned so much.

  • 4 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 6, 2026
ai-agentsshellnodeapi

Works with

  • api

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add estebanmr99/lean-agents --skill token-audit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Token Audit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Token Audit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/estebanmr99-token-audit/badge)](https://www.skillsdirectory.com/skills/estebanmr99-token-audit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: token-audit
description: Find what is spending tokens and suggest concrete config changes, using Codeburn usage data. Use when the user asks about token use, cost, or why a session burned so much.
---

# token-audit

1. Get the last 7 days: `npx -y codeburn@0.9.28 report -p week --format json` (the version in core/pins.json). Codeburn needs Node 22.15 or newer. If it fails or has no data, say so and stop. Never invent numbers.
2. List the top cost drivers from the data, biggest first: models, sessions, tools, large outputs. Give the real number for each.
3. For each driver, suggest one change this repository already supports:
   - Search or read-heavy work on a strong model: route it to the `explore` subagent on the fast tier.
   - Large test, log or API output: turn on Context Mode (`--tools context-mode`) and use it for that output.
   - Long shell output: turn on RTK.
   - A session that grew too long: split the work and compact earlier.
4. State the expected effect only if the data supports it. Otherwise say it is unmeasured.
5. Ask before changing any config. Run the audit again a week later to compare.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.