token-conservation

Solid

Enforce token quota management at session start with conservation rules, delegation checks, and compression review.

AI & Automation 308 stars 27 forks Updated today MIT

Install

View on GitHub

Quality Score: 96/100

Stars 20%
83
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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 1. `token-conservation:quota-check` 2. `token-conservation:context-plan` 3. `token-conservation:delegation-check` 4. `token-conservation:compression-review` 5. `token-conservation:logging` ## Step 1 – Quota Check (`quota-check`) - Record current session duration and weekly usage (from `/status` or 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 `Read` call and each content-mode `Grep` as 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 e...

Details

Author
athola
Repository
athola/claude-night-market
Created
6 months ago
Last Updated
today
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category