token-conservation
Enforces token quota management at session start with conservation and compression checks. Use at the start of every session or before large context loads.
What this skill does
# 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 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 `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 explicit user approval overrides the budget.
- Prefer `Read` with `offset`/`limit` params or `Grep` tool over loading whole files.
A `Read` targeting <50 lines counts as 0.5 reads. Avoid `cat`/`sed`/`awk` via Bash:
Claude Code 2.1.21+ steers toward native file tools (Read, Edit, Write, Grep, Glob).
- **PDFs (Claude Code 2.1.30+)**: Use `Read` with `pages: "1-5"` for targeted PDF reading
instead of loading entire documents. Large PDFs (>10 pages) return a lightweight
reference when @-mentioned, so use the `pages` parameter 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-delegation` skill 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 caching` ideas: 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 `/compact` before 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 `/new` or `/compact` whenever you determine it would save
tokens (otherwise state that no reset/compaction is needed yet).
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.