/pm-tokens:context-budgetfrom pm-tokens
Plans a session's context window budget: what to load upfront, link, or fetch-on-demand, with cache-aware prefix layout and eviction rules. Use when context blows, planning session loads, or reducing per-turn costs.
Ships in pm-tokens. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A context window is a budget that gets re-spent every single turn — everything sitting in it rides every call, which is how a session that "only loaded a few files" ends up paying for them forty times. This skill plans the spend before the session: what earns a permanent seat (loaded once, up front, stable), what gets linked (a map or index, with the full thing fetch-on-demand), and what never enters at all. The quiet second half is cache-awareness: providers price cached prefix tokens at a fraction of fresh ones, but only if the prefix stays byte-identical — so the layout (stable things first, volatile things last) is itself a cost decision.
Not quite this? Use
context-switch-budgetwhen you mean your own attention and context switching across the week, not an LLM's context window.
Ask for these if not provided:
| Piece | Size (~tokens) | Verdict | Why |
|---|---|---|---|
| [load / link (with its index) / fetch-on-demand / exclude] |
[Ordered: instructions → schemas/standing refs → the maps/indexes → (volatility line) → working state → history — with the cache note per section]
[Turn 1 / mid-session / near-limit — the arithmetic, cache-adjusted where pricing is known]
[The order, each with its recovery route: "crushed outputs first — refetchable via [command]"]
Run this skill in your browser: https://mohitagw15856.github.io/pm-claude-skills/skill/context-budget.html
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mohitagw15856/pm-claude-skills --plugin pm-tokens6 skills in this plugin
/context-crusherCompress tool outputs, logs, and JSON before they enter the context window — structural compression via a deterministic stdlib script (schema + samples + stats instead of 300 raw rows), no API, no summarization loss. Use when asked shrink this tool output, my context is full of JSON, compress these logs before analysis, or stop wasting tokens on raw data. Produces the crushed artifact with its token math shown, the crush-or-keep decision rules, and the fetch-the-original escape hatch./repo-mapNavigate a codebase by map instead of reading files wholesale — a deterministic stdlib script that emits the tree with line counts and top-level symbols, plus the read-the-map-first discipline that cuts exploration tokens by an order of magnitude. Use when asked explore this repo efficiently, stop re-reading the whole codebase, make a map of this project, or which files should the agent actually open. Produces the compact map with its token math (map vs. everything), the navigation discipline, and the open-only-what-matches rule./session-handoffWrite a handoff summary so another agent or person (or a fresh session) can pick up the work with full context. Use when ending a work session, hitting a context limit, switching agents, or pausing a task mid-flight. Produces a structured handoff: what the goal is, what's done, the current state, what's next, and the gotchas — so no context is lost across the boundary.Other plugins' skills for the same job