context-budget

context-budget is a skill for Claude Code, Codex from frankxai/claude-skills-library. It costs 41 tokens per session (412 once invoked), scanned A, original, MIT.

A way to count the material a coding session loads before adding another skill or tool connection.

In plain words
What is it for?
Use it when enabling a new MCP server, adding a skill, or working with a heavy default prompt.
Why use it?
It helps prevent an already large instruction prompt from becoming unnecessarily crowded and helps assess additions that have not yet been used.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when enabling a new MCP server, adding a skill, or working with a heavy default prompt.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/frankxai/claude-skills-library/context-budget
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add frankxai/claude-skills-library --skill context-budget
Clone the repo
git clone --depth 1 https://github.com/frankxai/claude-skills-library

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for context-budget

README.md
[![agentmods](https://agentmods.dev/badge/skills/frankxai/claude-skills-library/context-budget/github.svg)](https://agentmods.dev/skills/frankxai/claude-skills-library/context-budget)
Your own site
<a href="https://agentmods.dev/skills/frankxai/claude-skills-library/context-budget"><img src="https://agentmods.dev/badge/skills/frankxai/claude-skills-library/context-budget/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for context-budget

Your own site · 80×15
<a href="https://agentmods.dev/skills/frankxai/claude-skills-library/context-budget"><img src="https://agentmods.dev/badge/skills/frankxai/claude-skills-library/context-budget.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 412 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.00412
Opus 5.5 $0.00016 $0.00165
Sonnet 5.5 $0.00008 $0.00082
Haiku 4.5 $0.00004 $0.00041

Measured 17d ago against content hash 577ece781c0c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

context-budget scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 17d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

absorbed/harness/context-budget/SKILL.md · 34 lines

What it actually says

Context budget for this estate

A skill that sits in the default prompt costs tokens on every turn. A skill that loads only when its description matches does not. Measure the default prompt before you add anything.

Caps already in force

  • Turn-0 skill listing stays near 8,000 tokens. A listing near 18,000 is over budget.
  • Skill Foundry on 2026-10-09 counted 402 Claude skills and 380 with no invocation in 30 days. Retirement of those skills is Frank's decision. Until then, new skills stay cold.
  • A new skill enters the default prompt only after it has a saved eval.
  • Enabled MCP servers stay under 10. Tool count stays under 80. A server that only wraps gh, vercel, or npx should be a CLI call.
  • Keep a docs tool such as Context7. Leave Higgsfield disabled.
  • The continuous-learning observer stays off until the unused skills are retired. An observer that promotes new skills into the prompt makes the budget worse.

What to report

  • Servers enabled, and the tool count.
  • Skills in the default prompt, and skills that have an eval.
  • The one removal that frees the most tools.
  • Whether the thing you wanted to add already exists under starlight/repos.

Do not install a token-proxy product as part of this audit.

Where this came from

The inventory idea follows affaan-m/ECC skills/context-budget at 4eb71d92a39cab44ad40ac9d8a6a5ccb4029d6c2 (MIT). The caps, the Foundry counts, and the cold-skill rule are estate measurements.

Built on SIP.

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 17d ago First seen · 34 lines · 41 tokens per session scan A 577ece781c0c

Subscribe to this mod's changes

context-budget is a skill published in the GitHub repository frankxai/claude-skills-library (47 stars, last pushed today), licensed MIT. It adds 41 tokens to every session and 412 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-11.

Related

Other skills, from other repositories

token-saver

Token optimization guide for Claude Code. This skill should be used when the user wants to reduce API costs, learn model routing strategies, or understand how to use free/cheaper tools (Ollama, Haiku) instead of burning expensive Claude tokens on routine tasks. Triggers on: save tokens, reduce costs, token tips, cheap…

chidekina/aria-superpowers · 85 tokens

wayfinder

A planning method that maps a large, uncertain project into linked decision tickets in a repository's issue tracker. An issue tracker is a system for recording and organizing project work.

vinvcn/mattpocock-skills-zh-CN · 40 tokens

scaffold-exercises

A directory scaffold for course exercises, with sections, exercise folders, and optional problem, solution, or explanation versions. It creates the required Markdown files and checks the result with the repository's linter.

vinvcn/mattpocock-skills-zh-CN · 46 tokens

migrate-to-shoehorn

A testing guide for Shoehorn, a TypeScript library that lets tests provide only the fields they need from a larger data type.

vinvcn/mattpocock-skills-zh-CN · 53 tokens

ask-matt

A skill router that helps choose the right workflow or skill for the current task. It maps work from an initial idea through building and shipping, with separate paths for research, prototypes, and multi-session projects.

vinvcn/mattpocock-skills-zh-CN · 28 tokens

improve-codebase-architecture

A skill that scans a codebase for places where restructuring could make future changes and testing easier, then produces an HTML report for selected improvements.

vinvcn/mattpocock-skills-zh-CN · 35 tokens