validation-loop

validation-loop is a skill for Claude Code, Codex from dhslegen/digital-delivery-team. It costs 53 tokens per session (1,887 once invoked), scanned A, original, MIT.

A development routine that checks each important file immediately after it is changed by running the project’s build, lint, type-check, or test commands.

In plain words
What is it for?
Use it during backend or frontend implementation and when applying fixes, choosing commands based on the project’s package manager and build setup.
Why use it?
It prevents many broken files from accumulating before anyone tests them, making the source of a failure easier to locate. When a check fails, the workflow pauses for a decision.

Skill for Claude CodeCodex

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 skills/dhslegen/digital-delivery-team/validation-loop
Any agent
npx skills add dhslegen/digital-delivery-team --skill validation-loop
Clone the repo
git clone --depth 1 https://github.com/dhslegen/digital-delivery-team

Made for: Claude Code, Codex.

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 validation-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/dhslegen/digital-delivery-team/validation-loop.svg)](https://agentmods.dev/skills/dhslegen/digital-delivery-team/validation-loop)
Your own site
<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>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,887 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.00053 $0.01887
Opus 5 $0.00026 $0.00944
Sonnet 5 $0.00011 $0.00377
Haiku 4.5 $0.00005 $0.00189

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

Security

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
skills/validation-loop/SKILL.md · 166 lines

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-api IMPLEMENT phase(每个 step 后)
  • /build-web IMPLEMENT 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.jsonpackage.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/.tsxtsc --noEmit <path> + 该文件 lint
  • .js<lint> <path>
  • .java:当前模块 mvn -B compile -pl <module>
  • .gogo vet <package> + go build <package>
  • .pymypy <path> + ruff check <path>

Read the full file on GitHub · 166 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. 3d ago First seen · 166 lines · 53 tokens per session scan A e3b90169f829

Subscribe to this mod's changes

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.

Related

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…

cbrock84/headcount · 74 tokens

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.

rsmdt/the-startup · 37 tokens

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…

cbrock84/headcount · 78 tokens

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…

cbrock84/headcount · 83 tokens

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…

cbrock84/headcount · 77 tokens

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…

cbrock84/headcount · 78 tokens