plugins/conserve/skills/compression-strategy/SKILL.md
Recommends context compression strategies for bloated or quota-heavy sessions. Use when context feels sluggish or quota burns faster than expected.
npx skillsauth add athola/claude-night-market compression-strategyInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Analyze current context usage and recommend optimal compression strategies.
compression-strategy:analyze-contextcompression-strategy:recommend-strategycompression-strategy:estimate-savingsanalyze-context)Run /context to check current usage. Then estimate:
recommend-strategy)Based on analysis, recommend one of:
/clear and /catchupBest when:
Process:
.claude/session-state.md/clear/catchup to reload active filesBest when:
Process:
Skill(conserve:clear-context) to spawn continuation agentBest when:
Process:
.claude/context-archive/Best when:
Process:
Task toolestimate-savings)For the recommended strategy, estimate:
| Strategy | Typical Savings | Risk | |----------|-----------------|------| | /clear and /catchup | 70-90% | Low if state saved | | Continuation agent | 80-95% | Low, state preserved | | Archive and summarize | 20-40% | Very low | | Delegate to subagent | 30-50% | Low, parallel work | | Reversible compression (CCR) | 47-92% per archived output | Low, original cached |
The CCR row is per oversized tool output, not whole-context: a large Bash,
Read, or Grep result is archived to a handle and replaced by a digest for
future turns. Savings are content-type-dependent (logs compress hard, prose
barely at all). See modules/reversible-compression.md.
Preserved context is saved to:
.claude/context-archive/pre-compact-YYYYMMDD-HHMMSS-SESSIONID.md
This is automatically created by the pre_compact_preserve hook before
any /compact operation.
Load modules/log-debugging-hygiene.md when the bloat source is
pasted log output (debug traces, CI failures, hook logs, JSONL).
That module documents a three-tier filter-first workflow with
benchmarked snippets and an honest framing of when compression
is and is not warranted. On the committed intake_queue.jsonl
fixture, tail -n 100 beats lossless compression by 25
percentage points; the module formalizes that asymmetry.
Load modules/reversible-compression.md when large tool outputs
(code search, log dumps, file reads) are the bloat source. That
module documents the CCR pattern: the tool_output_summarizer
hook archives any oversized output to a content-addressed handle
under .claude/context-archive/, and context_retrieve.py
fetches the original (or a slice) on demand, so the original
survives /clear without staying resident.
/compression-strategy
Output:
Context Analysis:
- Current usage: 52%
- Tool output: ~15KB (3 tool results)
- Stale content: ~40% (decisions from 8+ turns ago)
Recommendation: Option C - Archive + Summarize
- Archive old decisions to context-archive
- Keep active files and recent decisions
- Estimated savings: 25-35%
Commands:
1. Read .claude/context-archive/ to see what's preserved
2. Summarize completed work
3. Continue with leaner context
context_retrieve.py
retrieval command are surfaced (not just a warning)data-ai
Models a business in its own language. Use when the domain has real business rules to capture.
research
Generate diverse solution candidates with category-spanning ideation methods and rotation. Use when stuck on a design or fighting repetitive LLM output.
development
Generates and self-executes a diff-derived test plan for a PR. Use when validating PR changes before merge. Do not use for code review; use sanctum:pr-review.
development
Ramps implementation ambition a notch only after the prior increment is understood. Use when building a feature you must understand, not just ship.