fix

fix is a command for coding agents from dhslegen/digital-delivery-team. It costs 27 tokens per session (1,658 once invoked), scanned B, original, MIT.

A repair command that applies listed fixes from a review report, with dry-run output by default and an explicit --apply option for writing changes.

In plain words
What is it for?
Use it after a review has created docs/review-report.md, to address its issues one by one and check for blockers.
Why use it?
It organizes review corrections around an existing report and lets you inspect the proposed patch before applying it.

Command

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

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/dhslegen/digital-delivery-team/fix
Clone the repo
git clone --depth 1 https://github.com/dhslegen/digital-delivery-team

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 fix

README.md
[![agentmods](https://agentmods.dev/badge/commands/dhslegen/digital-delivery-team/fix.svg)](https://agentmods.dev/commands/dhslegen/digital-delivery-team/fix)
Your own site
<a href="https://agentmods.dev/commands/dhslegen/digital-delivery-team/fix"><img src="https://agentmods.dev/badge/commands/dhslegen/digital-delivery-team/fix.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,658 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 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.00027 $0.01658
Opus 5 $0.00014 $0.00829
Sonnet 5 $0.00005 $0.00332
Haiku 4.5 $0.00003 $0.00166

Measured 4d ago against content hash bbae48a54cd8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

fix 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 4d 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/fix.md · 160 lines

How it starts

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

/fix

输入:$ARGUMENTS

修复 /verify(review-agent)产出的 docs/review-report.md 中已列出的问题。默认 dry-run——仅输出 diff 让用户 review;通过 --apply 才会真正写入。


Phase 1 — 前置校验

test -f docs/review-report.md || { echo "❌ docs/review-report.md 不存在,请先运行 /verify 或 /review"; exit 1; }
[ -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) 插件未安装;(2) shell 中 DDT_PLUGIN_ROOT 指向无效路径,请 unset DDT_PLUGIN_ROOT 后重启会话;(3) 运行 /digital-delivery-team:doctor 自检"; exit 1; }
export DDT_PLUGIN_ROOT

if printf '%s' "$ARGUMENTS" | grep -q -- '--dry-run'; then
  node "$DDT_PLUGIN_ROOT/bin/print-dry-run.mjs" --phase fix --inputs "docs/review-report.md,docs/blockers.md,git diff" --outputs "(修复 patch 应用于 web/ server/ docs/)" --next "/verify"
  exit 0
fi
node "$DDT_PLUGIN_ROOT/bin/emit-phase.mjs" --phase fix --action start
"$DDT_PLUGIN_ROOT/bin/check-blockers.sh" || exit 2

Phase 2 — 解析参数

参数 默认 说明
--severity blocker|warning|all warning 修复哪一级(阻塞 / 警告 / 全部)
--apply 真正写入文件;不传则 dry-run(仅输出 diff)
--dry-run 显式 dry-run(与无 --apply 等价)

阻塞级永远要求用户 review patch,即使传 --apply 也必须逐条确认。

Phase 3 — 派发 fix-agent

使用 Task 工具派发 fix-agent,传入:

  • docs/review-report.md(待修复条目)
  • docs/api-contract.yaml(修改后端时必读)
  • docs/data-model.md(修改持久层时必读)
  • $ARGUMENTS(severity 与 apply 标志)

fix-agent 产出:

  • 受影响源码的 Edit/MultiEdit
  • docs/review-report.md 追加 ## Fix Log 段落

Phase 4 — 自动回归

# 后端
test -d server && (cd server && (npm test --silent 2>/dev/null || make smoke 2>/dev/null || true))
# 前端
test -d web && (cd web && (npm test --silent --run 2>/dev/null || true))

任一回归失败 → 提示重跑 /fix/verify

修复后回归失败,请检查 fix-agent 产出的 patch

Read the full file on GitHub · 160 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. 4d ago First seen · 160 lines · 27 tokens per session scan B bbae48a54cd8

Subscribe to this mod's changes

fix is a command published in the GitHub repository dhslegen/digital-delivery-team (1 stars, last pushed 3mo ago), licensed MIT. It adds 27 tokens to every session and 1,658 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.