AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Budget

skill-jansenanalytics-claudex-budget · by JansenAnalytics

Estimate and rank what is consuming the context window — CLAUDE.md, MEMORY.md, USER.md, the 162 auto-loaded skill descriptions (ranked heaviest-first), and tool/MCP schemas. Use when asked about context bloat, token weight, "what's eating my context", which skills are heaviest, or with --cost for real spend.

No reviews yet
0 installs
37 views
0.0% view→install

Install

$ agentstack add skill-jansenanalytics-claudex-budget

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-jansenanalytics-claudex-budget)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Budget? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Budget

With ~162 skill descriptions auto-loaded every session, description sprawl is a plausible silent tax on the context window — and until now we had zero visibility into it. This skill estimates and ranks the static, auto-loaded pieces of context so bloat is visible and prunable.

Run it

python3 "$CLAUDE_SKILLS_DIR/budget/scripts/budget.py"            # ranked breakdown
python3 "$CLAUDE_SKILLS_DIR/budget/scripts/budget.py" --top 15   # show 15 heaviest skills
python3 "$CLAUDE_SKILLS_DIR/budget/scripts/budget.py" --json     # machine-readable
python3 "$CLAUDE_SKILLS_DIR/budget/scripts/budget.py" --cost     # + real spend (model-usage/codexbar)

If $CLAUDE_SKILLS_DIR is unset, it lives at ~/.claude-agent/.claude/skills/budget/.

What it measures

| Component | Source | Exactness | |-----------|--------|-----------| | CLAUDE.md + .claude/rules/*.md | file contents | exact size, est. tokens | | MEMORY.md | auto-memory index | exact size, est. tokens | | USER.md | curated profile | exact size, est. tokens | | Skill descriptions (×162) | skill-index.json | EXACT ranking | | system prompt | rough constant | approximate — harness-hidden | | tool + MCP schemas | rough constant | approximate — harness-hidden |

Reading the output

  • The skill-description ranking is the genuinely useful, exact part — we own

skill-index.json, so the heaviest-N list is real and directly actionable.

  • The grand total is an estimate. The harness does not expose live context counts to

the model, so the system-prompt and tool-schema rows are conservative constants. Treat the total as order-of-magnitude, not authoritative.

  • Tokenizer caveat: uses tiktoken o200k_base (a GPT tokenizer) when available — close

to Claude's tokenizer but not identical (±10-20% on absolute counts). Ranking is unaffected. Falls back to a chars/4 heuristic if tiktoken isn't installed.

What to do with it

  • A heavy skill description → trim it, or feed it to the skill-curator (Tier 2 item 3) as

a prune/consolidate candidate. Description weight is a property of the skill itself, so it's the right bloat lever (unlike time-unused, which only ever produces a report).

  • --cost shells out to model-usage / codexbar for real per-model spend if installed.

Rules

  • Always present totals as an estimate — never imply the number is exact.
  • Lead with the skill ranking (the exact part) when reporting to the user.
  • Read-only. This skill never edits skills or settings — it only measures.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.