Context budget

From nabondance/Trailhead-Banner · View interactive version

Context budget is an AI agent skill from the GitHub repository nabondance/Trailhead-Banner. Audit token costs of the .claude/ setup — skills, agents, hooks, and AGENTS.md. Shows what's always loaded vs on-demand, flags bloat, and suggests cuts.

How to use this skill

Skill file

Context Budget Audit

Run the audit script and report findings:

Execute from the repository root: bash scripts/agent/context-budget.sh

Then analyze the output:

  1. Classify each item
  1. Flag if over budget
  1. Report format

```text

ALWAYS LOADED

AGENTS.md ~XXX tokens

SessionStart.sh ~XX tokens (estimated output)

ON INVOCATION (skills)

/build ~XX tokens

/format ~XX tokens

...

ON AGENT SPAWN

graphql-explorer ~XXX tokens

TOTAL LOADED AT REST: ~XXX tokens

RECOMMENDATIONS: ...

```

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.