Skip to content
Skills Library
Programming · Review & audit

gate-check

/gate-check

For ai-dev-workflow template maintainers only. Do not trigger during normal development workflow. Deterministic pre-review gate that verifies source vs .github/** sync parity and catalog counts before committing changes to the template repo itself. Triggers on: "gate check", "run gate", "pre-review check", "verify before review", "check sync drift", "check catalog parity". Reports GATE PASSED / GATE PASSED WITH NOTES / GATE FAILED.

Licence
Apache-2.0
Last repository change
16.08.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
1
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 16.08.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/run-gate-check.ps1

What it does and when to use it

For ai-dev-workflow template maintainers only. Do not trigger during normal development workflow. Deterministic pre-review gate that verifies source vs .github/** sync parity and catalog counts before committing changes to the template repo itself. Triggers on: "gate check", "run gate", "pre-review check", "verify before review", "check sync drift", "check catalog parity". Reports GATE PASSED / GATE PASSED WITH NOTES / GATE FAILED.

Triggers from the description

gate checkrun gatepre-review checkverify before reviewcheck sync driftcheck catalog parity
Original author description

For ai-dev-workflow template maintainers only. Do not trigger during normal development workflow. Deterministic pre-review gate that verifies source vs .github/** sync parity and catalog counts before committing changes to the template repo itself. Triggers on: "gate check", "run gate", "pre-review check", "verify before review", "check sync drift", "check catalog parity". Reports GATE PASSED / GATE PASSED WITH NOTES / GATE FAILED.

How it works

  1. ⚠️ Scope
  2. Verdict Semantics
  3. Minimum Check Set
  4. Boundary: gate-check vs agentic-eval
  5. Three-Layer Ordering at Code→Review Handoff
  6. GATE PASSED WITH NOTES Escalation Path
  7. Hard-Stop Enforcement
Original SKILL.md headings · 98 lines, 759 words
SKILL.md preview
---
name: gate-check
description: >
  For ai-dev-workflow template maintainers only. Do not trigger during normal development workflow.
  Deterministic pre-review gate that verifies source vs .github/** sync parity and catalog counts
  before committing changes to the template repo itself.
  Triggers on: "gate check", "run gate", "pre-review check", "verify before review",
  "check sync drift", "check catalog parity". Reports GATE PASSED / GATE PASSED WITH NOTES / GATE FAILED.
---

# Gate-Check Skill

Deterministic automated quality gate. Runs before `agentic-eval` and `code-reviewer`. Hard failures stop the pipeline.

## ⚠️ Scope

**This skill is for ai-dev-workflow template maintainers only.**

It verifies sync parity between the `skills/`, `agents/`, `instructions/`, `prompts/` source folders
and the generated `.github/**` copies — checks that are only meaningful inside the template repository itself.

If you are using this template in your own project (via `bootstrap.ps1` or `install-apply.ps1`),
`gate-check` is **not deployed** to your project. You do not need it and should not trigger it.

## Verdict Semantics

| Verdict | Meaning | Action |
|---------|---------|--------|
| `GATE PASSED` | All required checks pass; no blocking issues | Proceed to `agentic-eval` → `code-reviewer` |
| `GATE PASSED WITH NOTES` | Required checks pass; non-blocking warnings present | Log warning to `02-decision-log.md`, then proceed |
| `GATE FAILED` | One or more required checks failed | **STOP. Do not proceed to agentic-eval or code-reviewer. Resolve failures first.** |

### Concrete Examples

**GATE PASSED**
> Managed `.github` destinations: no drift. Catalog parity: 9 agents / 10 prompts / 35 total skills / 34 adopter skills / 1 maintainer-only skill. → `GATE PASSED`

**GATE PASSED WITH NOTES**
> Agent structure check: a canonical Agent exceeds the 25-line soft target while retaining all required responsibility fields.
> → `GATE PASSED WITH NOTES` — record the warning and proceed only because no deterministic contract failed.

**GATE FAILED**
> `check-sync.ps1` reports drift: `.github/agents/coder.agent.md` is out of date with source.
> → `GATE FAILED` — run `pwsh -File .\tools\sync-dotgithub.ps1` and re-run gate-check.

## Minimum Check Set

| Check | Required? | Command / Method |
|-------|-----------|-----------------|
| Managed source vs `.github` destinations | **Required** | `pwsh -File .\tools\check-sync.ps1` (read-only; exit code 0 = clean) |
| Catalog count parity | **Required** | `pwsh -File .\tools\audit-catalog.ps1` (exit code 0 = clean) |
| Lifecycle projection contract | **Required** | `pwsh -File .\tools\check-lifecycle-contract.ps1` (portable parity, exclusions, mappings) |
| Change Package semantics | **Required** | `pwsh -File .\tools\verify-change-package.ps1` (new/historical content and role resolver) |
| Canonical Agent structure | **Required** | `pwsh -File .\tools\check-agent-structure.ps1` (hard findings exit nonzero; line-count warnings exit 0) |
| Python bootstrap tests | **Required** | pytest 8.3.5 |
| PowerShell bootstrap/tool tests | **Required** | Pester 5.6.1 |
| Diff hygiene | **Required** | `git diff --check` |
| Worktree invariant | **Required** | `git status --porcelain=v1` unchanged before/after |

The gate never installs dependencies or repairs drift. Missing pytest or Pester is reported as `ENVIRONMENT_PREREQUISITE_MISSING` and stops with a nonzero exit code. CI is responsible for preparing the pinned test environment.

Every required check above must pass for `GATE PASSED`. The gate does not install missing prerequisites or repair drift.

The Agent checker is deterministic and per-file. It reports required persona/lens/scope/handoff structure, resolvable owning Skill pointers, prohibited responsibility findings, and each Agent's non-empty line count. Structural findings are hard failures; exceeding the 25-line target is a soft warning that can produce `GATE PASSED WITH NOTES` but never a nonzero result by itself. The checker performs no aggregate scoring, LLM/network call, or automatic rewrite.

## Boundary: gate-check vs agentic-eval

| Dimension | gate-check | agentic-eval |
|-----------|-----------|-------------|
| Nature | **Deterministic** (script exit codes, file diff) | **Model-based** (rubric scoring, judgment) |
| Failure type | Hard binary FAIL (exit ≠ 0) | Dimensional FAIL (rubric score below threshold) |
| When it runs | Before agentic-eval | After gate-check passes |
| Iteration | No iteration (fix and re-run) | Max 2 iterations at stage gates |
| Who resolves | Implementer (fix the code/sync) | Agent (self-correct) or human (escalation) |

`gate-check` catches objective failures. `agentic-eval` catches subjective quality gaps. They are complementary, not redundant.

## Three-Layer Ordering at Code→Review Handoff

```
1. gate-check          (deterministic; GATE FAILED = STOP)
       ↓
2. agentic-eval        (model-based; max 2 iterations at stage gate; unresolved → escalate to human)
       ↓
3. code-reviewer-agent (delegated review; independent Tier 2 gate)
```

Skipping `gate-check` or proceeding past `GATE FAILED` is a protocol violation.

## `GATE PASSED WITH NOTES` Escalation Path

When the verdict is `GATE PASSED WITH NOTES`:

1. Record the note in `changes/<slug>/02-decision-log.md` (append-only):
   ```
   ## Gate-Check Note — <date>
   - Check: <check name>
   - Finding: <brief description>
   - Decision: <proceed / defer / fix>
   ```
2. Proceed to `agentic-eval` after logging.
3. Do NOT suppress or silently ignore the note.

## Hard-Stop Enforcement

Execution mode: **hard-fail** — `run-gate-check.ps1` exits nonzero on any required-check failure, and maintainer CI runs the same gate. Whether a failing workflow blocks merging remains a repository branch-protection setting outside this script.
Files in this package (2)
  • SKILL.md 6 KB
  • scripts/run-gate-check.ps1 11 KB

Versions

RepositoryScoreLicence
This page · forgivesam168/ai-dev-workflow100Apache-2.0
undefined-ui/second-brain-os100MIT
tranhieutt/software_development_department100MIT
striderZA/OpenCodeGameStudios95MIT
striderZA/OpenCodeGameStudios95MIT
IdoCohen560/claude-unity-game-studio95MIT
chatquill/claude-code-websites90MIT
furkantokkan/agent-foundry90MIT
supernovae-st/nika81AGPL-3.0

Database snapshot: 13.11.2026 · package version e284e4eb4ab8 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100code-review-gate
    Use when code has been written, before committing, or when merging a PR; also when the user says "review my code", "check before commit", "take a look at this change", "PR review", or asks for a strict review/merge gate.
  • 100review-gate
    How to run the whiteboard repo's per-diff change-review gate — args, return contract, and the externalized-criteria mechanism for review.workflow.mjs. Use when running a standalone review gate (pre-merge, pre-un-draft, ad-hoc) or when authoring/tuning the review workflow that dev-loop composes.
  • 90pre-landing-review
    Gate-oriented safety audit for code changes before landing, using a checklist with two-pass severity triage. Triggers on: "is this safe to land", "pre-landing review", "safety check before merge", "gate check", "/pre-landing-review". NOT for diff review, use pr-review.
  • 100pre-push-parity
    Run the CI gates locally before pushing, so failures surface in seconds instead of one CI cycle at a time. Enumerates the checks in .github/workflows/, runs the locally-runnable subset in CI's order, and pins the local-vs-CI delta as a memory the first time you work in a repo.…
  • 98merge-gate
    Gate one or more open PRs before merge: CI check, then a code-level regression/business-rule review, then (only if that's clean) end-to-end Playwright verification of the PR's own workflow(s) plus two fixed baseline checks. Posts one top-level status comment per PR per run…
  • 100ql-verify
    Part of the quantum-loop autonomous development pipeline (brainstorm \u2192 spec \u2192 plan \u2192 execute \u2192 review \u2192 verify). Iron Law verification gate. Requires fresh evidence before any completion claim. Use before claiming work is done, before committing, or…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.