cc-compact

Solid

Session handoff for the next session — write-side pair of /cc-continue. Triggers on "cc-compact", "session handoff", "handoff prompt", "hand off", "wrap up the session", "prep for next session". Distills what /cc-continue cannot recover: subagent findings, tool-output numbers, and decisions that never entered the user↔assistant dialogue. Saves to a per-project file /cc-continue auto-loads.

AI & Automation 31 stars 0 forks Updated 4 days ago Apache-2.0

Install

View on GitHub

Quality Score: 86/100

Stars 20%
50
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

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-...

Details

Author
ww-w-ai
Repository
ww-w-ai/claude-code-token-saver
Created
5 months ago
Last Updated
4 days ago
Language
JavaScript
License
Apache-2.0

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

cc-continue

Cheaper and faster than /compact. Restores previous session context by reading transcripts directly — no LLM calls, no token cost. Also auto-loads a handoff written by /cc-compact, if one exists. Triggers on "cc-continue", "restore context", "what was I doing", "pick up where I left off", "resume work", "previous session".

31 Updated 4 days ago
ww-w-ai
Code & Development Solid

handoff

EXPERIMENTAL. Use when a session is running out of context and the work needs to continue in a fresh one, or when starting a session meant to pick up where an earlier one stopped. Not for compacting in place — that is /compact — and not for specifying work that has not started, which is a plan.

114 Updated today
Ovid
AI & Automation Listed

compact-handoff

Build a complete, copy-paste `/compact <instructions>` handoff that preserves the ENTIRE working state of the current session so NOTHING is lost when the conversation is compacted. Use whenever the user asks to "compact", "compact prompt", "compact the prompt", "make/give me the compact command", "the command to write after /compact", "prepare a compaction handoff", "summarize the session for /compact", "handoff before compacting", "don't lose anything before we compact", "save the session so we don't lose it", or any request to produce the text to feed the `/compact` command. Also updates the project KB / long-term memory first (when one exists) so the durable record is complete too.

0 Updated 3 weeks ago
hishamashraf585