Shell Script Reveals Which Claude Code Skills Are Draining Your Token Budget
A developer has built a 106-line shell script called usage-breakdown.sh to identify which Claude Code Skills, Agents, and MCP servers are consuming the most resources during coding sessions. The tool addresses a gap in Claude Code's built-in /usage command, which only shows per-model cost totals without breaking down usage by individual tool or skill. The script parses transcript.jsonl files stored under ~/.claude/projects/ by counting tool_use events per skill, agent, and MCP server using Python's Counter. While it tracks call counts rather than exact token volumes, the author argues that call frequency serves as a reliable proxy for token consumption. The script also supports time-windowed analysis using file modification timestamps, allowing users to isolate recent sessions instead of mixing in older log data.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in