doctor

doctor is a command for Claude Code from dhslegen/digital-delivery-team. It costs 26 tokens per session (553 once invoked), scanned B, original, MIT.

A command that checks whether the DDT plugin and its development tools are installed and configured correctly. It checks items such as the Node.js version, event hooks, files, permissions, and the OpenAPI checking tool.

In plain words
What is it for?
Use it after installing the plugin or when troubleshooting its environment. It reports failed checks and returns a failing exit code when something needs repair.
Why use it?
It quickly shows which part of the setup is missing or broken instead of requiring you to inspect each component by hand.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code.

Part of the digital-delivery-team plugin — 13 skills, 21 commands, 9 agents, 8 hooks shipped together

Good fit Use it after installing the plugin or when troubleshooting its environment. It reports failed checks and returns a failing exit code when something needs repair.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/dhslegen/digital-delivery-team/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/dhslegen/digital-delivery-team

Made for: Claude Code.

Or install digital-delivery-team, the plugin that ships this one along with the rest of its 13 skills, 21 commands, 9 agents, 8 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/dhslegen/digital-delivery-team/doctor/github.svg)](https://agentmods.dev/commands/dhslegen/digital-delivery-team/doctor)
Your own site
<a href="https://agentmods.dev/commands/dhslegen/digital-delivery-team/doctor"><img src="https://agentmods.dev/badge/commands/dhslegen/digital-delivery-team/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/dhslegen/digital-delivery-team/doctor"><img src="https://agentmods.dev/badge/commands/dhslegen/digital-delivery-team/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 553 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 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.00553
Opus 5 $0.00013 $0.00277
Sonnet 5 $0.00005 $0.00111
Haiku 4.5 $0.00003 $0.00055

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

Security

Grade B, and why

doctor scanned grade B 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 8d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

[ -f "$DDT_PLUGIN_ROOT/bin/aggregate.mjs" ] || DDT_PLUGIN_ROOT=$(cat "${HOME}/.claude/delivery-metrics/.ddt-plugin-root" 2>/dev/null)
commands/doctor.md · 45 lines

What it actually says

/doctor

DDT 插件安装与运行环境的健康检查,建议安装后第一次运行。


执行

[ -f "$DDT_PLUGIN_ROOT/bin/aggregate.mjs" ] || DDT_PLUGIN_ROOT=$(cat "${HOME}/.claude/delivery-metrics/.ddt-plugin-root" 2>/dev/null)
[ -f "$DDT_PLUGIN_ROOT/bin/aggregate.mjs" ] || DDT_PLUGIN_ROOT="${HOME}/.claude/plugins/marketplaces/digital-delivery-team"
[ -f "$DDT_PLUGIN_ROOT/bin/aggregate.mjs" ] || { echo "❌ DDT plugin root 未解析。可能原因:(1) 插件未安装,请运行 /plugin install digital-delivery-team@digital-delivery-team;(2) shell 中 DDT_PLUGIN_ROOT 指向无效路径,请 unset DDT_PLUGIN_ROOT 后重启会话"; exit 1; }
export DDT_PLUGIN_ROOT
node "$DDT_PLUGIN_ROOT/bin/doctor.mjs"

检查项

通过条件
Node ≥ 22 node:sqlite 内置模块需要
插件 root 完整性 bin/ + hooks/handlers/ + 关键脚本齐全
SessionStart marker ~/.claude/delivery-metrics/.ddt-plugin-root 存在且指向有效目录
hooks.json 注册 SessionStart/SessionEnd/PreToolUse/PostToolUse/SubagentStop/UserPromptSubmit/Stop 全部注册
events.jsonl 可写 度量目录权限正常
metrics.db 完整性 文件不存在视为正常(首次运行);存在则大小 > 0
@redocly/cli 可用 OpenAPI lint 工具链
check-blockers.sh 可执行 权限位 0o111 已设置

退出码

  • 0:全部通过
  • 1:至少一项失败(按提示逐项修复后重跑)

常见修复

  • Node ≥ 22 ❌nvm install 22 && nvm use 22
  • SessionStart marker ❌ → 重启 Claude Code 会话(SessionStart hook 会重新写入)
  • @redocly/cli ❌npm i -g @redocly/cli 或确认网络可达
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. 8d ago First seen · 45 lines · 26 tokens per session scan B 2020e1c27d25

Subscribe to this mod's changes

doctor is a command published in the GitHub repository dhslegen/digital-delivery-team (1 stars, last pushed 3mo ago), licensed MIT. It adds 26 tokens to every session and 553 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.