doctor

doctor is a command for Claude Code from ncssm-robotics/ftc-claude. It costs 15 tokens per session (1,083 once invoked), scanned D, original, MIT.

A diagnostic command for checking whether an FTC robotics development setup and robot connection are ready to use.

In plain words
What is it for?
Use `/doctor` to inspect the environment or `/doctor --fix` to attempt automatic fixes for detected issues.
Why use it?
It finds common setup problems with ADB, the Python runner uv, robot access, Gradle, and project files before they interrupt development.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use /doctor to inspect the environment or /doctor --fix to attempt automatic fixes for detected issues.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ncssm-robotics/ftc-claude/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/ncssm-robotics/ftc-claude

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/ncssm-robotics/ftc-claude/doctor/github.svg)](https://agentmods.dev/commands/ncssm-robotics/ftc-claude/doctor)
Your own site
<a href="https://agentmods.dev/commands/ncssm-robotics/ftc-claude/doctor"><img src="https://agentmods.dev/badge/commands/ncssm-robotics/ftc-claude/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/ncssm-robotics/ftc-claude/doctor"><img src="https://agentmods.dev/badge/commands/ncssm-robotics/ftc-claude/doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 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,083 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 3 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.00015 $0.01083
Opus 5 $0.00008 $0.00541
Sonnet 5 $0.00003 $0.00217
Haiku 4.5 $0.00002 $0.00108

Measured 9d ago against content hash d41207a346ea, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade D, and why

doctor scanned grade D with 3 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Linux: `sudo apt install android-tools-adb`

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.

- macOS/Linux: `curl -LsSf https://astral.sh/uv/install.sh | sh`

Makes network callslowCapability

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

allowed-tools: Bash(adb:*), Bash(uv:*), Bash(which:*), Bash(command:*), Bash(brew:*), Bash(curl:*), Bash(ping:*), Read, Glob
plugins/robot-dev/commands/doctor.md · 193 lines

How it starts

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

Doctor Command

Diagnoses your FTC development environment and helps fix issues.

Usage

/doctor          # Check environment
/doctor --fix    # Attempt automatic fixes

What It Checks

  1. ADB Installation

    • Is adb command available?
    • What version is installed?
  2. uv (Python runner)

    • Is uv command available?
    • Required for OpMode control and future plugins
  3. Robot Reachability

    • Can we ping the robot (192.168.43.1)?
    • Is the robot's ADB port accessible?
  4. Gradle Setup

    • Does gradlew exist in the project?
    • Is it executable?
  5. Project Structure

    • Is this an FTC project (has TeamCode)?
    • Is local.properties configured?

Process

When this command runs:

  1. Detect platform (macOS, Linux, Windows)

  2. Check ADB:

    command -v adb
    adb version
    

    If missing, show platform-specific install instructions:

    • macOS: brew install android-platform-tools
    • Linux: sudo apt install android-tools-adb
    • Windows: Download from developer.android.com
  3. Check uv:

    command -v uv
    uv --version
    

    If missing, show platform-specific install instructions:

    • macOS/Linux: curl -LsSf https://astral.sh/uv/install.sh | sh
    • Windows: powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
  4. Check robot connection:

    ping -c 1 -W 2 192.168.43.1
    adb devices
    
  5. Check Gradle:

    ls -la gradlew
    ./gradlew --version
    
  6. Check project:

    • Look for TeamCode/ directory
    • Check local.properties exists

Output Format

FTC Development Environment Check

  Platform: macOS 14.0

  ADB:
    ✓ Installed (version 35.0.1)
    ✓ In PATH

  uv (Python runner):
    ✓ Installed (version 0.4.x)
    ✓ In PATH

  Robot Connection:
    ✓ Network reachable (192.168.43.1)
    ✓ ADB connected

  Gradle:
    ✓ gradlew found
    ✓ Executable

  Project:
    ✓ TeamCode directory found
    ✓ local.properties configured

  Summary: 10/10 checks passed

Read the full file on GitHub · 193 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 · 193 lines · 15 tokens per session scan D d41207a346ea

Subscribe to this mod's changes

doctor is a command published in the GitHub repository ncssm-robotics/ftc-claude (4 stars, last pushed 7mo ago), licensed MIT. It adds 15 tokens to every session and 1,083 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it D with 3 findings (asks for root, downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.