Skip to content
Back to skills

Gate Probe

ASecurity

Prove a gate before trusting it. Inventory violations, plant a defect, verify RED, restore GREEN, prevent idle scans, and confirm automatic wiring.

  • 141 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 2, 2026
developmentrustgit

Security analysis

A100/100

Scanned September 26, 2026

npx -y skills add wlsdks/ontology-atlas --skill gate-probe --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gate Probe?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Gate Probe
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wlsdks-gate-probe-ontology-atlas/badge)](https://www.skillsdirectory.com/skills/wlsdks-gate-probe-ontology-atlas)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: gate-probe
description: Prove a gate before trusting it. Inventory violations, plant a defect, verify RED, restore GREEN, prevent idle scans, and confirm automatic wiring.
when_to_use: Use when adding or changing any automated gate (lint, contract test, e2e, CI step), or before trusting a gate that has never been probed.
---

# Gate probe

A green gate may be protecting the product or looking at nothing. Deliberately
breaking the protected property is how to tell.

- A **gate** is an automated check that blocks a violation: lint, contract test,
  e2e spec, or CI step.
- A **probe** is a defect planted on purpose to prove that gate turns red.

This repository has shipped gates that searched generated prose instead of the
screen, stayed green after the subject was deleted, checked only a function name,
matched zero files, or were invoked by no workflow. None had been probed.

## 0. State the property

Write one sentence describing the product fact the gate protects. Distinguish the
fact from its implementation. “The three installation stages remain reachable”
is a property; “scroll equals zero” is an implementation detail.

## 1. Inventory before enabling

For a new rule, count every current hit and classify it by pattern and legitimacy.
Confirm the real violations fit one pull request. Hundreds of new warnings are
noise that hides existing signal. A global raw-shadow ban once raised warnings
from 144 to 548; a measured selector found five actual defects.

If signal cannot be separated from noise, do not create the rule. Record the
inventory and why the gate was rejected.

## 2. Plant the defect and require RED

Temporarily restore the exact defect or insert one violating line. Run the gate.
If it stays green, the gate does not exist.

- Change only the probe line; never use `git checkout -- <file>` and erase other work.
- Confirm the failure message identifies what and where to fix.
- Probe every independently protected condition.
- Restore the line immediately and require GREEN again.

## 3. Block idle scans

A scan over zero subjects is always green. Count the subjects and fail at zero.
For glob-based rules, prove the glob matches real files. A ratchet baseline that
would fail when the scan narrows is another valid anti-idle layer.

```ts
expect(keys.length).toBeGreaterThan(0);
expect(measured, 'the collector measured nothing').toBeGreaterThan(3);
```

## 4. Confirm automatic wiring

- Find the exact CI workflow and step that invokes the gate.
- Confirm `pnpm checks:changed -- <affected paths...>` recommends it.
- A check that depends on human memory is not a gate.

## 5. Document it

For a new command, add it to `docs/DEVELOPMENT-CHECKS.md` and mention it in
`README.md`. For an existing command, update those entries only if its scope or
invocation changed; adding a regression case does not require duplicate entries.
When a contract covers a layer lint cannot see, register that layer in the design
rule table too.

## Report

```md
## Gate probe — <name>

**Property**: <one product fact>
**Inventory**: <N violations and classification, or not applicable>
**Probe**: <inserted defect> → <RED and diagnostic>
**Idle protection**: <subject-count assertion>
**Wiring**: <workflow step and checks:changed mapping>
**Decision**: trustworthy / not yet trustworthy because …
```

## Never

- Trust a gate merely because it passes.
- Pin a human-written sentence. Generate and diff, verify a reference, derive
  expected data from code, or mechanically inventory syntax instead.
- Maintain a hand-written forbidden-word list that weakens unless expanded.
- Assume a failure means product code is wrong before reproducing the gate's
  subject. Several past red gates were stale or scoped incorrectly.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.