basic-memory-pi-setup
Set up Basic Memory for a Pi workspace. Use when Basic Memory is not configured, /bm-status…
Defragment and reorganize agent memory files: split bloated files, merge duplicates, remove stale information, and restructure the memory hierarchy. Use when memory files have grown unwieldy, contain redundancies, or need reorganization. Run periodically (weekly) or on demand.
$ npx -y skills add basicmachines-co/basic-memory --skill memory-defrag --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/memory-defragContext preview
The summary Claude sees to decide when to auto-load this skill.
Defragment and reorganize agent memory files: split bloated files, merge duplicates, remove stale information, and restructure the memory hierarchy. Use when memory files have grown unwieldy, contain redundancies, or need reorganization. Run periodically (weekly) or on demand.
name: memory-defrag description: "Defragment and reorganize agent memory files: split bloated files, merge duplicates, remove stale information, and restructure the memory hierarchy. Use when memory files have grown unwieldy, contain redundancies, or need reorganization. Run periodically (weekly) or on demand."
Reorganize memory files for clarity, efficiency, and relevance. Like filesystem defragmentation but for knowledge.
Inventory all memory files:
MEMORY.md — long-term memory memory/ — daily notes, tasks, topical files memory/tasks/ — active and completed tasks
For each file, note: line count, last modified, topic coverage, staleness.
Look for these common issues:
| Problem | Signal | Fix | |---------|--------|-----| | **Bloated file** | >300 lines, covers many topics | Split into focused files | | **Duplicate info** | Same fact in multiple places | Consolidate to one location | | **Stale entries** | References to completed work, old dates, resolved issues | Remove or archive | | **Orphan files** | Files in memory/ never referenced or updated | Review, merge, or remove | | **Inconsistencies** | Contradictory information across files | Resolve to ground truth | | **Poor organization** | Related info scattered across files | Restructure by topic |
Before making edits, write a brief plan:
## Defrag Plan - [ ] Split MEMORY.md "Key People" section → memory/people.md - [ ] Remove completed tasks past the retention window from memory/tasks/ - [ ] Merge memory/bm-marketing-ideas.md into memory/competitive/ - [ ] Update stale project status entries in MEMORY.md
Apply changes one at a time:
After changes:
## Memory Defrag (HH:MM) - Files reviewed: N - Split: [list] - Merged: [list] - Pruned: [list] - Net result: X files, Y total lines (was Z lines)
AI conversations that actually remember. Never re-explain your project to your AI again. Join our Discord: https://discord.gg/tyvKNccgqN
Repo: basicmachines-co/basic-memory
Set up Basic Memory for a Pi workspace. Use when Basic Memory is not configured, /bm-status…
Use Basic Memory from Pi for durable continuity. Capture checkpoints with bm_capture, recall…
Guide Basic Memory setup in Tau. Use when a user wants to install or configure the Tau memory…
Save a deliberate work checkpoint to Basic Memory with the story, changed files,…
Capture a durable engineering decision in Basic Memory with rationale, alternatives,…
Orient Claude from Basic Memory before substantial repo work by reading active tasks, open…