validation-gates

validation-gates is a skill for Claude Code, Codex from monkilabs/opencastle. It costs 70 tokens per session (1,171 once invoked), scanned B, original, MIT.

A set of ten checks for validating code changes before they are merged or deployed. The checks cover secrets, tests, dependencies, browser behavior, regressions, and final smoke tests.

In plain words
What is it for?
Use it for pre-deployment validation, CI checks, regression testing, dependency audits, and browser testing of UI changes.
Why use it?
It reduces the chance that a change ships with security problems, broken behavior, missing checks, or untested interface changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it for pre-deployment validation, CI checks, regression testing, dependency audits, and browser testing of UI changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/monkilabs/opencastle/validation-gates
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 monkilabs/opencastle --skill validation-gates
Clone the repo
git clone --depth 1 https://github.com/monkilabs/opencastle

Made for: Claude Code, Codex.

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-gates

README.md
[![agentmods](https://agentmods.dev/badge/skills/monkilabs/opencastle/validation-gates/github.svg)](https://agentmods.dev/skills/monkilabs/opencastle/validation-gates)
Your own site
<a href="https://agentmods.dev/skills/monkilabs/opencastle/validation-gates"><img src="https://agentmods.dev/badge/skills/monkilabs/opencastle/validation-gates/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 validation-gates

Your own site · 80×15
<a href="https://agentmods.dev/skills/monkilabs/opencastle/validation-gates"><img src="https://agentmods.dev/badge/skills/monkilabs/opencastle/validation-gates.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,171 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 78
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • medium MCP Rug Pull · line 106
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
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.00070 $0.01171
Opus 5 $0.00035 $0.00585
Sonnet 5 $0.00014 $0.00234
Haiku 4.5 $0.00007 $0.00117

Measured 5d ago against content hash 32e0aa683f28, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade B, and why

validation-gates 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 5d 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.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf node_modules/.cache .next/cache .astro/ dist/

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

src/orchestrator/skills/validation-gates/SKILL.md · 110 lines

How it starts

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

Validation Gates

Gate Name Runs When
1 Secret Scanning Every delegation
2 Deterministic Checks Every delegation
3 Blast Radius Check Every delegation
4 Dependency Audit When package.json or lockfiles change
5 Fast Review Every delegation (with auto-PASS exceptions)
6 Cache Clearing Before browser testing
7 Browser Testing UI changes
8 Regression Testing Every delegation
9 Panel Review High-stakes changes only
10 Final Smoke Test Feature completion (after all tasks Done)

Gate 1: Secret Scanning

Secret scan (Constitution rule 1). Block on any token, key, password, or connection string in code, logs, commits, or terminal output.

Scan for: AWS keys (AKIA...), API tokens (sk-..., ghp_...), private keys, database URIs, hardcoded password/secret/api_key/token assignments (assignments, not references), .env contents pasted into source, and base64-encoded secrets.

On a hit: block, name the file and line, and re-delegate with an instruction to use an environment variable. Already committed? Rotate it - git history is permanent.

Not a hit: obviously fake test fixtures (sk-test-1234567890), documentation placeholders (YOUR_API_KEY_HERE), and pattern matches inside explanatory comments.

Scan every diff before any other gate: gitleaks detect --source . --verbosity warn (or CI equivalent) — fail on any findings.

Gate 2: Deterministic Checks

Run for every affected project (resolve exact commands via codebase-tool skill): lint (with auto-fix), test, build. All must pass with zero errors.

npm run lint && npm test --silent && npm run build

Gate 3: Blast Radius Check

Metric Normal Warning Escalate
Lines changed ≤200 201–500 >500
Files changed ≤5 6–10 >10
Projects affected ≤1 2 >2
  • Normal — proceed
  • Warning — log; investigate partition drift
  • Escalate — STOP; verify partition; split or revert; no auto-PASS

Read the full file on GitHub · 110 lines

Files

What ships with it

1 file 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. 5d ago First seen · 110 lines · 70 tokens per session scan B 32e0aa683f28

Subscribe to this mod's changes

validation-gates is a skill published in the GitHub repository monkilabs/opencastle (61 stars, last pushed 11d ago), licensed MIT. It adds 70 tokens to every session and 1,171 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

systematic-debugging

4-phase systematic debugging methodology with root cause analysis and evidence-based verification. Use when debugging complex issues.

DDS-Solutions/AI-TadPole-OS · 25 tokens

webapp-testing

Web application testing principles. E2E, Playwright, deep audit strategies.

DDS-Solutions/AI-TadPole-OS · 20 tokens

test-warp-ui

Guides testing Warp UI features and changes using the computer use tool. Use this skill only when computer-use testing was requested (explicit request or accepted offer) and the computeruse tool is available to the agent. Covers launching Warp and verifying UI behavior.

warpdotdev/warp · 55 tokens

test-electron-app

Drive the real running PostHog Electron app (live tRPC, workspace-server, real data) over CDP with agent-browser. Connect to the running app on port 9222, test desktop changes against a local Django stack, snapshot the accessibility tree, inspect network requests, and screenshot only when explicitly asked. Use when…

PostHog/posthog-foss · 112 tokens

pyats-dynamic-test

Generate and execute deterministic pyATS aetest validation scripts - interface state, OSPF neighbors, BGP paths, ping matrices, and custom compliance tests. Use when writing a network test, validating post-change state, running pass/fail checks, or building automated regression tests.

automateyournetwork/netclaw · 61 tokens

test-loop

Plan, generate, and heal an executable E2E test suite from approved acceptance criteria (web and mobile).

HoangNguyen0403/agent-skills-standard · 25 tokens