compact SKILL.md skillA

compact from crisandrews/clawcode is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add crisandrews/clawcode/compact@git:20260410.3244338

Pins git:20260410.3244338 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
crisandrews/clawcode
Path
skills/compact/SKILL.md
Versions recorded
4
Latest version
git:20260410.3244338, committed Apr 10, 2026
First version recorded
Apr 10, 2026
Size
2,546 bytes
Repository stars
63
License
MIT

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

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# /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
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add crisandrews/clawcode/compact@sha256:f18ed9dd05eeca69

The line at the top of this page pins the label git:20260410.3244338, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_mq4i4mdsjc2cvfp3.svg)](https://markdownregistry.com/a/art_mq4i4mdsjc2cvfp3)

4 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 4 versions of this file, all committed on Apr 10, 2026.

versioncommittedcommitsizeaudit
git:20260410.3244338 latest2026-04-10 3244338 2,546 BA view · diff
git:20260410.9e0af4f2026-04-10 9e0af4f 2,304 BA view · diff
git:20260410.dbd18db2026-04-10 dbd18db 2,110 BA view · diff
git:20260410.af53a962026-04-10 af53a96 1,941 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (2546 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

crisandrews/clawcode · 63 stars · license MIT · pushed 2026-11-02 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_mq4i4mdsjc2cvfp3
GET https://markdownregistry.com/api/v1/resolve?ref=crisandrews/clawcode/compact
GET https://markdownregistry.com/api/v1/blob/f18ed9dd05eeca6978dd45c233444bf187ce4b8e9dc7da02ae4d4cc590406edb

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from crisandrews/clawcode

AGENTS.md AGENTS.md file
crisandrews/clawcode · AGENTS.md
git:20260913.24ad02a · audit A · 63 stars
about SKILL.md skill
crisandrews/clawcode · skills/about/SKILL.md · Show the plugin source — name, version, and repo URL. Works from CLI or messaging. Triggers on /about, /version…
git:20260420.6c737f0 · audit A · 63 stars
channels SKILL.md skill
crisandrews/clawcode · skills/channels/SKILL.md · Show messaging channel status (WhatsApp, Telegram, Discord, iMessage, Slack, Fakechat) and the launch command to load…
git:20260913.24ad02a · audit A · 63 stars
create SKILL.md skill
crisandrews/clawcode · skills/create/SKILL.md · Create a new agent in the current directory with personality files and bootstrap ritual. Triggers on /agent:create…
git:20260418.178e637 · audit A · 63 stars
crons SKILL.md skill
crisandrews/clawcode · skills/crons/SKILL.md · Manage scheduled reminders (crons) — list, add, delete, pause, resume, reconcile, or import from OpenClaw. Triggers on…
git:20260611.9d7ac6a · audit B · 63 stars
doctor SKILL.md skill
crisandrews/clawcode · skills/doctor/SKILL.md · Run diagnostic checks on the agent workspace. Triggers on /agent:doctor, "diagnóstico", "diagnostico", "doctor"…
git:20260611.9d7ac6a · audit A · 63 stars
heartbeat SKILL.md skill
crisandrews/clawcode · skills/heartbeat/SKILL.md · Run agent heartbeat — periodic checks, memory consolidation, proactive work. Triggers on /agent:heartbeat, "heartbeat"…
git:20260611.9d7ac6a · audit A · 63 stars
help SKILL.md skill
crisandrews/clawcode · skills/help/SKILL.md · List available commands the user can invoke. Works from CLI or messaging channels. Triggers on /help, /commands…
git:20260413.55f2d8e · audit A · 63 stars
import SKILL.md skill
crisandrews/clawcode · skills/import/SKILL.md · Import an existing OpenClaw agent from its workspace directory into the current project. Triggers on /agent:import…
git:20260609.3799ece · audit B · 63 stars
live SKILL.md skill
crisandrews/clawcode · skills/live/SKILL.md · Set up, check, reconfigure or disable ClaudeLive conversations for this existing ClawCode agent. Use for /agent:live…
git:20260913.75c1cc1 · audit A · 63 stars
messaging SKILL.md skill
crisandrews/clawcode · skills/messaging/SKILL.md · Set up a messaging channel (WhatsApp, Telegram, Discord, iMessage, Slack) to reach this agent from outside Claude Code…
git:20260419.493ffc9 · audit A · 63 stars
new SKILL.md skill
crisandrews/clawcode · skills/new/SKILL.md · Start a new session — save summary to memory, then mark as reset so next message gets a fresh greeting…
git:20260410.3244338 · audit A · 63 stars

Every file in crisandrews/clawcode

Other files named compact

compact SKILL.md skill
donald-ada/workinggenius · skills/compact/SKILL.md · Put the compaction question to a snapshot that drifted — route what no longer constrains unfinished work, and say what…
git:20261031.af1ac5b · audit A · 6 stars

Browse by kind, by grade A, or by owner.