doctor

doctor is a skill for Claude Code from onebrain-ai/onebrain. It costs 90 tokens per session (6,134 once invoked), scanned A, original, Apache-2.0.

A diagnostic check for the health of a OneBrain vault and its plugin configuration. It checks settings, folder structure, integrations, search state, broken links, orphan notes, stale memory files, and inbox backlog.

In plain words
What is it for?
Use it for a full system check or to inspect only vault content or configuration. The optional fix mode can repair supported safe issues.
Why use it?
It helps identify why the vault or plugin may be incomplete or behaving unexpectedly. It can also apply safe fixes when explicitly requested.

Skill for Claude Code

Written for Claude Code: PostToolUse hook event. Also seen: reads .claude/ paths; mentions Claude Code.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/keng/Library/Mobile.

Part of the onebrain plugin — 32 skills, 5 agents, 2 hooks shipped together

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add onebrain-ai/onebrain
Claude Code
/plugin install onebrain

Made for: Claude Code.

Or install onebrain, the plugin that ships this one along with the rest of its 32 skills, 5 agents, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for doctor

README.md
[![agentmods](https://agentmods.dev/badge/skills/onebrain-ai/onebrain/doctor.svg)](https://agentmods.dev/skills/onebrain-ai/onebrain/doctor)
Your own site
<a href="https://agentmods.dev/skills/onebrain-ai/onebrain/doctor"><img src="https://agentmods.dev/badge/skills/onebrain-ai/onebrain/doctor.svg" alt="Measured on agentmods" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,134 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00090 $0.06134
Opus 5 $0.00045 $0.03067
Sonnet 5 $0.00018 $0.01227
Haiku 4.5 $0.00009 $0.00613

Measured 6d ago against content hash 0ff7ca001e6d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

doctor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/plugins/onebrain/skills/doctor/SKILL.md · 260 lines

How it starts

The opening of the file, as written. The whole thing — 260 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Doctor

Diagnose the health of your OneBrain vault and plugin configuration. Inspired by brew doctor and npm doctor.

Usage:

  • /doctor — full check (vault + config + memory)
  • /doctor --vault — vault content checks only (skips CLI doctor)
  • /doctor --config — plugin config + CLI doctor only (skips vault content)
  • /doctor --fix — auto-fix safe issues (CLI fix recipes + skill fixes)

Flag detection: Determine active flags from the user's message. --vault = user mentions vault-only or content health; --config = user mentions config or plugin check; --fix = user explicitly asks to fix or auto-fix. Default (no flags) = run all checks.

Two-source architecture (post-v3.0.0 GA):

  • CLI doctor (onebrain doctor --json) handles the built-in checks, grouped into four sections: Config (onebrain.yml, onebrain.yml-keys, vault-config-migration, legacy-qmd-collection), Vault structure (folders, plugin-files, plugin-cache), Integration (settings-hooks, claude-settings), Index & state (orphan-checkpoints, search). Rust-native, single subprocess call, structured JSON output. (search replaced the v3.3 qmd-embeddings probe; legacy-qmd-collection migrates a top-level qmd_collectionsearch.collection.)
  • Skill checks handle vault-content + state-machine checks the CLI doesn't cover: broken wikilinks, orphan notes, stale memory/ files, MEMORY.md size, inbox backlog, log folder size, scheduler health, pause-thread state, memory health.

The skill merges both into one unified report.


Step 1: Read onebrain.yml

Read onebrain.yml. If it's missing → ⛔ onebrain.yml not found — OneBrain may not be configured correctly. Stop.

Resolve folder variables ([inbox_folder], [projects_folder], etc.) from onebrain.yml or defaults.


Step 2a: Run CLI doctor (skip if --vault flag)

Run onebrain doctor --json (or onebrain doctor --fix --json if --fix is active). Parse the JSON envelope:

{
  "ok": true|false,
  "summary": {"total": N, "errors": N, "warnings": N, "passing": N},
  "checks": [
    {"check": "<name>", "status": "ok|warn|error", "message": "...", "details": ["..."], "hint": "..."}
  ],
  "fix": [
    {"check": "<name>", "outcome": "fixed|partial|failed|manual", "message": "..."}
  ]
}

Read the full file on GitHub · 260 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 260 lines · 90 tokens per session scan A 0ff7ca001e6d

Subscribe to this mod's changes

doctor is a skill published in the GitHub repository onebrain-ai/onebrain (26 stars, last pushed 8d ago), licensed Apache-2.0. It adds 90 tokens to every session and 6,134 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories