🎯

context-compactor

🎯Skill

from adaptationio/skrillz

VibeIndex|
What it does

context-compactor skill from adaptationio/skrillz

πŸ“¦

Part of

adaptationio/skrillz(191 items)

context-compactor

Installation

Add MarketplaceAdd marketplace to Claude Code
/plugin marketplace add adaptationio/Skrillz
Install PluginInstall plugin from marketplace
/plugin install skrillz@adaptationio-Skrillz
Claude CodeAdd plugin in Claude Code
/plugin enable skrillz@adaptationio-Skrillz
Add MarketplaceAdd marketplace to Claude Code
/plugin marketplace add /path/to/skrillz
Install PluginInstall plugin from marketplace
/plugin install skrillz@local

+ 4 more commands

πŸ“– Extracted from docs: adaptationio/skrillz
1Installs
3
-
Last UpdatedJan 16, 2026

Skill Details

SKILL.md

Automatic context summarization for long-running sessions. Use when context is approaching limits, summarizing completed work, preserving critical information, or managing token budgets.

Overview

# Context Compactor

Automatically summarizes and compacts context when approaching token limits while preserving critical information.

Quick Start

Check if Compaction Needed

```python

from scripts.compactor import ContextCompactor

compactor = ContextCompactor()

if compactor.should_compact(context, limit=100000):

compacted = compactor.compact(context)

```

Compact Context

```python

compacted = compactor.compact(context)

# Preserves: architectural decisions, bugs, current state

# Discards: stale tool outputs, redundant messages

```

Preservation Strategy

```

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”

β”‚ PRESERVATION PRIORITY β”‚

β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€

β”‚ β”‚

β”‚ MUST PRESERVE (Never remove) β”‚

β”‚ β”œβ”€ Architectural decisions β”‚

β”‚ β”œβ”€ Unresolved bugs and blockers β”‚

β”‚ β”œβ”€ Current feature state β”‚

β”‚ β”œβ”€ Recent file changes (last 5) β”‚

β”‚ └─ Error patterns and solutions β”‚

β”‚ β”‚

β”‚ CAN SUMMARIZE (Compress to summary) β”‚

β”‚ β”œβ”€ Completed features (list of IDs) β”‚

β”‚ β”œβ”€ Resolved errors (brief mention) β”‚

β”‚ └─ Historical decisions (key points) β”‚

β”‚ β”‚

β”‚ CAN DISCARD (Remove entirely) β”‚

β”‚ β”œβ”€ Redundant tool outputs β”‚

β”‚ β”œβ”€ Stale search results β”‚

β”‚ β”œβ”€ Superseded messages β”‚

β”‚ └─ Verbose logging β”‚

β”‚ β”‚

β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

```

Compaction Process

  1. Score Importance: Assign score to each message/content
  2. Identify Critical: Mark must-preserve content
  3. Summarize Middle: Compress can-summarize content
  4. Discard Stale: Remove can-discard content
  5. Validate: Ensure compacted context is coherent

Token Budgets

| Context Type | Limit | Action |

|--------------|-------|--------|

| < 50% | Normal | No action |

| 50-75% | Warning | Prepare for compaction |

| 75-90% | Compact | Trigger compaction |

| > 90% | Critical | Aggressive compaction |

Integration Points

  • autonomous-session-manager: Triggers compaction check
  • memory-manager: Stores compacted summaries
  • handoff-coordinator: Uses compacted state for handoffs

References

  • references/COMPACTION-STRATEGY.md - Detailed strategy
  • references/TOKEN-BUDGETS.md - Budget management

Scripts

  • scripts/compactor.py - Core ContextCompactor
  • scripts/importance_scorer.py - Message scoring
  • scripts/summarizer.py - Content summarization
  • scripts/token_estimator.py - Token counting