Skip to content
Skills Library
AI & agents · Automation

compact

/compact

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

Repository
clawcode ↗
Licence
MIT
Last repository change
27.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

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

Triggers from the description

guarda memoriaflush
Original author description

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

How it works

  1. Important — architectural honesty
  2. Steps
  3. Important
Original SKILL.md headings · 73 lines, 362 words
SKILL.md preview
---
name: compact
description: Flush important session context to daily log (manual memory flush). Does NOT invoke native /compact. Triggers on /compact, /agent:compact, /flush, "guarda memoria", "flush".
user-invocable: true
---

# /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 saves memory automatically when that happens.)
```

### WhatsApp
```
✅ *Saved* → memory/<DATE>.md
```

### Telegram
```
✅ **Saved** → memory/<DATE>.md
```

**IMPORTANT**: Respond in the user's language. If the user writes in Spanish, translate these templates to Spanish on the fly. Do the same for any other language. The templates above are English defaults — adapt them.

5. **Do NOT** say "now run /compact" — that causes a loop. The user decides if they want to run the native command.

## Important

- APPEND-only.
- If nothing substantive to save, say so: "Nothing important to save right now" (or in user's language).
- The native `/compact` in CLI is the real compaction. This skill is just the memory-save part, usable independently.
- This is the agent-aware memory-flush equivalent.

Versions

RepositoryScoreLicence
This page · crisandrews/clawcode100MIT
xiaobei930/cc-best100MIT
hollerbell/cache-bell90MIT

Database snapshot: 13.11.2026 · package version f8cc0ded5226 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100compact-summary
    Use when deciding whether to compact the conversation, when context is running out, or when writing the instructions for a /compact.
  • 100update-mem
    Save to memory. Use when the user says "update mem", "save it", "save this", "save kar", "remember this", "yaad rakh", "note karo", "update vault", "save session", or "flush memory"; and without being asked BEFORE any compact, at session end, when context grows long, or right…
  • 100knowledge-flush
    Drain queued ★ Insight candidates (harvested from your sessions) into the wiki as a reviewed PR. For each candidate it researches and verifies the best-practice against real sources, checks existing wiki layers for duplicates and links, decides the target layer/category (or…
  • 90compact-me
    当上下文接近耗尽、或检测到复读/注意力漂移时,模型主动发起自压缩:注入 /compact 与唤醒词两条消息,用落盘线索在压缩后唤醒自己继续任务。仅在任务可从磁盘线索重建时使用。
  • 100strategic-compact
    Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction. Use when a session is approaching a context limit and a task phase is a natural place to compact.
  • 100strategic-compact
    Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction. Use when a session is approaching a context limit and a task phase is a natural place to compact.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.