doctor

doctor is a command for Claude Code from lgbarn/shipyard. It costs 7 tokens per session (794 once invoked), scanned A, original, MIT.

A diagnostic command that checks whether the Shipyard plugin and its supporting tools are installed correctly. It checks tools such as jq and Git, optionally the GitHub command-line tool, and the plugin's expected folders and files.

In plain words
What is it for?
Run it to check the local Shipyard installation, verify its manifest, hooks, scripts, skills, and commands, and see whether GitHub command-line support is available for pull-request workflows.
Why use it?
It helps explain whether a failed Shipyard workflow is caused by missing dependencies or damaged plugin files. Optional tools are reported separately so their absence is not confused with a required failure.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: positional $N argument.

Part of the shipyard plugin — 25 skills, 25 commands, 20 agents, 6 hooks shipped together

Good fit Run it to check the local Shipyard installation, verify its manifest, hooks, scripts, skills, and commands, and see whether GitHub command-line support is available for pull-request workflows.

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

Made for: Claude Code.

Or install shipyard, the plugin that ships this one along with the rest of its 25 skills, 25 commands, 20 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/lgbarn/shipyard/doctor/github.svg)](https://agentmods.dev/commands/lgbarn/shipyard/doctor)
Your own site
<a href="https://agentmods.dev/commands/lgbarn/shipyard/doctor"><img src="https://agentmods.dev/badge/commands/lgbarn/shipyard/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/lgbarn/shipyard/doctor"><img src="https://agentmods.dev/badge/commands/lgbarn/shipyard/doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 794 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.00007 $0.00794
Opus 5.5 $0.00003 $0.00318
Sonnet 5.5 $0.00001 $0.00159
Haiku 4.5 $0.00001 $0.00079

Measured 3mo ago against content hash f3db93997e26, 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 3mo 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.

commands/doctor.md · 115 lines

How it starts

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

/shipyard:doctor — Plugin Health Check

You are executing the Shipyard doctor diagnostic. Follow these steps precisely.

Step 1: Check Dependencies

Run each check and record pass/fail:

# 1. jq installed
command -v jq >/dev/null 2>&1 && echo "PASS: jq found ($(jq --version))" || echo "FAIL: jq not found — install with: brew install jq (macOS) or apt install jq (Linux)"

# 2. git installed
command -v git >/dev/null 2>&1 && echo "PASS: git found ($(git --version))" || echo "FAIL: git not found"

# 3. gh CLI (optional)
command -v gh >/dev/null 2>&1 && echo "PASS: gh found ($(gh --version | head -1))" || echo "INFO: gh not found — optional, needed for PR workflows"

Step 2: Check Plugin Structure

Verify the Shipyard plugin files are intact:

# Check plugin root has expected files
PLUGIN_ROOT="$(cd "$(dirname "$(readlink -f "$0" 2>/dev/null || echo "$0")")/.." && pwd)"

Verify these exist:

  • plugin.json — Plugin manifest
  • hooks/ — Hook scripts directory
  • scripts/ — Script files
  • skills/ — Skill definitions
  • commands/ — Command definitions

Report any missing items.

Step 3: Check Skills Discoverable

# Count discoverable skills
skill_count=$(find skills/ -name "SKILL.md" -maxdepth 2 2>/dev/null | wc -l | tr -d ' ')
echo "Skills discovered: ${skill_count}"

List all discovered skills by name.

Step 4: Check Hooks Registered

Read plugin.json and verify hooks are defined:

  • SessionStart hook → scripts/state-read.sh
  • PreToolUse hooks (if any)
  • PostToolUse hooks (if any)

Verify each hook script file exists and is executable.

Step 5: Check Project State (if .shipyard/ exists)

If .shipyard/ exists:

  • Verify .shipyard/ is NOT a symlink
  • Check STATE.json exists and is valid JSON with required fields (schema, phase, status)
  • Check config.json exists and is valid JSON
  • Check HISTORY.md exists
  • Report any missing or corrupt files

If .shipyard/ does not exist:

"No Shipyard project in current directory. Run /shipyard:init to set up."

Read the full file on GitHub · 115 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. 3mo ago First seen · 115 lines · 7 tokens per session scan A f3db93997e26

Subscribe to this mod's changes

doctor is a command published in the GitHub repository lgbarn/shipyard (67 stars, last pushed 1mo ago), licensed MIT. It adds 7 tokens to every session and 794 once invoked, about $0.0000 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
doctorlgbarn/shipyardCommand671mo agoMITA7Claude Code
sw-auditObsidian-Owl/specwrightCommand97mo agoMITA10Claude Code
sw-reviewObsidian-Owl/specwrightCommand97mo agoMITA11Claude Code
initazrtydxb/procoderCommand21221d agoApache-2.0A16Claude Code
gitazrtydxb/procoderCommand21221d agoApache-2.0A20Claude Code
extendlugassawan/swe-workbenchCommand3yesterdayMITA35Claude Code
security-reviewlugassawan/swe-workbenchCommand3yesterdayMITA43Claude Code