doctor

doctor is a skill for Claude Code from Yuno15-bb/c-brain. It costs 59 tokens per session (292 once invoked), scanned A, original, Apache-2.0.

A diagnostic skill for checking the health of a C Brain installation and its trunk, the stored collection of notes. It checks both the engine’s wiring and the coherence of the notes.

In plain words
What is it for?
Use it when recall returns nothing, notes are not being saved, or C Brain is reported as broken. It runs the installation self-test and the trunk doctor check before important work.
Why use it?
It helps distinguish installation failures from note problems or search-query problems. It can reveal dead links, notes missing from the memory index, broken hooks, and stale state.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the c-brain plugin — 3 skills, 8 agents, 5 hooks shipped together

Good fit Use it when recall returns nothing, notes are not being saved, or C Brain is reported as broken. It runs the installation self-test and the trunk doctor check before important work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yuno15-bb/c-brain/doctor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Yuno15-bb/c-brain --skill doctor
Clone the repo
git clone --depth 1 https://github.com/Yuno15-bb/c-brain

Made for: Claude Code.

Or install c-brain, the plugin that ships this one along with the rest of its 3 skills, 8 agents, 5 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/yuno15-bb/c-brain/doctor/github.svg)](https://agentmods.dev/skills/yuno15-bb/c-brain/doctor)
Your own site
<a href="https://agentmods.dev/skills/yuno15-bb/c-brain/doctor"><img src="https://agentmods.dev/badge/skills/yuno15-bb/c-brain/doctor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for doctor

Your own site · 80×15
<a href="https://agentmods.dev/skills/yuno15-bb/c-brain/doctor"><img src="https://agentmods.dev/badge/skills/yuno15-bb/c-brain/doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 292 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00059 $0.00292
Opus 5.5 $0.00024 $0.00117
Sonnet 5.5 $0.00012 $0.00058
Haiku 4.5 $0.00006 $0.00029

Measured 1mo ago against content hash c28cc5d8c632, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

skills/doctor/SKILL.md · 28 lines

What it actually says

Check the trunk and the wiring

Two commands, and they answer different questions. Run both.

brain selftest    # is the ENGINE wired correctly? (hooks, links, permissions)
brain doctor      # is the TRUNK coherent? (dead [[links]], orphans, index gaps)

Reading the result

  • selftest red → the installation is the problem. Re-run install.sh; it is idempotent and repairs its own wiring.
  • doctor red → the notes are the problem. Dead [[links]] and notes missing from MEMORY.md are the two that actually cost recall.
  • Both green but recall returns nothing → the query, not the machinery. Try narrower terms; the ranking is lexical, so it matches words, not meaning.

What not to conclude

A silent hook is not a healthy hook. If notes are not being saved and both commands are green, check that the hooks are registered at all — a hook whose path no longer resolves does not fail loudly, it simply stops recording.

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. 1mo ago First seen · 28 lines · 59 tokens per session scan A c28cc5d8c632

Subscribe to this mod's changes

doctor is a skill published in the GitHub repository Yuno15-bb/c-brain (3 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 59 tokens to every session and 292 once invoked, about $0.0002 per session on Opus 5.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-31.