doctor

doctor is a command for Claude Code from solanabr/solana-ai-kit. It costs 17 tokens per session (1,618 once invoked), scanned E, original, MIT.

A read-only health check for the development tools and Solana project settings. It checks required command-line tools, the selected Solana network, and access to test funds.

In plain words
What is it for?
Use it before developing or deploying a Solana project to check Node.js, npm, Claude Code, the Solana command-line tool, network selection, and a development wallet balance.
Why use it?
It shows which part of the setup is missing or misconfigured without changing files. Each failure includes one specific command to fix it.

Command for Claude Code

Written for Claude Code: Claude Code plugin machinery. Also seen: model in frontmatter; reads .claude/ paths.

Good fit Use it before developing or deploying a Solana project to check Node.js, npm, Claude Code, the Solana command-line tool, network selection, and a development wallet balance.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/solanabr/solana-ai-kit/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.

Clone the repo
git clone --depth 1 https://github.com/solanabr/solana-ai-kit

Made for: Claude Code.

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/commands/solanabr/solana-ai-kit/doctor/github.svg)](https://agentmods.dev/commands/solanabr/solana-ai-kit/doctor)
Your own site
<a href="https://agentmods.dev/commands/solanabr/solana-ai-kit/doctor"><img src="https://agentmods.dev/badge/commands/solanabr/solana-ai-kit/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/commands/solanabr/solana-ai-kit/doctor"><img src="https://agentmods.dev/badge/commands/solanabr/solana-ai-kit/doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,618 The whole file, excluding the scripts and references it only reads on demand.
Security scan E 4 findings. A grade says what 26 rules found in the file — not that it is safe. ✓ AI security review Sonnet 5 · 7 Sept 2026 📄 Read the review
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.00017 $0.01618
Opus 5.5 $0.00007 $0.00647
Sonnet 5.5 $0.00003 $0.00324
Haiku 4.5 $0.00002 $0.00162

Measured 2mo ago against content hash 62460be77658, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade E, and why

doctor scanned grade E with 4 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 2mo 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

- FAIL no rustc/cargo: `curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh`

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

cat .claude/VERSION

Reads MCP configurationmediumAgent snooping

mcp.json carries server URLs and auth tokens; reading it lets a mod discover and abuse other integrations.

if grep -q '"surfpool"' .mcp.json 2>/dev/null; then

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- FAIL no CLI: `sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"`
.claude/commands/doctor.md · 98 lines

How it starts

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

Run the eight checks below, then report. Status values: OK healthy, WARN works but fix soon, FAIL blocks workflows, n/a not applicable.

Checks

1. Core toolchain. node --version, npm --version, claude --version. OK when all exist and node is 18+. Missing: brew install node / npm install -g @anthropic-ai/claude-code.

2. Solana CLI and cluster. solana --version; solana config get | grep "RPC URL"; solana balance --url devnet.

  • WARN devnet balance 0: solana airdrop 2 --url devnet
  • WARN cluster is mainnet during development: solana config set --url devnet
  • FAIL no CLI: sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"

3. Rust/Anchor toolchain (n/a unless Anchor.toml or programs/ exists). rustc --version, cargo --version, anchor --version, avm --version.

  • FAIL no rustc/cargo: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  • FAIL no anchor: cargo install --git https://github.com/solana-foundation/anchor avm --force && avm install latest && avm use latest
  • WARN anchor --version differs from anchor_version in Anchor.toml: avm use <version>

4. Git submodules. git submodule status; lines starting with a space are OK.

  • FAIL - prefix (uninitialized): git submodule update --init --recursive
  • WARN + prefix (checkout differs from the recorded SHA): git submodule update --recursive, or /resync if intentional

5. Environment keys. Compare key names only; never print values.

comm -23 \
  <(grep -oE '^[A-Z_]+=' .env.example 2>/dev/null | sort -u) \
  <(grep -oE '^[A-Z_]+=' .env 2>/dev/null | sort -u)   # in .env.example, missing from .env
grep -E '^[A-Z_]+=$' .env 2>/dev/null | cut -d= -f1      # present but empty
  • WARN key missing or empty: /setup-mcp (MCP keys) or edit .env
  • FAIL no .env: cp .env.example .env, then /setup-mcp

6. Kit version vs upstream.

cat .claude/VERSION
git ls-remote --tags --sort=-v:refname https://github.com/solanabr/solana-ai-kit | head -3
  • WARN behind the latest tag: bash .claude/bin/update.sh (.agents/bin/update.sh for --agents installs); preview with --dry-run
  • FAIL no VERSION file (corrupted or pre-1.0 config): the same update command

7. MCP config.

python3 -c "import json; d=json.load(open('.mcp.json')); print('\n'.join(d.get('mcpServers', {}).keys()))" \
  2>/dev/null || echo "INVALID or missing .mcp.json"
if grep -q '"surfpool"' .mcp.json 2>/dev/null; then
  surfpool --version 2>/dev/null || echo "MISSING surfpool CLI"
fi
grep -q 'memsearch-mcp' .mcp.json 2>/dev/null && echo "RETIRED memsearch-mcp entry"

OK when it parses and lists the default servers (helius, solana-dev, context7) plus any the user added.

  • FAIL parse failure: curl -fsSL https://raw.githubusercontent.com/solanabr/solana-ai-kit/main/.mcp.json -o .mcp.json
  • WARN a listed server's API key failed check 5: /setup-mcp
  • WARN surfpool listed but the CLI is missing: curl -L https://surfpool.run/install | sh (or brew install txtx/taps/surfpool)
  • WARN memsearch-mcp listed: that npm package is not published, so the server never starts; delete the memsearch entry from .mcp.json

8. Dual-install guard. The plugin (/plugin install solana-ai-kit@stbr) and a full install (install.sh into .claude/) in the same project double-load commands, hooks and MCP servers (/deploy beside /solana-ai-kit:deploy, the banner printed twice).

PLUGIN_ON=$(grep -lE '"solana-ai-kit@[^"]*"[[:space:]]*:[[:space:]]*true' \
  .claude/settings.json "$HOME/.claude/settings.json" 2>/dev/null | head -1)
[ -f .claude/VERSION ] && echo "FULL_INSTALL present"
[ -n "$PLUGIN_ON" ] && echo "PLUGIN enabled (in: $PLUGIN_ON)"

OK with exactly one of the two, n/a with neither. WARN with both; the fix is to pick one: /plugin uninstall solana-ai-kit (keeps the full install's permissions/sandbox policy and ext/ submodules), or remove the project .claude/ and rely on the plugin, which carries neither.

Read the full file on GitHub · 98 lines

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. 2mo ago Changed · -58 lines · -7 tokens per session 62460be77658
  2. 2mo ago Changed · +1 lines 927f3dab32b3
  3. 3mo ago First seen · 155 lines · 24 tokens per session scan E e72699241966

Subscribe to this mod's changes

doctor is a command published in the GitHub repository solanabr/solana-ai-kit (104 stars, last pushed 2mo ago), licensed MIT. It adds 17 tokens to every session and 1,618 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it E with 4 findings (downloads and executes remote code, reads agent configuration directories, reads mcp configuration). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

doctor compared with commands from other repositories

doctor next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
doctorsolanabr/solana-ai-kitCommand1042mo agoMITE17Claude Code
deep-code-analysisfusengine/agentsCommand341mo agoMITA28Claude Code
watchfusengine/agentsCommand341mo agoMITA23Claude Code
fixfusengine/agentsCommand341mo agoMITA21Claude Code
fixmantacron/mantaCommand101mo agononeA0Claude Code
jira-fix-bugnmoinvaz/speedy-gonzalesCommand41mo agononeA16Claude Code
healthhoangsonww/Claude-Code-Agent-MonitorCommand1.2ktodayMITA18Claude Code