doctor

doctor is a command for Claude Code from Lykhoyda/rn-dev-agent. It costs 72 tokens per session (1,806 once invoked), scanned A, original, MIT.

A diagnostic command that checks whether the tools and devices needed for React Native development and testing are installed and connected. React Native is a framework for building mobile apps with JavaScript and native components.

In plain words
What is it for?
Use it to inspect iOS and Android testing prerequisites, device connections, development-server status, plugin freshness, and related environment settings.
Why use it?
It identifies missing or outdated pieces—such as Node.js, device runners, simulators, emulators, Metro, CDP, or helper tools—without changing the project.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions CLAUDE.md.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the rn-dev-agent plugin — 28 skills, 17 commands, 6 agents, 6 hooks shipped together

Good fit Use it to inspect iOS and Android testing prerequisites, device connections, development-server status, plugin freshness, and related environment settings.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Lykhoyda/rn-dev-agent
Claude Code
/plugin install rn-dev-agent

Made for: Claude Code.

Or install rn-dev-agent, the plugin that ships this one along with the rest of its 28 skills, 17 commands, 6 agents, 6 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/commands/lykhoyda/rn-dev-agent/doctor/github.svg)](https://agentmods.dev/commands/lykhoyda/rn-dev-agent/doctor)
Your own site
<a href="https://agentmods.dev/commands/lykhoyda/rn-dev-agent/doctor"><img src="https://agentmods.dev/badge/commands/lykhoyda/rn-dev-agent/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/lykhoyda/rn-dev-agent/doctor"><img src="https://agentmods.dev/badge/commands/lykhoyda/rn-dev-agent/doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 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,806 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.00072 $0.01806
Opus 5.5 $0.00029 $0.00722
Sonnet 5.5 $0.00014 $0.00361
Haiku 4.5 $0.00007 $0.00181

Measured 2mo ago against content hash 6b54daf055ff, 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 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.

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.

packages/claude-plugin/commands/doctor.md · 76 lines

How it starts

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

Run the environment-diagnostic checklist from the rn-setup skill. Walk all 18 prerequisite checks (Node.js version, CDP bridge dependencies, rn-fast-runner build (iOS), rn-android-runner build/install (Android), maestro-runner, learned-action compatibility, iOS simulator, Android emulator, Metro dev server, CDP connection, injected __RN_AGENT helpers, ffmpeg, idb (screen-mirror fast path), physical-device prerequisites, plugin version freshness, Vercel rules sync freshness, CDP auto-reconnect mode, linked-worktree action inheritance) and surface install commands for any missing dependencies.

iOS device automation is owned by the in-tree rn-fast-runner XCTest project (D1219, PR #164); Android device automation is owned by the in-tree rn-android-runner (UiAutomator instrumentation). These in-tree runners are the sole device backend — there is no external CLI to install. Mark rn-android-runner as N/A on iOS-only setups and rn-fast-runner as N/A on Android-only / non-macOS setups. If a device tool fails with RUNNER_PROTOCOL_MISMATCH, the installed/prebuilt runner artifact predates the plugin's wire protocol: on iOS delete packages/rn-fast-runner/build/DerivedData and re-open the device session (or re-run xcodebuild build-for-testing); on Android re-run ./gradlew :app:assembleDebug :app:assembleDebugAndroidTest and adb install -r both APKs.

This command is read-only. It diagnoses the current environment and recommends fixes. It does NOT modify any files in the user's project, inject documentation, or instrument source code.

Present results as an 18-row table. Follow the detailed probes and remediation rules in rn-setup; do not infer runner provenance, helper availability, or auto-reconnect configuration from passive cdp_status.

For iOS replay compatibility, also run the packaged maestro-runner-pin.js diagnose --json report. State the proof-domain split: exact React testIDs use react-tree; native/system selectors use xctest-native. A runtime-version heuristic is diagnostic context only and never proof of blindness. Report NATIVE_SURFACE_BLIND only when the replay includes the bounded same-screen native-selector evidence; otherwise preserve the ordinary selector miss. The supported next action is the central native WDA smoke on a WDA-healthy runtime.

For learned-action compatibility, resolve the RN app root and run the packaged maestro-runner-pin.js diagnose-actions --root <app> --json. Print one table row with scanned, compatible, and the enginePin / regexSelector / unreadable counts plus those action ids. A pinned-ok runner with any of those refusals is FAIL (or YELLOW when the only findings are unreadable), never silent GREEN. Inherited symlink corpora may be scanned. Never run migrate-actions, rewrite an action, print a YAML body, or print a private inherit source path from doctor.

For linked-worktree action inheritance, resolve the RN app root and run the packaged worktree-inheritance.js plan --host claude --app-root <app> --json. Report .rn-agent/actions as tracked, inherited, missing, explicit-legacy-repair-needed, unsafe, or refused. Also report hook status. Never apply, repair, install a hook, print a private source path, or inspect an action body from doctor.

For idb, require both a healthy idb --help and idb_companion; an active install PID is INSTALLING. A client on PATH whose idb --help fails is BROKEN, not MISSING — report it as installed but not responding, naming the Python 3.14 interpreter incompatibility as the probable cause rather than a certainty (the probe cannot separate a crash from a timeout or EACCES), and give the pinned repair command, never a bare pipx install fb-idb. On a machine with no supported interpreter, prefix that command with brew install [email protected] &&. Otherwise report MISSING and the documented install command. This row is YELLOW because mirroring has a screenshot fallback.

Read the full file on GitHub · 76 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 · +2 lines · +4 tokens per session 6b54daf055ff
  2. 2mo ago Changed 963f969354ba
  3. 2mo ago Changed · +2 lines 905d20dddffa
  4. 2mo ago Changed · +3 lines c91702d366f1
  5. 3mo ago First seen · 69 lines · 68 tokens per session scan A 16c6d47a02b1

Subscribe to this mod's changes

doctor is a command published in the GitHub repository Lykhoyda/rn-dev-agent (20 stars, last pushed 1mo ago), licensed MIT. It adds 72 tokens to every session and 1,806 once invoked, about $0.0003 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-30.

Related

doctor compared with commands from other repositories

doctor next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
doctorLykhoyda/rn-dev-agentCommand201mo agoMITA72Claude Code
dashboard-list-modelsBlackBeltTechnology/pi-agent-dashboardCommand357todayMITA18Claude Code
dashboard-flow-autoBlackBeltTechnology/pi-agent-dashboardCommand357todayMITA19Claude Code
dashboard-session-abort-allBlackBeltTechnology/pi-agent-dashboardCommand357todayMITA16Claude Code
dashboard-session-diffBlackBeltTechnology/pi-agent-dashboardCommand357todayMITA31Claude Code
dashboard-server-tunnel-offBlackBeltTechnology/pi-agent-dashboardCommand357todayMITA13Claude Code
dashboard-session-renameBlackBeltTechnology/pi-agent-dashboardCommand357todayMITA18Claude Code