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.
npx agentmods add skills/dhslegen/digital-delivery-team/validation-loopnpx skills add dhslegen/digital-delivery-team --skill validation-loopgit 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/skills/dhslegen/digital-delivery-team/validation-loop)<a href="https://agentmods.dev/skills/dhslegen/digital-delivery-team/validation-loop"><img src="https://agentmods.dev/badge/skills/dhslegen/digital-delivery-team/validation-loop.svg" alt="Measured on agentmods" 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 | $0.00053 | $0.01887 |
| Opus 5 | $0.00026 | $0.00944 |
| Sonnet 5 | $0.00011 | $0.00377 |
| Haiku 4.5 | $0.00005 | $0.00189 |
Grade A, and why
validation-loop 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 3d 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.
✓ smoke: curl http://localhost:3001/health 200 OK How it starts
The opening of the file, as written. The whole thing — 166 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Validation Loop · 每步验证
Golden Rule: If a validation fails, fix it before moving on. Never accumulate broken state.
M6.4 整改:v0.6.x 的 backend-agent / frontend-agent 是写完才测, 一旦有 bug 已经写了 10 个文件,根因排查困难。 v0.7.0 改 main thread + validation loop——每文件立即测,失败立即停。
Triggers
/build-apiIMPLEMENT phase(每个 step 后)/build-webIMPLEMENT phase(每个组件后)/fix --apply(每条 patch 后)- 任何 main thread 写完一个关键文件后
Core Philosophy
不累积破损状态:每一步验证失败都立即停下,让用户决策是修复 / 跳过 / 重新规划。 不要"先写 10 个文件再一起测"——出问题时无法定位是哪步引入的。
检测包管理器与构建工具
按文件存在性自动选对命令:
| 检测到的文件 | 包管理器 | build 命令 | lint 命令 | typecheck 命令 | test 命令 |
|---|---|---|---|---|---|
pnpm-lock.yaml |
pnpm | pnpm run build |
pnpm run lint |
pnpm exec tsc --noEmit |
pnpm test --run |
yarn.lock |
yarn | yarn build |
yarn lint |
yarn tsc --noEmit |
yarn test --run |
package-lock.json 或 package.json 无 lock |
npm | npm run build |
npm run lint |
npx tsc --noEmit |
npm test --silent --run |
pom.xml |
maven | mvn -B compile |
mvn -B verify -DskipTests |
mvn -B compile |
mvn -B test |
build.gradle* |
gradle | ./gradlew build -x test |
./gradlew check -x test |
./gradlew compileJava |
./gradlew test |
pyproject.toml + poetry.lock |
poetry | poetry build |
poetry run ruff check |
poetry run mypy . |
poetry run pytest |
pyproject.toml 无 poetry |
pip + ruff | — | ruff check . |
mypy . |
pytest |
Cargo.toml |
cargo | cargo build |
cargo clippy |
cargo check |
cargo test |
go.mod |
go | go build ./... |
golangci-lint run |
go vet ./... |
go test ./... |
命令优先用项目脚本(如
npm run build);脚本不存在则 fallback 到通用命令(tsc --noEmit)。
Validation Mode(按场景选)
Quick Mode(每个文件后)
只跑当前文件相关的最快验证:
.ts/.tsx:tsc --noEmit <path>+ 该文件 lint.js:<lint> <path>.java:当前模块mvn -B compile -pl <module>.go:go vet <package>+go build <package>.py:mypy <path>+ruff check <path>
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.
- 3d ago First seen · 166 lines · 53 tokens per session scan A e3b90169f829
validation-loop is a skill published in the GitHub repository dhslegen/digital-delivery-team (1 stars, last pushed 3mo ago), licensed MIT. It adds 53 tokens to every session and 1,887 once invoked, about $0.0003 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.
Other skills, from other repositories
seo-strategy
Audits and improves organic search performance — technical health, site architecture, internal linking, structured data, and the content decisions that determine what can rank. Use this to run an SEO audit, diagnose why pages are not ranking or were deindexed, plan a site's URL and navigation structure, add structured…
implement-factory
Factory loop orchestrator for multi-feature or multi-component implementation manifests. Use for high-complexity work with parallel-eligible workstreams and holdout-scenario evaluation.
scenario-planning
Plans under genuine uncertainty — building scenarios, identifying which assumptions are load-bearing, setting early-warning indicators, and stress-testing a plan against futures rather than forecasting one. Use this when a decision depends on something unknowable, when a plan assumes conditions that may not hold…
ai-ml-governance
Governs models and AI systems in production — intended use, evaluation, monitoring, human oversight, documentation, and the decision to deploy or retire. Use this before deploying a model or AI feature, when defining evaluation criteria, when a model's behavior has drifted, when assessing AI risk or regulatory…
support-operations
Designs and runs the support function — channels, queues, routing, staffing, service levels, quality, and the metrics that show whether it is working. Use this to set up or fix support operations, choose channels, size a team, set or renegotiate service levels, reduce cost per contact, diagnose long queues or poor…
paid-advertising
Plans, runs, and optimizes paid acquisition across search, social, and display — account structure, targeting, creative, bidding, budget, and the analysis that says whether to scale or stop. Use this to set up or restructure campaigns, write and iterate ad creative, diagnose rising costs or falling performance, decide…