doctor

A read-only checker for a Shipshape installation. It looks for missing, outdated, duplicated, or inconsistent copies across the available installation locations.

In plain words
What is it for?
Use it to inventory Shipshape files, compare installation channels and scopes, and report evidence about installation health.
Why use it?
It shows whether the installation is intact and whether different copies have drifted apart, without changing anything.

Command

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.

agentmods
npx agentmods add commands/dmytri/shipshape/doctor
Clone the repo
git clone --depth 1 https://github.com/dmytri/shipshape
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 672 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00020 $0.00672
Opus 5 $0.00010 $0.00336
Sonnet 5 $0.00004 $0.00134
Haiku 4.5 $0.00002 $0.00067

Measured 2d ago against content hash c3d6b686c93f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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.

curl -s https://raw.githubusercontent.com/dmytri/shipshape/main/skills/captain/SKILL.md | sha256sum
commands/doctor.md · 30 lines

What it actually says

Shipshape doctor

This command audits the Shipshape installation itself. It applies the current-design rule to the harness: no stale copies, no drift, no shadowed doctrine. It adds no doctrine.

Evidence rule: run each check and show the command output. Report what the output shows, never an unverified assurance. Change nothing without approval.

Portability rule: the checks are the contract; the example commands are examples. Use the host platform's equivalents for paths, hashing, and shell syntax, and the current runtime's own layout for skill and plugin directories.

  1. Inventory. Locate every installed copy of the Shipshape skills, across generic and runtime-specific layouts:

    • generic agent directories, project and global, such as .agents/skills/ and ~/.agents/skills/;
    • runtime-specific skill directories, project and global, in each runtime's own skill layout;
    • the runtime's plugin root, where the plugin channel installs shipshape with skills, agents, and hooks. Record location, channel, and scope for each copy. The channels are skills and plugin. The scopes are project and global. Symlinked copies resolve to their targets; record both the link and the target.
  2. Completeness. A skills-channel copy carries all six skills: shipshape, captain, qm, crew, boatswain, shipwright, and the shipwright skill's templates.md. A plugin-channel copy also carries agents/, hooks/, commands/, and rules/, and every hooks/scripts/*.sh is executable. Flag partial copies and lost execute bits.

  3. Freshness. Compare each installed SKILL.md against upstream main by content hash, for example:

    curl -s https://raw.githubusercontent.com/dmytri/shipshape/main/skills/captain/SKILL.md | sha256sum
    sha256sum <installed path>/captain/SKILL.md
    

    Use the host platform's hash tool: sha256sum on Linux, shasum -a 256 on macOS, Get-FileHash on Windows. A direct file diff against the fetched upstream copy is an equal substitute. The skills channel carries no version numbers; content comparison is the check. For a plugin-channel copy, also compare the version in .plugin/plugin.json against upstream. Flag every stale copy.

  4. Coherence. Flag duplicate installs across scopes and channels. Name which copy the runtime resolves first and which copies it shadows. Multiple copies at different vintages mean an agent can invoke stale doctrine with full confidence; recommend collapsing to one channel.

  5. Report and remedies. Present a table: location, channel, scope, completeness, freshness. Recommend the fix for each finding: npx skills update for stale skills-channel copies, npx plugins add dmytri/shipshape to refresh the plugin channel, and removal of redundant channels. Apply a remedy only when the user approves it.

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. 2d ago First seen · 30 lines · 20 tokens per session scan A c3d6b686c93f

Subscribe to this mod's changes

doctor is a command published in the GitHub repository dmytri/shipshape (7 stars, last pushed 28d ago), licensed 0BSD. It adds 20 tokens to every session and 672 once invoked, about $0.0001 per session on Opus 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.