Skip to content
Back to skills

Test Gate

ASecurity

Runs the declared test command and gates on what it printed: no test run is UNVERIFIED, not PASS.

  • 11 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 18, 2026
ai-agentspythonshellbashsecurity

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned November 18, 2026

npx -y skills add JiamingShi-JsPhys/chelate-shell --skill test-gate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test Gate?

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

Security grade badge for Test Gate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jiamingshi-jsphys-test-gate/badge)](https://www.skillsdirectory.com/skills/jiamingshi-jsphys-test-gate)

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: test-gate
version: 1.4.0
description: >
  Runs the declared test command and gates on what it printed: no test run is
  UNVERIFIED, not PASS.
metadata:
  version: 1.4.0
  author: Jiaming Shi
  license: MIT
  entry_point: python run.py
  python_requires: '>=3.10'
---

# test-gate

This gate decides whether the code passes the tests the project declared. The
verdict is read from what the command printed, not from its exit status alone.

- **Stage:** `gates` · **Sandbox:** yes (isolated process) · **Dependencies:** none

## Quick Execution

Run this exact form — do not read the source tree:

```bash
python run.py --root <WS> --action run
python run.py --root <WS> --action run --command '["python","-m","pytest","-q"]'
```

- The command is an **argument list, never a string** (no shell), declared in
  `<WS>/.chelate/test-gate.json`; `command[0]` must pass the sandbox
  executable whitelist.
- Results land in `<WS>/process/gates/`, the full report in `<WS>/process/`.

## Verdicts

| Status | When |
| --- | --- |
| `PASS` | the output counts passes, no failures, and the exit code is 0 |
| `FAIL` | the output counts failures or errors, or the command exits non-zero |
| `UNVERIFIED` | no test ran, no readable summary was printed, the command timed out, or it could not be started |

Three rules are deliberate:

- **A green exit code with nothing run is UNVERIFIED.** `Ran 0 tests` and
  `collected 0 items` are caught.
- **A red summary beats a green exit code.** A wrapper that swallows its
  child's status cannot turn a failing run into a PASS.
- **A green exit code with no readable summary is UNVERIFIED too.** No pass
  and no skip in the output is not evidence that a test ran.

## When to use

- Code changed and the pipeline must not continue unless its tests pass.
- A report claims "the tests pass" and the claim has to be checked.

## When NOT to use

- You want the source *style* checked — that is `code-gate`.
- You want a security screen of the source — that is `security-guard`.
- The suite needs a GPU, a network, or more than the sandbox budget: run it in
  CI and gate on the artifact instead.

## More

- [declaring the command, outputs, failure handling and limits](references/test-gate-reference.md)

Files in this skill

  • LICENSE1 KB
  • README.md1.9 KB
  • SKILL.md2.2 KB
  • manifest.json481 B
  • references/test-gate-reference.md2.4 KB
  • run.py3.6 KB

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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