Runs maintenance on your agent's memory files when they get messy. Splits bloated files over 300 lines into focused topics, merges duplicates, prunes stale task references and outdated project statuses, and cleans up directory structures. The guide suggests running it weekly or when MEMORY.md hits 500 lines. Nice touch that it preserves raw daily notes as an audit trail and includes a planning step before making changes. Basically defragmentation for knowledge files. If you're working with agents that accumulate memory over time, this keeps things from turning into an unsearchable mess.
npx skills add https://github.com/basicmachines-co/basic-memory-skills --skill memory-defrag