con un clic
strategic-compact
Context compaction strategy for long sessions
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Context compaction strategy for long sessions
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Demo pipeline state machine — 7-phase autonomous sequence with delegation context templates, phase transition logic, BLOCKED recovery strategies, and demo-state.json schema. Used exclusively by demo-conductor.
Cinematic narration style guide for demo-conductor — ANSI-coloured banner formats, live pipeline scoreboard, audience-facing language, phase summaries, and error narration patterns. Keeps the demo presentation-quality throughout.
Standardized completion and escalation protocol for subagent responses. Ensures the conductor can machine-parse every subagent return. Use when reporting completion status back to the orchestrator.
Cross-session learnings lifecycle — schema, storage, retrieval, and pruning of lessons learned during orchestrator sessions. Use when managing learnings via the /learn command.
Agent Teams assembly and task injection — selects appropriate team, validates prerequisites, estimates cost, injects tasks into the shared task list, and manages team lifecycle.
Token and cost tracking with model tier enforcement
| name | strategic-compact |
| description | Context compaction strategy for long sessions |
| argument-hint | <current-session-state> |
| user-invocable | false |
/clear or major topic shiftBefore running /compact, ensure:
artifacts/memory/activeContext.mdartifacts/plans/The PreCompact hook (hooks/scripts/pre-compact.js) handles this automatically.
When compacting, prioritize retaining:
Deprioritize:
The PostCompact hook restores state from artifacts/memory/activeContext.md. After compaction:
activeContext.md explicitlyCLAUDE_AUTOCOMPACT_PCT_OVERRIDE=50 — Compact earlier (default: 80%).claude/settings.json → env or via CLI