doctor

doctor is a command for Claude Code from solanabr/solana-ai-kit. It costs 24 tokens per session (2,098 once invoked), scanned A, 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: 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 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,098 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. ✓ 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.00024 $0.02098
Opus 5 $0.00012 $0.01049
Sonnet 5 $0.00005 $0.00420
Haiku 4.5 $0.00002 $0.00210

Measured 9d ago against content hash e72699241966, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 9d 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/commands/doctor.md · 155 lines

How it starts

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

You are running a health check on this project's toolchain and solana-ai-kit configuration. Read-only contract: this command never writes, edits, or deletes files. It only inspects and reports.

Check 1: Core Toolchain

node --version 2>/dev/null || echo "MISSING node"
npm --version 2>/dev/null || echo "MISSING npm"
claude --version 2>/dev/null || echo "MISSING claude CLI"
  • node ≥ 18, npm, claude all present
  • ✗ Missing → fix-it: brew install node / npm install -g @anthropic-ai/claude-code

Check 2: Solana CLI + Cluster

solana --version 2>/dev/null || echo "MISSING solana CLI"
solana config get 2>/dev/null | grep "RPC URL"        # active cluster
solana balance --url devnet 2>/dev/null || echo "NO devnet balance / no keypair"
  • ✓ CLI installed, cluster configured, devnet balance > 0
  • ! Devnet balance 0 → fix-it: solana airdrop 2 --url devnet
  • ! Cluster is mainnet during development → fix-it: solana config set --url devnet
  • ✗ No CLI → fix-it: sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"

Check 3: Rust / Anchor Toolchain

Only flag as ✗ if the project contains Rust programs (Anchor.toml or programs/ present); otherwise report - (n/a).

rustc --version 2>/dev/null || echo "MISSING rustc"
cargo --version 2>/dev/null || echo "MISSING cargo"
anchor --version 2>/dev/null || echo "MISSING anchor"
avm --version 2>/dev/null || echo "MISSING avm"
  • ✗ No rustc/cargo → fix-it: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  • ✗ No anchor → fix-it: cargo install --git https://github.com/coral-xyz/anchor avm --force && avm install latest && avm use latest
  • ! anchor --versionAnchor.toml anchor_version → fix-it: avm use <version>

Check 4: Git Submodules

git submodule status

Read the full file on GitHub · 155 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. 9d 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 (101 stars, last pushed 19d ago), licensed MIT. It adds 24 tokens to every session and 2,098 once invoked, about $0.0001 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.