/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".
$ npx -y skills add crisandrews/ClawCode --skill compact --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/compact
Context preview
The summary Claude sees to decide when to auto-load this skill.
Flush important session context to daily log (manual memory flush). Does NOT invoke native /compact. Triggers on /compact, /agent:compact, /flush, "guarda memoria", "flush".
SKILL.md
compact.SKILL.mdname: 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**:
DATE=$(date +%Y-%m-%d)
TIME=$(date +%H:%M)
## 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.
Read more
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**:
DATE=$(date +%Y-%m-%d) TIME=$(date +%H:%M)
## 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.)
✅ *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.
Persistent agents for Claude Code as a plugin, not a harness. Memory, personality, messaging across WhatsApp, Telegram, and Discord, plus a service mode for 24/7 runs. Imports from OpenClaw.
Repo: crisandrews/ClawCode
Other skills on crisandrews-agent.
- /about
Show the plugin source — name, version, and repo URL. Works from CLI or messaging. Triggers on /about, /version, /agent:about, /agent:version, "qué versión", "what version", "about the plugin", "about clawcode".
Open skill - /channels
Show messaging channel status (WhatsApp, Telegram, Discord, iMessage, Slack, Fakechat) and the launch command to load them. Triggers on /agent:channels, /agent:channels list, /agent:channels status, /agent:channels launch, "ver canales", "estado de canales", "cómo lanzo con
Open skill - /create
Create a new agent in the current directory with personality files and bootstrap ritual. Triggers on /agent:create, "crear agente", "nuevo agente", "new agent", "create agent".
Open skill - /crons
Manage scheduled reminders (crons) — list, add, delete, pause, resume, reconcile, or import from OpenClaw. Triggers on /agent:crons, /agent:reminders; listing ("list reminders", "show crons", "recordatorios", "mis crons", "mis recordatorios"); creating from natural language via
Open skill - /doctor
Run diagnostic checks on the agent workspace. Triggers on /agent:doctor, "diagnóstico", "diagnostico", "doctor", "health check", "agent health", "checkup", "revisar agente", "agent broken", "fix agent", "revisa el agente".
Open skill - /heartbeat
Run agent heartbeat — periodic checks, memory consolidation, proactive work. Triggers on /agent:heartbeat, "heartbeat", "heartbeat check", "periodic check", "consolidar memoria".
Open skill

