auditing-agent-token-usage
Audits recent Claude Code and Codex session logs for token and context cost: model routing, inherited subagent models, long sessions, compactions, oversized…
Skill by bostonaholic
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/bostonaholic-auditing-agent-token-usage
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Shell scripts
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/auditing-agent-token-usage
What's inside
- Skill name
auditing-agent-token-usage- Description
- Audits recent Claude Code and Codex session logs for token and context cost: model routing, inherited subagent models, long sessions, compactions, oversized tool results, and unused MCP servers. Use when asked about agent token usage, context costs, session length, model routing, or cost efficiency.
- License
- MIT
- Instructions
- 28 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (3)
- SKILL.md
- openai.yaml · agents/
- audit-token-usage.sh · scripts/
SKILL.md (first lines)
# Auditing agent token usage Run the deterministic audit, then explain its results. The script is the measurement; do not substitute your own log reading for it. ```sh "<skill-dir>/scripts/audit-token-usage.sh" <days> ``` `<days>` is a positive integer, default seven unless the user names another window. The script needs `jq` and reads Claude Code transcripts and Codex rollouts under the home directory. On a nonzero exit, relay stderr and stop. ## Analyze - State the window and which sources had data. Claude Code sections, [1] to [5], measure transcript proxies such as turn counts and character sizes. The Codex section, [6], uses recorded token counts. - Identify the largest evidenced costs: expensive model usage, inherited subagent routing, long sessions, compactions, context re-reading, oversized tool results, and configured MCP servers absent from section [5]. - Recommend only changes the output supports: at most three, ranked by expected impact, each citing the count or percentage behind it. - Never present Claude Code proxy values as measured tokens. - When a source is absent or the script fails, report the missing data or prerequisite. Do not infer its usage.
From bostonaholic/skills, MIT.
More from bostonaholic/skills
- 0.603score
explaining-architecture
bostonaholic
Explains how a subsystem, feature flow, or runtime path works (architecture, data flow, file map, gotchas), with an optional critique by fresh-context critics.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
explaining-code
bostonaholic
Explains code or code changes in plain language, briefly by default or in full for a reviewer.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
auditing-rails-tech-debt
bostonaholic
Audits a Rails app for tech debt, citing each finding to PoEAA, SOLID, or the Rails guides with file:line evidence and before/after code.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
freeing-disk-space
bostonaholic
Finds what fills a developer machine's disk and frees space by clearing caches, build outputs, and other regenerable files, running each deletion only after…
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
grooming-backlogs
bostonaholic
Grooms a GitHub Projects backlog: verifies issues against the code, ranks and clusters them, and plans milestone, link, and closure changes, or promotes…
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
auditing-repo-security
bostonaholic
Audits a third-party or freshly cloned repo before install or run for install hooks, auto-run files, CVEs, typosquats, and malicious code, graded A-F with a…
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
auditing-tests
bostonaholic
Audits a test suite, or a named part, for low-value tests and marks each retain, fix, consolidate, or delete with verified removal evidence.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
capturing-screenshots
bostonaholic
Captures deterministic, visually verified screenshots of a running web or native app (named screens, states, viewports, dark mode) with a manifest.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
addressing-pr-comments
bostonaholic
Triages open PR feedback, verifying each review thread, review summary, and comment against the code, then carrying out each item's recommended option and…
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
configuring-zsh
bostonaholic
Chooses the zsh startup file (.zshenv, .zprofile, .zshrc, .zlogin, or a custom plugin under ZSH_CUSTOM) for a configuration change and edits the dotfiles repo…
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
attaching-pr-screenshots
bostonaholic
Uploads local images through GitHub's attachment pipeline and writes one verified Screenshots section into a PR body.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
auditing-complexity
bostonaholic
Ranks where code complexity concentrates in a git repository (cyclomatic complexity, nesting, fan-out, mutable state) and scores CRAP change risk from a…
SkillAFreshness: A★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 0
- Open issues
- 2
- Last commit (this folder)
- Oct 22, 2026 (7 days ago)
- Last release
- Oct 24, 2026 (4 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/bostonaholic/skills
- Website
- skills.bostonaholic.dev
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from bostonaholic
- 0.603score
addressing-pr-comments
bostonaholic
Triages open PR feedback, verifying each review thread, review summary, and comment against the code, then carrying out each item's recommended option and…
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
attaching-pr-screenshots
bostonaholic
Uploads local images through GitHub's attachment pipeline and writes one verified Screenshots section into a PR body.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
auditing-complexity
bostonaholic
Ranks where code complexity concentrates in a git repository (cyclomatic complexity, nesting, fan-out, mutable state) and scores CRAP change risk from a…
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
auditing-rails-tech-debt
bostonaholic
Audits a Rails app for tech debt, citing each finding to PoEAA, SOLID, or the Rails guides with file:line evidence and before/after code.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
auditing-repo-security
bostonaholic
Audits a third-party or freshly cloned repo before install or run for install hooks, auto-run files, CVEs, typosquats, and malicious code, graded A-F with a…
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
auditing-tests
bostonaholic
Audits a test suite, or a named part, for low-value tests and marks each retain, fix, consolidate, or delete with verified removal evidence.
SkillAFreshness: A★ 2Claude Code +9
Cite this page
auditing-agent-token-usage skill. Agent Mart. https://agentmart.dev/skills/bostonaholic-auditing-agent-token-usage (last updated 2026-10-24)