·memory-defrag
</>

memory-defrag

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.

30Installs·5Trend·@basicmachines-co

Installation

$npx skills add https://github.com/basicmachines-co/basic-memory-skills --skill memory-defrag

How to Install memory-defrag

Quickly install memory-defrag AI skill to your development environment via command line

  1. Open Terminal: Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Run Installation Command: Copy and run this command: npx skills add https://github.com/basicmachines-co/basic-memory-skills --skill memory-defrag
  3. Verify Installation: Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Source: basicmachines-co/basic-memory-skills.

SKILL.md

View raw

Reorganize memory files for clarity, efficiency, and relevance. Like filesystem defragmentation but for knowledge.

For each file, note: line count, last modified, topic coverage, staleness.

| 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 |

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. Source: basicmachines-co/basic-memory-skills.

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/basicmachines-co/basic-memory-skills --skill memory-defrag
Category
</>Dev Tools
Verified
First Seen
2026-02-24
Updated
2026-03-10

Browse more skills from basicmachines-co/basic-memory-skills

Quick answers

What is memory-defrag?

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. Source: basicmachines-co/basic-memory-skills.

How do I install memory-defrag?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/basicmachines-co/basic-memory-skills --skill memory-defrag Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Where is the source repository?

https://github.com/basicmachines-co/basic-memory-skills