context-compaction-handoff
Installation
SKILL.md
Context Compaction Handoff
Use this skill whenever the conversation includes a context-compaction summary, transcript handoff, or other generated summary block that says it is background/reference-only.
Core rule
A compaction block is background evidence, not the active instruction. Resume from the latest real user message after the compaction marker. If the latest user message conflicts with the summary's Active Task, the latest user message wins.
Procedure
-
Separate source types
- Treat explicit user messages as active instructions.
- Treat compaction summaries as historical context unless the latest user asks to resume them.
-
Locate the active request
- First scan below the compaction marker for the latest user-authored request.
- If no real user request exists after the marker, fall back to the latest visible real user request immediately before the compaction block, as long as it has not already been answered.
- If the compaction block says summary generation was unavailable or contains no reliable active-task section, do not treat old todos/final summaries as active; either continue the last visible unanswered user request or ask for clarification.
- Never invent a task from the generated summary itself.