validate-code

validate-code is a skill for Claude Code from LuisFelipeMoro/Harness-devkit. It costs 0 tokens per session (1,814 once invoked), scanned A, original, MIT.

A read-only verification workflow for the current code changes that runs the relevant project checks, quality review, stress review, and a final verdict.

In plain words
What is it for?
Use it to validate changes against their base branch, with an optional plan or full-depth review, before committing or opening a pull request.
Why use it?
It shows whether a diff is ready without modifying files or applying automatic fixes. A failing required check blocks the change from being considered complete.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths.

Part of the coding-pipeline plugin — 5 skills, 13 agents, 5 hooks shipped together

Good fit Use it to validate changes against their base branch, with an optional plan or full-depth review, before committing or opening a pull request.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/luisfelipemoro/harness-devkit/validate-code
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.

Any agent
npx skills add LuisFelipeMoro/Harness-devkit --skill validate-code
Clone the repo
git clone --depth 1 https://github.com/LuisFelipeMoro/Harness-devkit

Made for: Claude Code.

Or install coding-pipeline, the plugin that ships this one along with the rest of its 5 skills, 13 agents, 5 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 validate-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/luisfelipemoro/harness-devkit/validate-code/github.svg)](https://agentmods.dev/skills/luisfelipemoro/harness-devkit/validate-code)
Your own site
<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.

agentmods 80×15 button for validate-code

Your own site · 80×15
<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>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,814 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.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

Measured 8d ago against content hash 4f9f4c9b0f20, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

plugins/coding-pipeline/skills/validate-code/SKILL.md · 33 lines

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

  1. Scope. git diff --name-only $BASE plus untracked files. Empty → say so and stop. Plan given → its Language / Tier drive the gates. No plan → at this step, read references/stack-detection.md (this skill's) and detect the stack; a monorepo matches every stack present.

  2. 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 → the X of its ROSTER: ESCALATE cosmetic → X line; exit 2 (dirty tree, empty diff, security-scan unmeasured) → full, quoting its UNMEASURED line — 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 0
    light tests/docs only, or ≤ 2 non-test source files, no dependency change, no Stress trigger ✓ — --no-review --no-stress --qa Q
    standard > 2 non-test source files or a dependency manifest changed ✓ ✓ --no-review --stress S --qa Q
    full a Stress trigger, a doc file holding code, unmeasured, or --full ✓ ✓ --no-review --stress S --qa Q

    Gates and sensors run at every depth; depth only decides which agents are dispatched.

  3. Gates — run all, collect every result into $TMPDIR/validate-{slug}/gates.txt. At this step, read references/execution-and-report.md (this skill's) for the order and the shared references/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.yaml present → 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.

  4. 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> and scripts/verify/falsification.sh docs/plans/{slug}/evidence.md <plan> (no evidence file → falsification: no evidence file, a FAIL).

  5. qa + stress, in parallel (both read-only), as the depth table says — cosmetic skips this step, light dispatches qa alone. At this step, read references/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.txt plus the contract line. subagent_type: "qa" and subagent_type: "stress", both model: "sonnet".

  6. Verdict. scripts/verify/verdict.sh with 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.

  7. Self-check inline. At this step, read agents/verdict.md and 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 per references/validation-loop.md § Score Loop before step 8; step 8 then reports the final round, with the first pass shown as its starting score.

  8. 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 of references/execution-and-report.md (Overall: ✅ PASS — all gates green · {X}% coverage · {N} tests, or the failing gates); then the summary of references/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 with file:line, and the outcome row from references/validation-loop.md. Headless (references/headless-runs.md): the last line printed is VERDICT_LINE: <verdict> <score>; the sentinel is the plain last line: no markdown, bold, backticks or blockquote around it.

Read the full file on GitHub · 33 lines

Files

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.

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. 8d ago Changed · -1 lines 4f9f4c9b0f20
  2. 12d ago Changed c52cf1ff7b98
  3. 16d ago Changed 6264ec46eff9
  4. 1mo ago First seen · 34 lines · 0 tokens per session scan A 2fca36395431

Subscribe to this mod's changes

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.

Related

validate-code compared with skills from other repositories

validate-code next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
validate-codeLuisFelipeMoro/Harness-devkitSkill146d agoMITA0Claude Code
autoreviewopenclaw/clawhubSkill9.6ktodayMITA17Claude Code, Codex
omh-code-reviewrlaope/oh-my-hermesSkill6.2kyesterdayMITA18Claude Code
agent-teams-simplify-and-hardenLeoYeAI/openclaw-master-skillsSkill2.2k10d agoMITA115Claude Code, Codex
asplos-writing-stylebrycewang-stanford/Awesome-Journal-SkillsSkill1.5k4d agoMITA65Claude Code
revdiff-planumputun/revdiffSkill974todayMITA84Claude Code
re0-mergeLilMGenius/paperthinSkill1.5kyesterdayMITA51Claude Code, Codex