token-conservation
FreeNo executable scriptsNot checkedEnforces token quota management at session start with conservation and compression checks. Use at the start of every session or before large context loads
by athola2,118 installs in other catalogsAbout this skill
Night Market Skill: ported from claude-night-market/conserve. For the full experience with agents, hooks, and commands, install the Claude Code plugin.
Token Conservation Workflow
When To Use
- Run at the start of every session and whenever prompt sizes or tool calls begin to spike.
- Mandatory before launching long-running analyses, wide diffs, or massive context loads.
When NOT To Use
- Context-optimization already handles the scenario
- Simple queries with minimal context
Required Progress Items
token-conservation:quota-checktoken-conservation:context-plantoken-conservation:delegation-checktoken-conservation:compression-reviewtoken-conservation:logging
Step 1 – Quota Check (quota-check)
- Record current session duration and weekly usage (from
/statusor notebook). Note the 5-hour rolling cap and weekly cap highlighted in the Claude community notice. - Capture remaining budget and set a max token target for this task.
Step 2 – Context Plan (context-plan)
Set a discovery read budget BEFORE reading any files. Count each
Readcall and each content-modeGrepas one read. Glob and files-with-matches Grep are free.- Implement from spec/requirements: max 8 reads
- Bug fix at known location: max 5 reads
- Refactor with known scope: max 1 read per file being changed
- Open exploration: max 15 reads
Read order (most valuable first): spec/requirements, files to modify, imports/interfaces, then stop and start writing.
When budget is spent: ask the user if more context is needed. Do NOT self-authorize additional reads. Only explicit user approval overrides the budget.
Prefer
Readwithoffset/limitparams orGreptool over loading whole files. AReadtargeting <50 lines counts as 0.5 reads. Avoidcat/sed/awkvia Bash: Claude Code 2.1.21+ steers toward native file tools (Read, Edit, Write, Grep, Glob).PDFs (Claude Code 2.1.30+): Use
Readwithpages: "1-5"for targeted PDF reading instead of loading entire documents. Large PDFs (>10 pages) return a lightweight reference when @-mentioned, so use thepagesparameter to read specific sections. Hard limits: 100 pages max, 20MB max per PDF. Exceeding these previously locked sessions permanently (fixed in 2.1.31).Convert prose instructions into bullet lists before prompting so only essential info hits the model.
Before a web search or fetch, decide whether the claim needs a source at all.
modules/source-selection.mdsorts claims into those worth citing (versions, performance, security, APIs, pricing) and those that are not, with the token cost of each approach.
Step 3 – Delegation Check (delegation-check)
- Evaluate whether compute-intensive tasks can go to Qwen MCP or other external
tooling (use
qwen-delegationskill if needed). - For local work, favor deterministic scripts (formatters, analyzers) instead of LLM reasoning when possible.
Step 4 – Compression Review (compression-review)
- Summarize prior steps/results before adding new context. Remove redundant history, collapse logs, and avoid reposting identical code.
- Use
prompt cachingideas: reference prior outputs instead of restating them when the model has already processed the information (cite snippet IDs). - Decide whether the current thread should be compacted:
- If only recent context is stale, use "Summarize from here" (Claude Code 2.1.32+) via the message selector to partially summarize the conversation. This preserves recent context while compressing older portions
- If the active workflow is finished and earlier context will not be reused,
instruct the user to run
/new - If progress requires the existing thread but the window is bloated,
prompt them to run
/compactbefore continuing
- Automatic memory (Claude Code 2.1.32+): Claude now records and recalls session memories automatically. This adds minor token overhead but improves cross-session continuity. No action needed: be aware it contributes to baseline context usage.
Step 5 – Logging (logging)
Document the conservation tactics that were applied and note the remaining
token budget. If the budget is low, explicitly warn the user and propose secondary
plans. Record any recommendations made regarding the use of /new or /compact,
or justify why neither was necessary, to inform future context-handling decisions.
Output Expectations
- A short explanation of token-saving steps, delegated tasks, and remaining runway.
- Concrete next-action list that keeps the conversation lean (e.g.):
- "next turn: provide only failing test output lines 40-60"
- Explicit reminder about
/newor/compactwhenever you determine it would save tokens (otherwise state that no reset/compaction is needed yet).
Exit Criteria
- All 5 progres
Install token-conservation in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the token-conservation skill do?
Enforces token quota management at session start with conservation and compression checks. Use at the start of every session or before large context loads
How do I install the token-conservation skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the token-conservation skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
by Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
by Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropic