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.

Install it, pinned
mdr add kanevry/session-orchestrator/memory-cleanup@git:20261029.0c847cc

Pins 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

The exact contents, by fingerprint
mdr add kanevry/session-orchestrator/memory-cleanup@sha256:df2651b5a13cec40

The 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_jeis5cokgz52hheq.svg)](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.

versioncommittedcommitsizeaudit
git:20261029.0c847cc latest2026-10-29 0c847cc 22,757 BA view · diff
git:20261027.7eb9aed2026-10-27 7eb9aed 22,732 BA view · diff
git:20261026.b9e2fad2026-10-26 b9e2fad 22,005 BA view · diff
git:20260924.43208662026-09-24 4320866 21,708 BA view · diff
git:20260916.3ebf0e92026-09-16 3ebf0e9 21,637 BA view · diff
git:20260908.1b5519d2026-09-08 1b5519d 20,492 BA view · diff
git:20260822.79aa3982026-08-22 79aa398 20,434 BA view · diff
git:20260817.c20d4d22026-08-17 c20d4d2 20,451 BA view · diff
git:20260709.f9a80162026-07-09 f9a8016 18,599 BA view · diff
git:20260708.8f98a542026-07-08 8f98a54 18,151 BA view · diff
git:20260702.80b3b6e2026-07-02 80b3b6e 18,131 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 (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

GitHub

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

architecture SKILL.md skill
kanevry/session-orchestrator · .agents/skills/architecture/SKILL.md · Use when the user asks to improve architecture, find refactoring opportunities, surface deepening opportunities…
git:20261003.c34ec50 · audit A · 53 stars
autopilot SKILL.md skill
kanevry/session-orchestrator · .agents/skills/autopilot/SKILL.md · Use this skill when running an autonomous session-orchestration loop. Chains session-start → session-plan →…
git:20260919.176b605 · audit A · 53 stars
bootstrap SKILL.md skill
kanevry/session-orchestrator · .agents/skills/bootstrap/SKILL.md · Use this skill when scaffolding the minimum repository structure required by session-orchestrator. Invoked…
git:20260919.176b605 · audit A · 53 stars
brainstorm SKILL.md skill
kanevry/session-orchestrator · .agents/skills/brainstorm/SKILL.md · Use when you have a feature idea but the scope or UX is still ambiguous — runs a lightweight Socratic design dialogue…
git:20260919.176b605 · audit A · 53 stars
claude-md-drift-check SKILL.md skill
kanevry/session-orchestrator · .agents/skills/claude-md-drift-check/SKILL.md · Use when detecting drift between CLAUDE.md (or AGENTS.md, the Codex CLI alias) / _meta narrative and live repository…
git:20261003.c34ec50 · audit A · 53 stars
close SKILL.md skill
kanevry/session-orchestrator · .agents/skills/close/SKILL.md · End session with verification, commits, and documentation
git:20260919.176b605 · audit A · 53 stars
convergence-monitoring SKILL.md skill
kanevry/session-orchestrator · .agents/skills/convergence-monitoring/SKILL.md · Monitor iterative improvement loops for convergence. Three signals — shrinking diff, pass-rate plateau, velocity —…
git:20260919.176b605 · audit A · 53 stars
debug SKILL.md skill
kanevry/session-orchestrator · .agents/skills/debug/SKILL.md · Use when encountering any bug, test failure, build break, or unexpected behavior — runs a 4-phase systematic debugging…
git:20260919.176b605 · audit A · 53 stars
deepen SKILL.md skill
kanevry/session-orchestrator · .agents/skills/deepen/SKILL.md · Make a task deeper, not bigger. Use when the user asks for a deeper or more ambitious version of a task (tiefer, geh…
git:20261027.7eb9aed · audit A · 53 stars
discovery SKILL.md skill
kanevry/session-orchestrator · .agents/skills/discovery/SKILL.md · Use this skill when running systematic quality discovery and issue detection. Runs modular probes adapted to the…
git:20260919.176b605 · audit A · 53 stars
dispatcher SKILL.md skill
kanevry/session-orchestrator · .agents/skills/dispatcher/SKILL.md · Use when you want the orchestrator to pick the next repo to work on across your whole portfolio — it enumerates…
git:20260919.176b605 · audit A · 53 stars
docs-orchestrator SKILL.md skill
kanevry/session-orchestrator · .agents/skills/docs-orchestrator/SKILL.md · Use this skill when orchestrating documentation generation and updates within a session. Maps session scope to…
git:20260919.176b605 · audit A · 53 stars

Every file in kanevry/session-orchestrator

Other files named memory-cleanup

memory-cleanup SKILL.md skill
kanevry/session-orchestrator · .codex-plugin/skills/memory-cleanup/SKILL.md · Use this skill when performing manual memory consolidation (Dream-equivalent). Reviews, consolidates, and prunes memory…
git:20260916.3ebf0e9 · audit A · 53 stars
memory-cleanup SKILL.md skill
kanevry/session-orchestrator · .cursor/skills/memory-cleanup/SKILL.md · Use this skill when performing manual memory consolidation (Dream-equivalent). Reviews, consolidates, and prunes memory…
git:20260825.0626387 · audit A · 53 stars
memory-cleanup SKILL.md skill
kanevry/session-orchestrator · .agents/skills/memory-cleanup/SKILL.md · Use this skill when performing manual memory consolidation (Dream-equivalent). Reviews, consolidates, and prunes memory…
git:20260919.176b605 · audit A · 53 stars

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