claude-code-workspace-upkeep/.claude/skills/upkeep-memory-tidy/SKILL.md
SHA-256 7e382929de62589f844a334ac1b0cfb16e930d7c3ff1313a8dc18d5ba4497007 · 3,495 bytes
Skill: its instructions load when the assistant decides the skill applies.
---
name: upkeep-memory-tidy
description: Report-only consolidation plan for a folder of memory or project notes (such as Claude Code's memory files). Finds competing "start here" notes, stale or contradictory entries, relative dates and finished work crowding the index, and proposes a shorter index and archive moves. Changes nothing without approval. Use when the notes index is long or sessions keep starting from outdated notes.
---
# Memory tidy (report only)
A notes folder that every session reads becomes harmful when it's wrong. Two failure modes cause most of the damage:
1. **Competing entry points.** Several notes say "start here" or "current status", each with a live-looking commit or
next step, and only one is current. A new session picks the wrong one and acts on spent instructions.
2. **Finished work crowding the index.** Closed work stays listed alongside live work until the index is too long to
read, and the live items get skimmed past.
**This skill changes nothing by default.** It produces a plan. The user applies it, or approves specific edits.
## Steps
1. **Locate the folder.** Ask the user which folder holds the notes and which file is the index (for example a
`MEMORY.md` that lists the other notes). Read the index and every note it links to, plus notes in the folder that
aren't linked.
2. **Recommend a backup first.** These folders often aren't under version control, so there's no undo. Tell the user
to copy the folder somewhere safe before applying anything. Don't proceed to applying edits until they confirm.
3. **Find competing entry points.** List every note that claims to be the current status or starting point for the
same project. Decide (with evidence: dates, commits, the latest decisions) which one is current. For the others,
propose marking them **SUPERSEDED, see <current note>** in both the body and any summary line the index shows,
because the summary is often what gets read.
4. **Find stale and contradictory notes.** Notes whose facts conflict with newer notes, or describe things that are
no longer true. Propose a correction or a "superseded" mark. Never silently delete a note's content.
5. **Fix relative dates.** "Yesterday", "next week" and "last Tuesday" are wrong a week later. Propose absolute dates,
inferred from the note's own date where possible. Mark "date unknown" otherwise.
6. **Collapse finished work.** Group closed, finished threads into a single archive note that keeps each one's
one-line summary, the standing decisions it left behind, and any items still open. The index then links to the
archive once instead of listing every closed thread. Move nothing to the trash.
7. **Propose the new index.** Under about 200 lines, one line per note, live work first, the archive last.
8. **Write the plan** to `upkeep/memory-tidy-YYYY-MM-DD.md` in the current project: findings by type, each proposed
edit (note, change, reason), the proposed index in full, and expected line counts before and after.
9. **Stop and ask.** Apply only the edits the user approves, after they've confirmed the backup. If the notes folder
is outside the current project, give the user the exact edits to make themselves instead.
## Rules
- Shorten the index, not the history: archived detail stays in the archive note.
- When unsure which note is current, say so and ask. Don't pick silently.
- Don't copy private details from notes into the plan beyond what's needed to identify a note.
Shown as plain text. Invisible or direction-changing characters are displayed as <U+XXXX>.