cc-compact

Installation
SKILL.md

Generate a session handoff: a document that lets the NEXT session pick up with full context and zero re-derivation. /cc-continue restores the transcript (user↔assistant messages); this skill captures what the transcript does NOT hold and saves it where /cc-continue auto-loads it.

ONE JOB: distill the non-dialogue knowledge. The transcript is already restorable — do not re-summarize it.

The two tools form a ladder of recovery:

  • /cc-continue alone → fast, accurate context restore with no wasted /compact tokens (the transcript).
  • /cc-compact + /cc-continue as a set → ALSO recovers the hidden results and process that never appeared in the dialogue (subagent findings, tool-output numbers, process lessons). That extra layer is THIS skill's entire reason to exist — so it must be captured in FULL, not gestured at.

A terse handoff is a FAILED handoff. The common failure mode is a handoff too short to carry the hidden layer — a few bullets that just restate what the transcript already has. This skill exists precisely because that is not enough. Favor completeness of the non-dialogue layer over brevity; the token cost of /cc-compact is paid back many times over by the next session not re-running the same subagents and tool calls.

Help

ONLY if the user's argument literally contains "help" (e.g. /cc-compact help). Otherwise skip to Step 1.

/cc-compact — Write a session handoff for the next session (pairs with /cc-continue)

  /cc-compact            Generate the handoff, save it, print it, copy to clipboard
  /cc-compact help       This help
Installs
1
GitHub Stars
27
First Seen
6 days ago
cc-compact — ww-w-ai/claude-code-token-saver