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.
git clone --depth 1 https://github.com/dhslegen/digital-delivery-teamWrote 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.
[](https://agentmods.dev/commands/dhslegen/digital-delivery-team/doctor)<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.
<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>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.
| Model | Per session | Once 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 |
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) 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 22SessionStart marker ❌→ 重启 Claude Code 会话(SessionStart hook 会重新写入)@redocly/cli ❌→npm i -g @redocly/cli或确认网络可达
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.
- 8d ago First seen · 45 lines · 26 tokens per session scan B 2020e1c27d25
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.
Other commands, from other repositories
maintain
Run automated maintenance — seeker finds bugs from pod logs and raises GitHub issues, fixer picks them up and creates PRs. Can run as a one-shot or scheduled via /schedule.
ccc-debug-session
Start a structured debug session with hypothesis tracking and resolution documentation.
duck-off
Turn off Rubber Duck mode and answer normally.
bug
Reproduce then TDD-fix a ready-for-agent bug ticket in this checkout. Web bugs get a browser repro first.
wiki-lint
Health-check the wiki for orphans, broken links, and quality issues.
check-versions
Audit dependencies against upstream registries (npm, pypi, nuget, crates.io).