compacting-context

Installation
SKILL.md

Compacting Context

When conversation history must be compressed, use this structured approach to preserve everything needed to continue work without loss.

Critical rules

  • TEXT ONLY. Do NOT call any tools during summarization. You already have all the context you need in the conversation above. Tool calls will be rejected and waste your turn.
  • Use a two-phase approach: first draft your analysis in an <analysis> block (scratchpad — will be stripped), then write the final summary in a <summary> block.
  • Be thorough — this summary replaces the entire conversation history. Anything not captured here is lost.

Template

Your summary MUST include ALL nine sections. If a section has nothing to report, write "None" — do not skip it.

1. Primary request and intent

Capture ALL of the user's explicit requests and intents in full detail. Include original wording where precision matters. If the user's intent changed during the conversation, document the evolution.

2. Key technical concepts

List all important technical concepts, technologies, frameworks, and domain knowledge discussed. Include version numbers, specific APIs, architectural patterns, and library names.

Related skills

More from beltonk/claude-code-agent-skills

Installs
4
First Seen
Apr 8, 2026