Skip to content
Skills Library
AI & agents · Review & audit

clean-claude-memory

/clean-claude-memory

Audit, prune, rewrite, or relocate Claude Code project memory. Use when the user asks to review, clean, update, or remove Claude memory files, eliminate stale project memories, or rebuild MEMORY.md.

Author
Heapy ↗
Repository
kortex ↗
Licence
Apache-2.0
Last repository change
22.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 22.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Audit, prune, rewrite, or relocate Claude Code project memory. Use when the user asks to review, clean, update, or remove Claude memory files, eliminate stale project memories, or rebuild MEMORY.md.

Original author description

Audit, prune, rewrite, or relocate Claude Code project memory. Use when the user asks to review, clean, update, or remove Claude memory files, eliminate stale project memories, or rebuild MEMORY.md.

How it works

  1. Workflow
  2. Index
  3. Validation
Original SKILL.md headings · 75 lines, 491 words
SKILL.md preview
---
name: clean-claude-memory
description: Audit, prune, rewrite, or relocate Claude Code project memory. Use when the user asks to review, clean, update, or remove Claude memory files, eliminate stale project memories, or rebuild MEMORY.md.
disable-model-invocation: true
---

# Clean Claude Memory

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:

- repository `CLAUDE.md` or `AGENTS.md`;
- global `~/.claude/CLAUDE.md`;
- memories belonging to another project.

## Workflow

1. Resolve the current project's memory directory.
2. Read `MEMORY.md` and inventory every sibling memory file.
3. Review topic files one at a time. For each file:
   - read it completely;
   - explain what it preserves;
   - verify its claims against current authoritative sources;
   - identify stale facts, duplication, historical narration, and transient paths, versions, plans, or commands;
   - recommend one action;
   - ask the user one direct question and wait before reviewing the next 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:

- code invariant or non-obvious trade-off → nearby comment or test;
- actionable future work → project task or issue;
- durable project contract → project documentation;
- reusable agent workflow → skill.

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.

## Index

Process `MEMORY.md` last.

Rebuild it from the final directory state:

- link only to surviving topic files;
- use one short factual description per link;
- do not duplicate the child file's body;
- remove stale and broken links;
- if no topic files remain, ask whether `MEMORY.md` should be empty or removed.

## Validation

After applying the decisions:

- list the directory and confirm the exact expected files;
- verify every `MEMORY.md` link resolves;
- verify moved information exists in its new home;
- confirm unrelated global or project instructions were untouched;
- report what was kept, rewritten, moved, and deleted;
- state whether deletions are recoverable;
- validate any repository code or documentation changed during a move.

Memory files are outside the repository and may require separate write approval. Never commit unrelated repository changes without the user's instruction.
Files in this package (2)
  • SKILL.md 3 KB
  • agents/openai.yaml 1 KB

Versions

The database has no other skills named clean-claude-memory.

Database snapshot: 13.11.2026 · package version ae3ec5402fd7 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 3 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90sift
    Review and prune Claude Code's auto-memory entries with the user, moving standing rules into CLAUDE.md. Use when the user asks to clean up, prune, review, or audit memory, or when better-memory says instructions wait for review.
  • 90memory-clean
    Use when a human asks to audit memory or find stale or duplicate memories. Not for writing new memories: use memory-update.
  • 100memory
    Manage the persistent memory layer in .claude/memory/ — list, search, save, update, delete, dedupe. Use to inspect what memories exist, write a new one, or clean up stale entries.
  • 98knowledge
    Browse, search, and prune what the framework's agents remember across sessions (native agent memory under ~/.claude/agent-memory/, plus project Serena memories), and detect and migrate orphaned bare-named memory directories — use when asked "what do the agents remember", "browse…
  • 100audit-memories
    Audit an AI agent's saved memories — inventory them by type and age, flag the ones that look stale, contradictory, redundant, or orphaned (verified against the current repo), then walk the user through keep/update/merge/delete decisions one at a time. Default target is Claude…
  • 90memory-clean
    Use when a human asks to audit memory, find stale or duplicate memories, or needs tidy''s ICM-state audit. Not for writing new memories: use memory-update.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.