/matts-second-brain:hygiene [--apply] [--category standards|decisions|lessons|apps|reviews|drafts]from matts-second-brain
Periodic brain hygiene: dedupe near-duplicate notes, flag stale file citations and contradictions, archive long-unused notes, and reindex. Use when the user says 'brain hygiene', 'consolidate the brain', 'clean up duplicate notes', 'find stale notes', or after a long burst of writing. Opt-in and dry-run by default.
Ships in matts-second-brain. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Periodic consolidation so the brain stays trustworthy as it grows. Opt-in (not
auto-run; the nightly maintenance job may also invoke this). Dry-run by default —
report findings and propose changes, and only write when the user confirms or --apply
is passed. Never delete; archive instead.
Call brain_stats. Report totals by category and recent growth; note any category
ballooning or going stale.
Call brain_check_citations. For each flagged note, read it and decide:
brain_update with the corrected pathFor each category (Standards first), use brain_recall(category) and
brain_search_semantic to find notes covering the same ground. Propose merging each
pair into one canonical note: brain_update the survivor with the union of content,
then supersede the others with a reason. Present pairs for confirmation — never
auto-merge. (brain_remember already blocks new near-duplicates at write time; this
cleans up ones that predate that.)
Where two notes disagree, or a note contradicts current code (verify with Grep/Read
per the _discipline rule), surface it and propose the correction.
Notes unmodified for 6+ months that reference deprecated systems: propose archiving
(tag #archived or move to Drafts). Do not delete.
After any writes, call brain_sync_srag so semantic search reflects the changes.
A concise report: counts, proposed merges, stale citations, archive candidates. In
dry-run nothing is written; with --apply (or an explicit user yes) execute only the
confirmed changes, each as an auditable brain_update.
What SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/_disciplineThe behavioural rules Claude follows when matts-second-brain is installed. Loaded automatically — defines how to consult and write back to the brain. Always invoked at session start. Skip only if the user has explicitly disabled second-brain./installSet up matts-second-brain end-to-end on this Claude instance: detect or install Trilium, prompt for an ETAPI token, register the MCP server, seed the brain taxonomy, optionally scan existing transcripts for inferable standards. Use when the user says things like 'set up second brain', 'install matts-second-brain', 'wire up Trilium memory', 'connect Claude to my notes'./maintenanceManage the unattended nightly brain maintenance job (scan recent transcripts, persist durable knowledge, dedupe, reindex). Use when the user says 'set up brain maintenance', 'schedule brain consolidation', 'run brain maintenance now', or wants to check/disable it. Subcommands: install, status, run, dry-run, uninstall, test.Other plugins' skills for the same job
matts-second-brain@wrxck-claude-plugins is listed by wrxck/claude-plugins — review the source before installing
npx claudepluginhub wrxck/claude-plugins --plugin matts-second-brain