memory-prune

Selectively remove low-value, outdated, or irrelevant nodes from the semantic tree to maintain quality and performance.

Content Preview
---
tools:
  - read
  - write
  - edit
  - bash
arguments: $PRUNE_CRITERIA
---

# Memory Tree Pruning

Selectively remove low-value, outdated, or irrelevant nodes from the semantic tree to maintain quality and performance.

Based on the WFGY project: https://github.com/onestardao/WFGY

## Instructions

1. **Define Pruning Criteria**
   - Parse criteria from "$PRUNE_CRITERIA":
     * `old`: Nodes older than threshold
     * `low-value`: Low confidence/relevance
     * `dead-ends`: No children, lo
How to Use

Recommended: Install to project (local)

mkdir -p .claude/skills
curl -o .claude/skills/memory-prune.md \
  https://raw.githubusercontent.com/qdhenry/Claude-Command-Suite/main/.claude/commands/memory/memory-prune.md

Skill is scoped to this project only. Add .claude/skills/ to your .gitignoreif you don't want to commit it.

Alternative: Clone full repo

git clone https://github.com/qdhenry/Claude-Command-Suite

Then reference at .claude/commands/memory/memory-prune.md

Related Skills