memory-compress

Compress the semantic tree by merging similar nodes and removing redundancy while preserving essential information.

Content Preview
---
tools:
  - read
  - write
  - edit
  - bash
---

# Memory Compression

Compress the semantic tree by merging similar nodes and removing redundancy while preserving essential information.

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

## Instructions

1. **Analyze Tree for Compression**
   - Load active tree from `.wfgy/trees/active_tree.json`
   - Calculate tree metrics:
     * Total nodes
     * Average ΔS between nodes
     * Redundancy score
     * Cluster density
   - Id
How to Use

Recommended: Install to project (local)

mkdir -p .claude/skills
curl -o .claude/skills/memory-compress.md \
  https://raw.githubusercontent.com/qdhenry/Claude-Command-Suite/main/.claude/commands/memory/memory-compress.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-compress.md

Related Skills