validation-gates

Scan code changes for secrets and run deterministic validation gates.

59|12|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/etylsarin/opencastle --skill validation-gates
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: validation-gates
Source: https://github.com/etylsarin/opencastle/tree/main/src/orchestrator/skills/validation-gates
Command: npx skills add https://github.com/etylsarin/opencastle --skill validation-gates

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Centralizes and enforces pre-merge validation checks so that secrets, regressions, dependency risks, UI regressions, and scope creep are caught early in agent-driven orchestration workflows, reducing costly post-merge fixes and security incidents.

Core Features & Use Cases

  • Secret Scanning: Hard-blocks tokens, keys, and connection strings found in diffs and requires rotation if leaks are discovered.
  • Deterministic Checks & Regression Testing: Runs lint, test, and build for every affected project and full regression suites where needed.
  • Blast Radius & Dependency Audits: Quantifies scope, escalates large or sensitive changes, and audits package changes for vulnerabilities, licenses, and size impact.
  • Browser Testing, Cache Management, and Panel Reviews: Automates cache clearing, mandates Chrome screenshots for UI changes, and invokes panel review for high-stakes changes.
  • Use Case: When an agent opens a delegation modifying frontend and backend code, use these gates to scan for secrets, run deterministic checks across affected projects, assess blast radius, perform dependency audits if lockfiles changed, capture browser screenshots for UI work, and either auto-accept or escalate to panel review.

Quick Start

Run the validation-gates skill to scan the current change set for secrets, run deterministic checks, perform blast radius and dependency audits, and produce a gate-by-gate pass/fail report.

Frequently Asked Questions about validation-gates

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent secret leaks and regressions before merging code changes?

Pre-merge validation gates prevent secret leaks and regressions by scanning diffs for tokens, running deterministic lint and build checks, and executing regression tests across affected projects. They produce a gate-by-gate pass or fail report to block risky merges.

What is blast radius analysis in CI pipelines and when do I need it?

Blast radius analysis in CI pipelines quantifies the scope of code changes to determine if they are large or sensitive enough to require escalation. You need it when agent-driven delegations modify multiple frontend and backend projects simultaneously.

How do I automate dependency audits and secret scanning for pull requests?

Automate dependency audits and secret scanning by applying validation gates that check lockfile changes for vulnerabilities and licenses while hard-blocking connection strings in diffs. This requires rotation if leaks are discovered before merging.

Does browser testing for UI regressions work with automated code review workflows?

Browser testing integrates into automated code review workflows by clearing caches and capturing Chrome screenshots for UI changes. It invokes panel reviews for high-stakes modifications and runs final smoke tests with evidence collection.

What's the best way to enforce pre-merge checks in agent orchestration workflows?

Enforce pre-merge checks by running validation gates within agent orchestration workflows to scan changes, run deterministic checks, assess blast radius, and auto-accept or escalate to panel review based on the gate-by-gate report.

Why does secret scanning hard-block tokens and require rotation in my diff?

Secret scanning hard-blocks tokens in your diff because keys and connection strings pose immediate security risks. It requires rotation if leaks are discovered to prevent unauthorized access and costly post-merge security incidents.