ac-context-compactor
π―Skillfrom adaptationio/skrillz
Compacts and preserves critical context when session approaches memory limits, enabling seamless continuation and information retention.
Installation
npx skills add https://github.com/adaptationio/skrillz --skill ac-context-compactorSkill Details
Manage and compact context for long sessions. Use when context is filling up, creating handoff summaries, optimizing context usage, or preparing for session continuation.
Overview
# AC Context Compactor
Manage context usage and create compact summaries for session continuation.
Purpose
Monitors context usage and creates compact summaries when approaching limits, enabling seamless session continuation without losing critical information.
Quick Start
```python
from scripts.context_compactor import ContextCompactor
compactor = ContextCompactor(project_dir)
if await compactor.should_compact():
summary = await compactor.create_compact_summary()
```
Context Management
```
Context threshold: 85%
β
βββ Below 85%: Continue normally
βββ At 85%: Create compact summary
βββ Above 90%: Force handoff
```
Compaction Strategy
- Preserve: Critical state and progress
- Summarize: Completed features
- Extract: Key decisions and context
- Compress: Verbose information
Summary Structure
```json
{
"session_summary": {
"features_completed": ["auth-001", "auth-002"],
"current_feature": "api-001",
"progress_percentage": 45.5
},
"key_decisions": [
"Using JWT for auth",
"PostgreSQL for database"
],
"active_context": {
"current_file": "src/api/routes.py",
"current_task": "Implementing user endpoint"
},
"next_actions": [
"Complete user endpoint",
"Add authentication middleware"
]
}
```
Integration
- Used by:
ac-session-managerfor auto-continuation - Triggers:
ac-handoff-creatorwhen compacting
API Reference
See scripts/context_compactor.py for full implementation.
More from this repository10
Performs comprehensive analysis of code, skills, processes, and data to extract actionable insights, identify patterns, and drive data-driven improvements.
Automatically diagnoses and resolves Auto-Claude installation, configuration, and runtime issues across different platforms and environments.
Authenticates and configures xAI Grok API access using Twitter/X account credentials, enabling seamless integration with OpenAI-compatible SDK methods.
Retrieve and integrate xAI Grok sentiment with financial data APIs to generate comprehensive market insights and analysis.
xai-crypto-sentiment skill from adaptationio/skrillz
Retrieves comprehensive financial market data including stocks, forex, crypto, and technical indicators using the Twelve Data API.
Enables real-time Twitter/X searches using Grok API to extract insights, track trends, monitor accounts, and analyze social discussions.
Enables autonomous agents to search X, web, execute code, and analyze documents with server-side tool management.
Optimizes Claude AI performance by reducing token usage, managing API costs, and improving build speed through intelligent model and context selection.
Automates comprehensive installation and setup of Auto-Claude across Windows, macOS, Linux, and WSL with multi-platform support and dependency management.