Manage and compact context for long sessions. Use when context is filling up, creating handoff summaries, optimizing context usage, or preparing for session continuation.
64
76%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./skills/ac-context-compactor/SKILL.mdManage context usage and create compact summaries for session continuation.
Monitors context usage and creates compact summaries when approaching limits, enabling seamless session continuation without losing critical information.
from scripts.context_compactor import ContextCompactor
compactor = ContextCompactor(project_dir)
if await compactor.should_compact():
summary = await compactor.create_compact_summary()Context threshold: 85%
│
├── Below 85%: Continue normally
├── At 85%: Create compact summary
└── Above 90%: Force handoff{
"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"
]
}ac-session-manager for auto-continuationac-handoff-creator when compactingSee scripts/context_compactor.py for full implementation.
93ed392
Also appears in
since Sep 12, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.