/heapy:clean-claude-memoryfrom heapy
Audits, prunes, rewrites, or relocates Claude Code project memory files. Reviews MEMORY.md and topic files for stale facts, duplication, and historical narration, then recommends keep, rewrite, delete, or move actions.
Ships in heapy. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Claude Code stores project-scoped durable notes outside the repository:
~/.claude/projects/<encoded-absolute-project-path>/memory/
MEMORY.md is the index. Other Markdown files are topic memories. Memory is a hint for future sessions, not an authoritative source; verify every claim against current code, docs, configuration, tools, and project state.
Treat recorded plans as historical artifacts only, not as documentation or a source of truth. Never use them to implement other features or as authoritative evidence about current behavior; verify relevant claims against current code, tests, configuration, requirements, and project documentation.
Do not include these unless the user explicitly expands the scope:
CLAUDE.md or AGENTS.md;~/.claude/CLAUDE.md;MEMORY.md and inventory every sibling memory file.Use these actions:
| Action | Use when |
|---|---|
| Keep | Unique, durable intent or preference remains accurate and useful. |
| Rewrite | A valuable core remains, but the file contains stale or excessive detail. |
| Delete | The content is obvious, obsolete, historical, or already authoritative elsewhere. |
| Move | The information belongs in code, tests, docs, a backlog task, or a reusable skill. |
For Move, create and verify the new home before deleting the memory:
Do not copy stale claims into a new location merely to preserve them.
Unless the user explicitly asks otherwise, record decisions during the review and apply them after every topic file has been considered. This avoids leaving MEMORY.md with temporary broken links.
Process MEMORY.md last.
Rebuild it from the final directory state:
MEMORY.md should be empty or removed.After applying the decisions:
MEMORY.md link resolves;Memory files are outside the repository and may require separate write approval. Never commit unrelated repository changes without the user's instruction.
What SKILL.md sets; muted values are Claude Code's defaults
9 skills in this plugin
/amnesiaUse when the user returns to a session and needs to be reoriented, including requests such as "amnesia", "what did I miss", "recap the session", "where were we", "catch me up", "what happened while I was away", or "what was I doing". Reports when the session started, the last user message verbatim, what happened since it, and any earlier changes still worth knowing./call-codexUse when the codex CLI should be driven from the agent — as a reviewer giving a second, independent opinion ("ask codex", "call codex", "codex review", "get a second opinion", "challenge this finding"), or as an executor doing a scoped task in the repository ("have codex do this", "delegate this to codex", "let codex implement it"). Covers which flags codex actually understands, how much access each mode needs, how to write a prompt that produces verdicts instead of agreement, and the integration traps that waste a run./clean-comments-and-guidanceOther plugins' skills for the same job
npx claudepluginhub heapy/kortex --plugin heapy