Skip to content
Skills Library
AI & agents · Automation

memory-prune

/memory-prune

Manual reviewable prune of stale memory entries. Lists project_* entries older than 30 days with content preview; Frank decides per-entry [keep | archive | pin]. Keeps MEMORY.md under the auto-load 200-line truncation. Use when MEMORY.md exceeds 180 lines or session-end after a heavy work week.

Licence
MIT
Last repository change
26.10.2026

Assessment and security

100/ 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.
Content35 / 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
1
HTML comments
0
URLs in SKILL.md
0
Deprecation

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

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: prune.ps1

What it does and when to use it

Manual reviewable prune of stale memory entries. Lists project_* entries older than 30 days with content preview; Frank decides per-entry [keep | archive | pin]. Keeps MEMORY.md under the auto-load 200-line truncation. Use when MEMORY.md exceeds 180 lines or session-end after a heavy work week.

Original author description

Manual reviewable prune of stale memory entries. Lists project_* entries older than 30 days with content preview; Frank decides per-entry [keep | archive | pin]. Keeps MEMORY.md under the auto-load 200-line truncation. Use when MEMORY.md exceeds 180 lines or session-end after a heavy work week.

How it works

  1. Philosophy
  2. How it works
  3. Heuristic recommendations
  4. Invocation
  5. What this skill does NOT do
  6. Cadence recommendation
  7. Decay-when
Original SKILL.md headings · 68 lines, 395 words
SKILL.md preview
---
name: memory-prune
description: Manual reviewable prune of stale memory entries. Lists project_* entries older than 30 days with content preview; Frank decides per-entry [keep | archive | pin]. Keeps MEMORY.md under the auto-load 200-line truncation. Use when MEMORY.md exceeds 180 lines or session-end after a heavy work week.
---

# Memory Prune — assisted, never autonomous

The memory system at `~/.claude/projects/C--Users-frank-Arcanea/memory/` accumulates ~2-3 entries/day. Once `MEMORY.md` exceeds ~200 lines the auto-loader truncates it and entries silently disappear from future-session context. This skill prevents that without auto-deleting things that might still matter.

## Philosophy

- **Never auto-delete.** Auto-decay is silent and corrupts the wisdom layer of memory.
- **Bias toward keeping `feedback`, `decision`, `reference`, `user`** — these are durable.
- **Bias toward pruning `project_*`** — these are session snapshots; old ones rarely re-load.
- **Always show content before deciding.** A 30-day-old project entry might be the one foundational decision you keep needing.

## How it works

1. Walks `~/.claude/projects/C--Users-frank-Arcanea/memory/` for `.md` files
2. Filters to `project_*.md` last-modified > N days ago (default 30)
3. For each candidate prints:
   - Filename + age in days
   - First 200 chars of body
   - Recommended action based on heuristics (see below)
4. Prompts Frank: `[k]eep | [a]rchive | [p]in | [s]kip`
5. Executes:
   - **archive** → move to `memory/archive/YYYY-MM/`, remove from `MEMORY.md`
   - **pin** → rename to `<original>_pinned.md`, ensure indexed in `MEMORY.md`
   - **keep** → no change (will resurface next prune)
   - **skip** → no change, no resurface this session

## Heuristic recommendations

| Pattern | Recommendation |
|---|---|
| `project_*_session_*.md` (session log) | archive — these are ephemeral by nature |
| `project_pp_audit_*.md` (PP audits) | archive after 60 days |
| `project_*_strategy.md` (strategy docs) | keep or pin — usually evergreen |
| `project_overnight_*.md` | archive — overnight session snapshots |
| `project_mega_session_*.md` | archive — date-bound sessions |
| `project_*_2026_03_*` | archive after 90 days |
| Any with content > 4 KB explaining a decision rationale | suggest pin |

## Invocation

Run via PowerShell in Windows:

```powershell
powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE/.claude/skills/memory-prune/prune.ps1"
```

Or set up an alias in your shell:

```powershell
function prune-memory { & "$env:USERPROFILE/.claude/skills/memory-prune/prune.ps1" }
```

## What this skill does NOT do

- Does NOT delete files outright (only moves to archive/)
- Does NOT touch `feedback_*`, `decision_*`, `reference_*`, `user_*`
- Does NOT modify entries you skip
- Does NOT auto-trigger; only runs on explicit invocation

## Cadence recommendation

Run **once per month** or whenever `MEMORY.md` exceeds 180 lines (check via `wc -l MEMORY.md`).

## Decay-when

This skill itself decays only if memory architecture migrates (e.g., to a vector DB). At that point rebuild against the new substrate.
Files in this package (2)
  • SKILL.md 3 KB
  • prune.ps1 5 KB

Versions

The database has no other skills named memory-prune.

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

Downloads in the last 30 days: 2 · 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.
  • 100cache
    Use when the user wants to view, search, add, edit, prune, archive, or clear hyperflow memory entries — phrases like "show memory", "search memory for X", "clear memory", "what does hyperflow remember about Y", or any `hyperflow: memory *` invocation.
  • 90clean-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.
  • 100consolidate
    Consolidates project memory across harness and .memory/ with theme clustering, practical-expiry prune, ground-truth verify, and an adversarial second pass. Use when the user runs /memory:consolidate, asks to tidy/dedupe/prune memory, or reports redundant or stale memories. Also…
  • 81memory-cleanup
    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,…
  • 81memory-cleanup
    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,…

Feedback and reports

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