doctor

doctor is a skill for Claude Code from kadiresen/context-bank. It costs 24 tokens per session (419 once invoked), scanned A, original, MIT.

A read-only health check for a project's Context Bank, a set of small shared files that give coding agents project context.

In plain words
What is it for?
Use it to check whether the Context Bank is healthy and decide whether to compact, rewrite, or migrate its files.
Why use it?
It finds files that are too large, outdated instructions, and leftover files from an older Cline Memory Bank setup without changing anything.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions CLAUDE.md; mentions AGENTS.md; built for cline.

Part of the context-bank plugin — 4 skills, 1 hook shipped together

Good fit Use it to check whether the Context Bank is healthy and decide whether to compact, rewrite, or migrate its files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kadiresen/context-bank/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 kadiresen/context-bank --skill doctor
Clone the repo
git clone --depth 1 https://github.com/kadiresen/context-bank

Made for: Claude Code.

Or install context-bank, the plugin that ships this one along with the rest of its 4 skills, 1 hook.

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/kadiresen/context-bank/doctor/github.svg)](https://agentmods.dev/skills/kadiresen/context-bank/doctor)
Your own site
<a href="https://agentmods.dev/skills/kadiresen/context-bank/doctor"><img src="https://agentmods.dev/badge/skills/kadiresen/context-bank/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/kadiresen/context-bank/doctor"><img src="https://agentmods.dev/badge/skills/kadiresen/context-bank/doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 419 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.00024 $0.00419
Opus 5.5 $0.00010 $0.00168
Sonnet 5.5 $0.00005 $0.00084
Haiku 4.5 $0.00002 $0.00042

Measured yesterday against content hash b563c78d39e7, 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 yesterday.

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.

plugin/skills/doctor/SKILL.md · 19 lines

What it actually says

Run npx -y [email protected] doctor "$CLAUDE_PROJECT_DIR" and report the result in a few lines.

  • If it says the bank is healthy, say so and stop.
  • For over-cap findings on active-context or roadmap, suggest /context-bank:compact.
  • For over-cap on architecture.md, offer to rewrite it down to the current shape of the system (it is never compacted automatically).
  • For cline-bank, cline-leftover or cline-contract findings, suggest npx -y [email protected] migrate to convert a Cline Memory Bank (or, if already converted, deleting memory-bank/ after review).
  • For legacy-story findings (a single-file v2 story), suggest npx -y [email protected] migrate; it splits the file into one file per decision under .ai/story/ without losing any line.
  • For decision-over-cap findings, offer to split its content into new, shorter decision files. Decisions are append-only and never compacted automatically, so the oversized file stays as it is unless the user approves removing it once its content lives in the new files.
  • For missing-story-dir findings, suggest npx -y [email protected] migrate.
  • For legacy-contract findings, suggest npx -y [email protected] migrate and explain it rewrites the old "update after every task" instructions. When it replaces a whole file (a v1 AGENTS.md, CLAUDE.md or tool pointer file), it first copies the original to .ai/archive/ and says so, so the user can bring back their own sections.

Do not change any file in this command.

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. yesterday Changed b563c78d39e7
  2. 2d ago Changed · +3 lines · +2 tokens per session 29530681a694
  3. 14d ago First seen · 16 lines · 22 tokens per session scan A 2c7a3feed909

Subscribe to this mod's changes

doctor is a skill published in the GitHub repository kadiresen/context-bank (9 stars, last pushed 2d ago), licensed MIT. It adds 24 tokens to every session and 419 once invoked, about $0.0001 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-09-27.