/ai-brain-starter:diagnose runs instead · from ai-brain-starter
Runs a read-only health check on an AI Brain vault install. Detects missing CLAUDE.md, stale journal indexes, broken hooks, Windows .ps1 encoding issues, and outdated starter repo. Exits with a status code for CI/cron use.
This skill never runs in Claude Code
It ships in ai-brain-starter at skills/, but /ai-brain-starter:diagnose (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub mycelium-hq/ai-brain-starter --plugin ai-brain-starter
{SKILL_DIR}= this skill's own folder (locally: the directory this SKILL.md lives in; a served brain substitutes the real absolute path before you read this). Shared starter files live at the repo root two levels up:{SKILL_DIR}/../... If a path does not resolve, name the missing file and stop — never guess another location.
Tells you whether your second brain is healthy.
Most "Claude is broken" reports trace to one of:
journal-index.json stale or malformed, so insights find nothing.ps1 files lost their UTF-8 BOM, so Windows PowerShell crashes/diagnose checks all of these in ~5 seconds. It writes nothing, sends no network requests beyond a single git fetch, and exits with a status code so it can be wired into CI or cron.
Find the script: {SKILL_DIR}/../../scripts/diagnose.sh (the starter repo root sits two levels above this skill's folder on every install shape).
Run it. Pick the right one for the platform:
Mac / Linux:
bash "{SKILL_DIR}/../../scripts/diagnose.sh"
# or pass an explicit vault:
bash "{SKILL_DIR}/../../scripts/diagnose.sh" "/path/to/vault"
Windows:
pwsh "{SKILL_DIR}/../../scripts/diagnose.ps1"
# or:
pwsh "{SKILL_DIR}/../../scripts/diagnose.ps1" -Vault "C:\path\to\vault"
By default it uses $VAULT_PATH if set, else the current directory.
Read the output to the user in plain language. Don't dump the raw report unless they ask. Translate:
| # | Check | If FAIL | If WARN |
|---|---|---|---|
| 1 | CLAUDE.md present + has Vault Map | Re-run /setup-brain Phase 4 | Add the Vault Map section by hand |
| 2 | ⚙️ Meta/ + scripts/ + rules/ present | Re-run /setup-brain Phase 3 | Create the missing subfolder |
| 3 | ai-brain-starter + daily-journal skills installed | Re-run bootstrap | A missing daily-journal is usually a STALLED INSTALL, not a missing skill. That skill is built in Phase 10a, so its absence means setup stopped before Phase 10 and every later phase never ran. Do not tell them to install one skill — that leaves the rest of the install missing. Point them at docs/RESUME_INSTALL.md and offer to resume. Only treat it as a genuinely missing skill if the vault also shows Phase 18+ artifacts (⚙️ Meta/journal-index.json), which would mean the install DID get past 10 |
| 4 | Hooks registered + graph-context-hook parses | Phase 5 wires hooks; bash -n the script | - |
| 5 | journal-index.json valid + fresh | Delete and rebuild via build-journal-index.py | Re-run /weekly to refresh |
| 6 | git, python3 (jq optional) on PATH | brew install / winget install | Optional tools missing |
| 7 | Vault is a git repo | - | Recommend git init for snapshot history |
| 8 | All .ps1 have BOM, no em dashes, parse clean | Fix the parser error | Add BOM and strip em dashes (see SKILL.md notes) |
| 9 | MCP config valid JSON | Fix the JSON | No MCPs registered (fine if intentional) |
| 10 | ai-brain-starter up to date with origin/main | Re-clone | git pull in the starter root ({SKILL_DIR}/../..) |
| 10b | No scheduled-task name collides with a skill; cron-only tasks _-prefixed | - | Rename per docs/MAINTENANCE.md |
| 11 | Vault on a local disk, not a consumer cloud-sync root | Move it local (docs/CLOUD_SYNC.md) | Could not evaluate the path |
| 12 | Vault has an off-machine backup | Set one up: bash scripts/vault-backup.sh setup (docs/BACKUP.md) | Backup configured but no snapshot yet |
| 13 | No repeated Obsidian renderer crashes (macOS; skips elsewhere) | - | Heavy indexer likely OOM-ing the renderer on a large vault: restricted mode -> Dataview only -> add others one at a time (see the obsidian-plugins rule, "Large-vault plugin posture") |
| 14b | Ingest connectors still producing data (the silent-empty 0-vs-0 gap) | - | A connector exited 0 but returned 0 items (a vendor changed a surface): check its auth/permissions, re-run its ingest skill, confirm it pulls >0 items |
| 17 | No git worktree living inside the Obsidian-watched vault tree | - | The Desktop per-session worktree checkbox dropped a checkout under .claude/worktrees/ inside the vault -> renderer OOM/crash. Relocation is dead; the flag does NOT gate it. Relaunch the vault PLAIN with the worktree box UNCHECKED (cd <vault> && claude). See docs/VAULT_WORKTREE_MELT.md |
docs/RESUME_INSTALL.md and resume from where the vault says they stopped).claude/worktrees folder full of copies of my vault" (likely a worktree-on-vault checkout - check 17; relaunch PLAIN with the worktree box unchecked)Do NOT use /diagnose as an email-capture surface. If ~/.claude/.ai-brain-starter-email-on-file is missing, that is fine and never a finding — the email is optional, and the only places it is ever asked are the setup interview (Phase 24.4) and the once-per-update post-pull nudge. Never tell the user to fetch or paste a token.
/diagnose output into a gh issue or anywhere public — it includes home directory paths.37 skills in this plugin
/backfill-journal-body-contextUse when the user says /backfill-journal-body-context, wants existing daily journal entries enriched with body data retroactively (HRV, sleep, recovery, cycle phase, labs), says 'backfill my journals with health', wants Apple Health / Oura / Fitbit / Whoop history paired with past journals, or just ran /health-setup with a historical import. Not for brand-new entries (daily-journal covers those) or for editing journal text./cierre-de-llamadaUse when a SALES or CLIENT call just ended and the follow-up needs to be produced from its transcript. Triggers: /cierre, "close out this call", "acabo de tener una llamada", "arma el seguimiento", "what's the follow-up on this call", "qué sigue con este cliente", or the user pastes a sales-call transcript. Produces seven blocks: CRM summary, deal state, tasks, follow-up email draft, reminder, note to the sales lead, and what worked / what did not. NOT for internal team meetings (use meeting-todos) and NOT for personal notes (use note-todos)./coachUse when the user says /coach (today, week, month, profile, log), asks what to do today for training, asks for a workout, weekly training plan, or longevity plan, wants to log a finished workout or check lift progression (PR, plateau, deload), or a scheduled morning task fires to drop today's workout into the calendar. NOT for importing health data (use ingest-health/health-setup), raw biometric queries without a prescription, or emotional/life coaching (use coaching)./coachingUse when the user wants to process a hard conversation, a decision they're second-guessing, or accumulated friction with a person (too big for a daily journal), wants panel takes that update with their corrections, or wants growth on a theme tracked over weeks. Triggers: /coaching, "coach me through this", "help me process this". NOT fitness coaching (/coach), daily entries (/journal), weekly/monthly reviews (/weekly, /monthly), or cross-session pattern detection (/patterns)./daily-journalUse when the user wants to journal, do a daily or end-of-day check-in, reflect on or vent about their day, brain-dump feelings, log what happened today, or says /journal. Also fires for quick one-line captures and a second session the same day (resumes that day's entry). Not for meeting notes (use meeting-todos), morning priorities (use rise), weekly/monthly reviews (use insights), or cross-entry pattern analysis (use patterns)./deconstructUse before fixing anything: a bug, an error, a failing check, a regression, "it's broken", "it doesn't work", "fix this", or a problem that came back after an earlier fix. Run problem mode on the PROBLEM before any code. Also use when a decision or strategy rests on unexamined convention ("that's how it's done", "best practice", "everyone does it this way", copying a competitor), on a pricing model, business model, roadmap, hiring process or career path the user can't justify from scratch, on any high-stakes decision before commit, or when the user types /deconstruct or asks to question assumptions or reason from first principles.Other plugins' skills for the same job