compact

Solid

Flush important session context to daily log (manual memory flush). Does NOT invoke native /compact. Triggers on /compact, /agent:compact, /flush, "guarda memoria", "flush".

AI & Automation 61 stars 14 forks Updated today MIT

Install

View on GitHub

Quality Score: 84/100

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

Skill Content

# /compact — Manual memory flush Save the important parts of the current conversation to `memory/YYYY-MM-DD.md`. This is a manual version of what the PreCompact hook does automatically. ## Important — architectural honesty - **On CLI**: The native `/compact` compacts Claude Code's context. A skill CANNOT invoke it. If you run `/compact` in the REPL, the native one runs (and the PreCompact hook fires to save memory automatically). This skill is only useful if you want a MANUAL flush WITHOUT triggering actual compaction. - **On messaging channels** (WhatsApp, Telegram, etc.): There is NO native compact. Each message is its own turn. This skill just saves the recent exchange to memory — useful as an explicit "save this" checkpoint. This skill does NOT say "now run /compact" (that would cause a loop if the user pastes it again). It just saves and confirms. ## Steps 1. **Detect surface**. 2. **Scan the current session** for things worth remembering: - Decisions made - Facts the user shared - Tasks discussed - Problems solved 3. **Append to daily log**: ```bash DATE=$(date +%Y-%m-%d) TIME=$(date +%H:%M) ``` ```markdown ## Manual flush (<TIME>) ### Decisions - ... ### Facts learned - ... ### Open items - ... ``` 4. **Respond** briefly per surface: ### CLI ``` ✅ Flush complete → memory/<DATE>.md If you want Claude Code to also compact the context, run the native /compact. (The PreCompact hook already sa...

Details

Author
crisandrews
Repository
crisandrews/ClawCode
Created
3 months ago
Last Updated
today
Language
TypeScript
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category