/agent:compactfrom ClawCode
Flushes important session context to a daily log file for manual memory management without triggering native compaction. Useful for explicit save checkpoints on CLI and messaging channels.
Ships in ClawCode. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
/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.This skill does NOT say "now run /compact" (that would cause a loop if the user pastes it again). It just saves and confirms.
Detect surface.
Scan the current session for things worth remembering:
Append to daily log:
DATE=$(date +%Y-%m-%d)
TIME=$(date +%H:%M)
## Manual flush (<TIME>)
### Decisions
- ...
### Facts learned
- ...
### Open items
- ...
Respond briefly per surface:
✅ 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
✅ **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.
/compact in CLI is the real compaction. This skill is just the memory-save part, usable independently.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub crisandrews/clawcode --plugin agent21 skills in this plugin
/aboutShow 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"./channelsShow 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 whatsapp", "channel status", "messaging status"./createCreate 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"./cronsManage 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 any channel ("recordame", "recuérdame", "me recuerdas", "hazme acordar", "agendame", "agéndame", "avísame", "remind me", "remind me in", "reminder in", "schedule a reminder", "set a reminder", "wake me at", "every day at", "todos los días a las", "every monday|tuesday|...", "todos los lunes|martes|...", "cada N minutos|horas"); importing ("import crons", "importar crons", "traer crons")./doctorRun 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"./heartbeatRun agent heartbeat — periodic checks, memory consolidation, proactive work. Triggers on /agent:heartbeat, "heartbeat", "heartbeat check", "periodic check", "consolidar memoria".Other plugins' skills for the same job