token-conservation
Enforce token quota management at session start with conservation rules, delegation checks, and compression review
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/athola/nm-conserve-token-conservationNight 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 TodoWrite 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 + 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 — 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.
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.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-athola-nm-conserve-token-conservation": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
extract
Analyze a codebase and build a knowledge base of business logic, architecture, data flow, and engineering patterns. The foundation for gauntlet challenges and agent integration
discourse
>- Scan community discussion channels (HN, Lobsters, Reddit, tech blogs) for experience reports and opinions on a topic
synthesize
>- Merge, deduplicate, rank, and format research findings from multiple channels into a coherent report. Use after research agents return their results
workflow-monitor
Detect workflow failures and inefficient patterns, then create GitHub issues for improvement via /fix-workflow
architecture-paradigm-hexagonal
Hexagonal (Ports and Adapters) architecture isolating domain logic from infrastructure