From skills
Periodic curator skill for a Brain knowledge graph. Audits notes under docs/** against quality thresholds and scope-evaluation heuristics, classifies them into split / merge / stale / structural-fix candidates, then delegates restructuring to the decompose and recompose primitive skills (and to native delete for stale entries). Supports interactive mode (user confirms each candidate) and report-only mode for cron scheduling.
How this skill is triggered — by the user, by Claude, or both
Slash command
/skills:defragThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
The defrag skill curates a Brain knowledge graph by auditing notes against
The defrag skill curates a Brain knowledge graph by auditing notes against quality thresholds and surfacing candidates for restructuring. It never modifies note content directly; restructuring is delegated to the decompose and recompose primitive skills, which preserve content character-for-character via SHA-256 hash validation.
defrag, defragment, curate memories, audit notes, knowledge-graph audit.
These names are distinct from the existing memory-defrag skill in
~/Dev/basic-memory-skills. Both can be installed simultaneously without
collision.
bun skills/defrag/scripts/defrag.ts # interactive
bun skills/defrag/scripts/defrag.ts --report-only # cron / non-interactive
bun skills/defrag/scripts/defrag.ts --staleness 90 # custom staleness threshold (days)
bun skills/defrag/scripts/defrag.ts --project-root /path/to/project
bun skills/defrag/scripts/defrag.ts --basic-memory # treat as basic-memory context
--report-only). Runs the audit and writes the report to
defrag/reports/defrag-YYYY-MM-DD.md. Exits with code 0 if candidates were
found, code 2 if the graph is clean. No delegation; safe for cron.docs/**. Read each
note's frontmatter and body.DONE / DEPRECATED → stale-candidatedelete_note with audit logging.edit_note to insert H3 grouping
headers; content is otherwise untouched.If decompose or recompose fails for a candidate (hash mismatch, validation error, user rejection at sub-prompt level), defrag logs the failure and continues with the remaining candidates. The cycle never aborts on a single candidate failure.
defrag coexists with the basic-memory memory-defrag skill. They have
distinct names; Claude Code resolves them by name with no collision.
install.sh only creates symlinks for skills owned by this project and
never touches ~/Dev/basic-memory-skills/.
Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
npx claudepluginhub acmelabs-15/skills --plugin skills