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 skills add LuisFelipeMoro/Harness-devkit --skill validate-codegit clone --depth 1 https://github.com/LuisFelipeMoro/Harness-devkitWrote 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/luisfelipemoro/harness-devkit/validate-code)<a href="https://agentmods.dev/skills/luisfelipemoro/harness-devkit/validate-code"><img src="https://agentmods.dev/badge/skills/luisfelipemoro/harness-devkit/validate-code/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/skills/luisfelipemoro/harness-devkit/validate-code"><img src="https://agentmods.dev/badge/skills/luisfelipemoro/harness-devkit/validate-code.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.00000 | $0.01814 |
| Opus 5.5 | $0.00000 | $0.00726 |
| Sonnet 5.5 | $0.00000 | $0.00363 |
| Haiku 4.5 | $0.00000 | $0.00181 |
Grade A, and why
validate-code scanned grade A with 0 findings 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 33 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Input: the working diff vs BASE=$(git merge-base HEAD main) (fall back to master); optionally the plan path; --full forces full depth.
Output: the depth line, a gate report (one PASS/FAIL row per gate + overall line + coverage figure), the qa and stress reports the depth dispatched (written to the plan's validation/ dir, summarised on screen), and a verdict with its self-check — printed, never written to source.
Boundary: verification with a bounded fix loop — source files change only in Score Loop rounds (references/quality-gate-reference.md § Score Loop, plugin root), each by a fresh coder; never commits or pushes. Dispatches by depth (sonnet), plus the loop's coder when it triggers: cosmetic none · light qa · standard/full qa + stress; the verdict is verdict.sh + an inline self-check.
Rules: every gate must pass before a change counts as done — a single failing gate blocks; duplication (≤ 3% introduced) runs once for the whole repo regardless of stack, because a duplicate passes every other gate; tests + coverage is the mandatory sensor and coverage is a floor, never the goal; exit 2 from any sensor is UNENFORCED, never a pass; an unmitigated CRITICAL security finding is always NOT READY; depth only ever escalates — classify-diff.sh sets the floor, --full raises it, nothing lowers it, and an unmeasured classification is full depth. Load each reference only at the step that names it.
Steps
-
Scope.
git diff --name-only $BASEplus untracked files. Empty → say so and stop. Plan given → itsLanguage/Tierdrive the gates. No plan → at this step, readreferences/stack-detection.md(this skill's) and detect the stack; a monorepo matches every stack present. -
Depth.
scripts/verify/classify-diff.sh --diff $BASE --declared cosmetic— declaring the lowest roster makes the script report what the diff requires, since it never de-escalates. Exit 0 →cosmetic; exit 1 → theXof itsROSTER: ESCALATE cosmetic → Xline; exit 2 (dirty tree, empty diff, security-scan unmeasured) →full, quoting itsUNMEASUREDline — commit first to let it measure.--full→full, whatever it said. Print one line before any gate:Depth: {depth} — {its REASON: line | UNMEASURED reason | --full}, then what runs:Depth classify-diff found qa stress Verdict (step 6) cosmetic every changed file doc/style, content clean — — --roster cosmetic --classify-exit 0light tests/docs only, or ≤ 2 non-test source files, no dependency change, no Stress trigger ✓ — --no-review --no-stress --qa Qstandard > 2 non-test source files or a dependency manifest changed ✓ ✓ --no-review --stress S --qa Qfull a Stress trigger, a doc file holding code, unmeasured, or --full✓ ✓ --no-review --stress S --qa QGates and sensors run at every depth; depth only decides which agents are dispatched.
-
Gates — run all, collect every result into
$TMPDIR/validate-{slug}/gates.txt. At this step, readreferences/execution-and-report.md(this skill's) for the order and the sharedreferences/quality-gate-reference.md(plugin root) for the per-stack commands: format → type/vet/static analysis → lint → build (type-check alone misses bundler/compiler-only failures) → tests + coverage → race (Go) → vulnerability scan (network, last).api-spec.yamlpresent → its spec gates first. Go modernize is advisory and never counts toward Overall. Report mode: keep going past a failure so every result is reported. -
Sensors into the same file:
bash ~/.claude/git-hooks/dup-gate.sh --worktree·scripts/verify/security-scan.sh --diff $BASE·scripts/verify/tautology-scan.py --diff $BASE· with a plan,scripts/verify/spec-coverage.sh <plan> <test paths>andscripts/verify/falsification.sh docs/plans/{slug}/evidence.md <plan>(no evidence file →falsification: no evidence file, a FAIL). -
qa + stress, in parallel (both read-only), as the depth table says — cosmetic skips this step, light dispatches
qaalone. At this step, readreferences/validation-loop.md(this skill's) for the prompt contract and routing. Prompts carry paths only —Base: {BASE} · Plan: {path | none} · Gate output: $TMPDIR/validate-{slug}/gates.txtplus the contract line.subagent_type: "qa"andsubagent_type: "stress", bothmodel: "sonnet". -
Verdict.
scripts/verify/verdict.shwith the depth's mode from the table, plus[--critical-security N] [--critical-other N] [--hard-gate-fail "a,b"]— every FAIL from the gates, sensors, qa and stress goes into--hard-gate-fail. This is the verdict on the code itself (Stress 35% + QA 30% renormalised; QA alone at light; gates only at cosmetic); the review lens belongs to/review-code, a separate skill with its own pass/block, so this verdict never waits for or invents a review or stress score. -
Self-check inline. At this step, read
agents/verdict.mdand apply its Security Gate, narrative and five-axis Verdict Self-Check (Evidence · Traceability · Independence · Residual risk · Actionability), with its downgrade rules. If step 6 or this check fires a Score Loop trigger (overall score below the bar, a hard-gate FAIL, or a CRITICAL in the Security Gate), run the Score Loop perreferences/validation-loop.md§ Score Loop before step 8; step 8 then reports the final round, with the first pass shown as its starting score. -
Report. First write each qa and stress return verbatim to
docs/plans/{slug}/validation/qa.md/stress.md(no plan →$TMPDIR/validate-{slug}/); both files are release-excluded. Then print the depth line, then the gate table and overall line in the template ofreferences/execution-and-report.md(Overall: ✅ PASS — all gates green · {X}% coverage · {N} tests, or the failing gates); then the summary ofreferences/validation-output-format.md(plugin root; no review score — that is/review-code's): per agent only its score line, its top 3 findings and the file path it was written to, the verdict line, self-check scores, Security Gate, top 3 action items each withfile:line, and the outcome row fromreferences/validation-loop.md. Headless (references/headless-runs.md): the last line printed isVERDICT_LINE: <verdict> <score>; the sentinel is the plain last line: no markdown, bold, backticks or blockquote around it.
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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 Changed · -1 lines 4f9f4c9b0f20
- 12d ago Changed c52cf1ff7b98
- 16d ago Changed 6264ec46eff9
- 1mo ago First seen · 34 lines · 0 tokens per session scan A 2fca36395431
validate-code is a skill published in the GitHub repository LuisFelipeMoro/Harness-devkit (14 stars, last pushed 6d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,814 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-26.
validate-code compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| validate-codeLuisFelipeMoro/Harness-devkit | Skill | 14 | 6d ago | MIT | A | 0 | Claude Code |
| autoreviewopenclaw/clawhub | Skill | 9.6k | today | MIT | A | 17 | Claude Code, Codex |
| omh-code-reviewrlaope/oh-my-hermes | Skill | 6.2k | yesterday | MIT | A | 18 | Claude Code |
| agent-teams-simplify-and-hardenLeoYeAI/openclaw-master-skills | Skill | 2.2k | 10d ago | MIT | A | 115 | Claude Code, Codex |
| asplos-writing-stylebrycewang-stanford/Awesome-Journal-Skills | Skill | 1.5k | 4d ago | MIT | A | 65 | Claude Code |
| revdiff-planumputun/revdiff | Skill | 974 | today | MIT | A | 84 | Claude Code |
| re0-mergeLilMGenius/paperthin | Skill | 1.5k | yesterday | MIT | A | 51 | Claude Code, Codex |