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

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.

agentmods
npx agentmods add skills/yuno15-bb/c-brain/doctor
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.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.svg" alt="Measured on agentmods" 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. 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.00059 $0.00292
Opus 5 $0.00030 $0.00146
Sonnet 5 $0.00012 $0.00058
Haiku 4.5 $0.00006 $0.00029

Measured 6d ago against content hash c28cc5d8c632, 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.

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. 6d 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 (2 stars, last pushed 11d ago), licensed Apache-2.0. It adds 59 tokens to every session and 292 once invoked, about $0.0003 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-31.

Related

Other skills, from other repositories

potpie-debug-memory

Use while debugging or troubleshooting failures, flaky tests, incidents, production alerts, CI failures, local dev setup issues, repeated bugs, prior fixes, failed attempts, and verification history.

potpie-ai/potpie · 41 tokens

kip-cognitive-nexus

Persistent graph-based memory for AI agents via KIP (Knowledge Interaction Protocol). Provides retrieval-first memory operations (KQL), durable writes (KML), schema discovery (META), and memory hygiene patterns. Use whenever the agent needs to consult or update persistent memory, especially for: remembering user…

ldclabs/KIP · 90 tokens

chatcrystal-debug-recall

Recall ChatCrystal memories for debugging tasks involving failing tests, compiler errors, runtime exceptions, dependency issues, environment breakage, or performance regressions. Use when historical root causes, fixes, or pitfalls may accelerate diagnosis before proposing a fix.

ZengLiangYi/ChatCrystal · 54 tokens

memesh

Use MeMesh to remember, recall, and manage AI knowledge across sessions, and to exchange task-focused messages with local agents. Triggers when the user asks to remember something, recall past decisions, forget outdated info, learn from mistakes, analyze work patterns, contact another agent, or handle a memeshmessage…

PCIRCLE-AI/memesh · 136 tokens

memesh-review

Review and optimize the MeMesh memory database. Analyzes health score, finds stale/conflicting/redundant memories, shows work patterns, and suggests cleanup actions. Use when asked to "review memories", "check memory health", "clean up knowledge", or "what's in my memory".

PCIRCLE-AI/memesh · 64 tokens

potpie-cli

Use when the task is centered on running, explaining, configuring, or troubleshooting the potpie command: doctor, login, pot management, source registration, search, graph workbench reads/writes, and pot scope behavior.

potpie-ai/potpie · 50 tokens