memory-cleanup SKILL.md skillA
memory-cleanup from kanevry/session-orchestrator is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add kanevry/session-orchestrator/memory-cleanup@git:20261029.0c847ccPins git:20261029.0c847cc in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- kanevry/session-orchestrator
- Path
skills/memory-cleanup/SKILL.md- Versions recorded
- 11
- Latest version
- git:20261029.0c847cc, committed Oct 29, 2026
- First version recorded
- Jul 2, 2026
- Size
- 22,757 bytes
- Repository stars
- 53
- License
- MIT
Use this skill when performing manual memory consolidation (Dream-equivalent). Reviews, consolidates, and prunes memory files under ~/.claude/projects/*/memory/. Run after major refactors, every 5+ sessions, or when memory quality degrades (broken links, stale references, contradictions, MEMORY.md > 200 lines). Invoke with /memory-cleanup.
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
# Memory Cleanup — Manual Dream Process ## Invocation The user invoked `/memory-cleanup` with arguments: **$ARGUMENTS**. Parse them before anything else — two optional, mutually-exclusive flags are recognised (`--dry-run`, `--apply-pending`, see PRD #502); passing both is an error, and the absence of both selects the legacy interactive 4-phase mode. The per-flag behaviour, the exact status lines and the exit codes are in § Argument Handling (Phase 0) below; the interactive default runs Phases 1-4 (Orient → Gather Signal → Consolidate → Prune & Index) against `~/.claude/projects/<encoded-cwd>/memory/` and reports per § Output. Sidecar producer/consumer contract: session-start's `maintenance-due` probe uses `scripts/lib/auto-dream.mjs` to report when cleanup is due; the former session-end Phase 3.6.5 nudge was retired in #1288. Neither path generates the sidecar. The only real producer of `.orchestrator/pending-dream.md` is a manual `/memory-cleanup --dry-run` run; `--apply-pending` is the operator-confirmed consumer in a later session. The sidecar file is single-writer — concurrent sessions cannot collide because the writer holds the session-lock. <!-- path-check: example --> …
Read the whole file at its exact version.
How to install
mdr add kanevry/session-orchestrator/memory-cleanup@sha256:df2651b5a13cec40The line at the top of this page pins the label git:20261029.0c847cc, 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.
[](https://markdownregistry.com/a/art_jeis5cokgz52hheq)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 11 versions of this file, between Jul 2, 2026 and Oct 29, 2026, about one every 12 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261029.0c847cc latest | 2026-10-29 | 0c847cc | 22,757 B | A | view · diff |
| git:20261027.7eb9aed | 2026-10-27 | 7eb9aed | 22,732 B | A | view · diff |
| git:20261026.b9e2fad | 2026-10-26 | b9e2fad | 22,005 B | A | view · diff |
| git:20260924.4320866 | 2026-09-24 | 4320866 | 21,708 B | A | view · diff |
| git:20260916.3ebf0e9 | 2026-09-16 | 3ebf0e9 | 21,637 B | A | view · diff |
| git:20260908.1b5519d | 2026-09-08 | 1b5519d | 20,492 B | A | view · diff |
| git:20260822.79aa398 | 2026-08-22 | 79aa398 | 20,434 B | A | view · diff |
| git:20260817.c20d4d2 | 2026-08-17 | c20d4d2 | 20,451 B | A | view · diff |
| git:20260709.f9a8016 | 2026-07-09 | f9a8016 | 18,599 B | A | view · diff |
| git:20260708.8f98a54 | 2026-07-08 | 8f98a54 | 18,151 B | A | view · diff |
| git:20260702.80b3b6e | 2026-07-02 | 80b3b6e | 18,131 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (22757 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
kanevry/session-orchestrator · 53 stars · license MIT · pushed 2026-11-01 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_jeis5cokgz52hheq GET https://markdownregistry.com/api/v1/resolve?ref=kanevry/session-orchestrator/memory-cleanup GET https://markdownregistry.com/api/v1/blob/df2651b5a13cec4068cc516ebd859a8a80d1de0387ec4d755ebd463641a01cd1
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 kanevry/session-orchestrator
Every file in kanevry/session-orchestrator