doctor

doctor is a command for Claude Code from spree/agent-skills. It costs 26 tokens per session (2,114 once invoked), scanned A, original, MIT.

A diagnostic command for Spree, an online-store system built with Ruby on Rails. It checks Docker, containers, settings, the web app, database migrations, and background jobs.

In plain words
What is it for?
Use it when a Spree development store is not working. It helps diagnose startup, database, web-server, environment, and job-processing problems.
Why use it?
It runs the full set of health checks and connects each failure to a specific repair command, including differences between Docker apps, classic Rails apps, and monorepos.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the spree plugin — 38 skills, 2 commands, 1 agent, 2 hooks shipped together

Good fit Use it when a Spree development store is not working. It helps diagnose startup, database, web-server, environment, and job-processing problems.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/spree/agent-skills/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/spree/agent-skills

Made for: Claude Code.

Or install spree, the plugin that ships this one along with the rest of its 38 skills, 2 commands, 1 agent, 2 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/spree/agent-skills/doctor/github.svg)](https://agentmods.dev/commands/spree/agent-skills/doctor)
Your own site
<a href="https://agentmods.dev/commands/spree/agent-skills/doctor"><img src="https://agentmods.dev/badge/commands/spree/agent-skills/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/spree/agent-skills/doctor"><img src="https://agentmods.dev/badge/commands/spree/agent-skills/doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 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,114 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00026 $0.02114
Opus 5.5 $0.00010 $0.00846
Sonnet 5.5 $0.00005 $0.00423
Haiku 4.5 $0.00003 $0.00211

Measured 20d ago against content hash 14000814810a, 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 1 finding 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 20d 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.

Makes network callslowCapability

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

4. **Web responding** — `curl -fsS -o /dev/null -w '%{http_code}' http://localhost:<SPREE_PORT>/up` (substitute the detected port)
commands/doctor.md · 55 lines

How it starts

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

Spree stack diagnosis

Run every check below in order against this project. Do not stop at the first failure — run all of them, then report. Judge each against its healthy state.

Pre-flight — detect the project flavor:

  • docker-compose.yml at the root (create-spree-app): run the Docker checks as written. The Rails app lives in server/ (older projects: backend/ — use whichever exists; call it <app> below). apps/dashboard/ and apps/storefront/ are optional.
  • No Docker wiring but a Rails app with spree gems at the root (classic app): skip checks 1–2, run everything else natively — replace spree exec <cmd> with plain <cmd> from the app root, check the web on the port bin/dev/bin/rails s uses (default 3000), and read Gemfile.lock at the root.
  • Neither: not a Spree project — say so and stop.

Command routing (Docker flavor): prefer spree exec <cmd>; if the spree CLI isn't available, fall back to docker compose exec -T web <cmd>. If .env contains SPREE_PATH, this is a monorepo edge project — spree dev/spree build/spree upgrade refuse there by design; remedies should say pnpm server:dev / pnpm server:build (run from the monorepo root) instead. On classic apps, remedies use native forms (bin/dev, bin/rails db:migrate, bundle exec rake).

Stack shape (create-spree-app): services web (Puma and the Solid Queue job supervisor in-process — there is no separate worker by default), postgres, mailpit. Optional: meilisearch (commented out in the template until enabled), a bin/jobs worker service if the user split jobs out (SOLID_QUEUE_IN_PUMA=false), and redis/sidekiq only if they swapped the job backend. Read docker-compose.yml and <app>/Gemfile.lock first and only run the optional checks for what's actually there.

Checks

  1. Docker daemon — docker info --format '{{.ServerVersion}}' Healthy: prints a version. Remedy: start Docker Desktop / OrbStack.

  2. Containers — docker compose ps -a --format '{{.Service}}: {{.State}} ({{.Status}})' Healthy: web and postgres running (web healthy once booted), mailpit running. Plus any optional services defined in the compose file (meilisearch, a jobs worker, redis). Exited containers are normal if the user just hasn't booted; the remedy is spree dev (foreground, Ctrl+C stops) — or pnpm server:dev in monorepo mode. Note whether the compose file has a build: section (ejected, builds from <app>/) or uses the prebuilt ghcr.io/spree/spree image — code changes in <app>/ only take effect on an ejected stack.

Read the full file on GitHub · 55 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. 20d ago Changed · +11 lines 14000814810a
  2. 1mo ago First seen · 44 lines · 26 tokens per session scan A 95c15af04332

Subscribe to this mod's changes

doctor is a command published in the GitHub repository spree/agent-skills (10 stars, last pushed 21d ago), licensed MIT. It adds 26 tokens to every session and 2,114 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.