compression-strategy
Analyze current context and recommend compression strategies for bloated or quota-heavy sessions
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/athola/nm-conserve-compression-strategyNight Market Skill — ported from claude-night-market/conserve. For the full experience with agents, hooks, and commands, install the Claude Code plugin.
Compression Strategy
Analyze current context usage and recommend optimal compression strategies.
When To Use
- Context feels bloated or sluggish
- Before major task phase transitions (plan complete, starting implementation)
- Token quota burning faster than expected
- After large tool output accumulations
When NOT To Use
- Context-optimization skill already handling the scenario
- Simple queries with minimal context
- Freshly cleared context
Required TodoWrite Items
compression-strategy:analyze-contextcompression-strategy:recommend-strategycompression-strategy:estimate-savings
Step 1 – Analyze Context (analyze-context)
Run /context to check current usage. Then estimate:
- Tool output accumulation: How much context is from tool results vs. conversation?
- Stale content age: How many turns since critical decisions were made?
- Active files: Which files are still relevant vs. historical?
Step 2 – Recommend Strategy (recommend-strategy)
Based on analysis, recommend one of:
Option A: /clear + /catchup
Best when:
- Task phase complete (planning done, implementation starting)
- Context > 60% full
- Most content is stale
Process:
- Save critical state to
.claude/session-state.md - Run
/clear - Run
/catchupto reload active files
Option B: Spawn Continuation Agent
Best when:
- Context > 80% full
- Work in progress, can't stop
- Delegatable tasks remain
Process:
- Run
Skill(conserve:clear-context)to spawn continuation agent - Agent receives fresh context with saved state
Option C: Archive + Summarize
Best when:
- Context 40-60% full
- Some stale content mixed with active
- Not ready for full clear
Process:
- Archive old decisions/errors to
.claude/context-archive/ - Summarize completed work in memory
- Continue with leaner context
Option D: Delegate to Subagent
Best when:
- Parallel work possible
- Independent subtasks exist
- Context pressure moderate
Process:
- Identify delegatable tasks
- Spawn specialized agents via
Tasktool - Main context stays lean
Step 3 – Estimate Savings (estimate-savings)
For the recommended strategy, estimate:
| Strategy | Typical Savings | Risk |
|---|---|---|
| /clear + /catchup | 70-90% | Low if state saved |
| Continuation agent | 80-95% | Low, state preserved |
| Archive + summarize | 20-40% | Very low |
| Delegate to subagent | 30-50% | Low, parallel work |
Context Archive Location
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.
Integration Points
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-compression-strategy": {
"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