budget
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…
Skill by JansenAnalytics
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/jansenanalytics-budget
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: finance, 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. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/budget
What's inside
- Skill name
budget- Description
- 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.
- License
- MIT
- Instructions
- 54 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (2)
- SKILL.md
- budget.py · scripts/
SKILL.md (first lines)
# 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 ```bash 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.
From JansenAnalytics/claudex, MIT.
More from JansenAnalytics/claudex
- 0.534score
api-critic
JansenAnalytics
Autonomous API testing and evaluation.
SkillCFreshness: C★ 5Claude Code +9 - 0.531score
architecture-critic
JansenAnalytics
Static code analysis like a senior developer — cyclomatic/cognitive complexity, dead code detection, dependency graph analysis (circular deps, god modules)…
SkillCFreshness: C★ 5Claude Code +9 - 0.529score
memory-search
JansenAnalytics
Semantic memory search across all agent memories and conversation history.
SkillCFreshness: C★ 5Claude Code +9 - 0.529score
adr-manager
JansenAnalytics
Record and retrieve Architecture Decision Records — log a decision's context, options, rationale, and tradeoffs, then list/search them.
SkillCFreshness: C★ 5Claude Code +9 - 0.528score
weather
JansenAnalytics
Get current weather and forecasts.
SkillCFreshness: C★ 5Claude Code +9 - 0.526score
a11y-audit
JansenAnalytics
Accessibility auditing: WCAG compliance checking, contrast ratios, ARIA labels, keyboard navigation, semantic HTML, screen reader compatibility.
SkillCFreshness: C★ 5Claude Code +9 - 0.525score
backup-restore
JansenAnalytics
Automated backup strategies: database dumps, file snapshots, incremental backups, verification, disaster recovery.
SkillCFreshness: C★ 5Claude Code +9 - 0.525score
api-tester
JansenAnalytics
Systematic REST and GraphQL API endpoint testing: happy path, error cases, auth flows, rate limits, schema validation.
SkillCFreshness: C★ 5Claude Code +9 - 0.523score
arch-diagram
JansenAnalytics
Generate architecture diagrams from codebase analysis: Mermaid, PlantUML, or ASCII.
SkillCFreshness: C★ 5Claude Code +9 - 0.519score
calendar-manager
JansenAnalytics
Read and manage Google Calendar events: list upcoming, create events, check availability, send reminders.
SkillCFreshness: C★ 5Claude Code +9 - 0.519score
canvas
JansenAnalytics
Display HTML content on connected OpenClaw nodes (Mac app, iOS, Android).
SkillCFreshness: C★ 5Claude Code +9 - 0.504score
bluebubbles
JansenAnalytics
Use when you need to send or manage iMessages via BlueBubbles (recommended iMessage integration).
SkillCFreshness: C★ 5Claude Code +9
Signals
- Stars
- 5
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jun 5, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/JansenAnalytics/claudex
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from JansenAnalytics
- 0.534score
api-critic
JansenAnalytics
Autonomous API testing and evaluation.
SkillCFreshness: C★ 5Claude Code +9 - 0.531score
architecture-critic
JansenAnalytics
Static code analysis like a senior developer — cyclomatic/cognitive complexity, dead code detection, dependency graph analysis (circular deps, god modules)…
SkillCFreshness: C★ 5Claude Code +9 - 0.529score
memory-search
JansenAnalytics
Semantic memory search across all agent memories and conversation history.
SkillCFreshness: C★ 5Claude Code +9 - 0.529score
adr-manager
JansenAnalytics
Record and retrieve Architecture Decision Records — log a decision's context, options, rationale, and tradeoffs, then list/search them.
SkillCFreshness: C★ 5Claude Code +9 - 0.528score
weather
JansenAnalytics
Get current weather and forecasts.
SkillCFreshness: C★ 5Claude Code +9 - 0.526score
a11y-audit
JansenAnalytics
Accessibility auditing: WCAG compliance checking, contrast ratios, ARIA labels, keyboard navigation, semantic HTML, screen reader compatibility.
SkillCFreshness: C★ 5Claude Code +9
Cite this page
budget skill. Agent Mart. https://agentmart.dev/skills/jansenanalytics-budget (last updated 2026-10-24)