Skip to content
Back to skills

Test Integrity Gate

ASecurity

Use when AI-written code or tests claim green and you need deterministic proof that the new test catches the old bug.

  • 5 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 6, 2026
ai-agentspythonbashgit

Security analysis

A100/100

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

Scanned September 6, 2026

npx -y skills add zaingz/coding-quality-loop --skill test-integrity-gate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test Integrity Gate?

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

Security grade badge for Test Integrity Gate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/zaingz-test-integrity-gate/badge)](https://www.skillsdirectory.com/skills/zaingz-test-integrity-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-integrity-gate
description: "Use when AI-written code or tests claim green and you need deterministic proof that the new test catches the old bug."
license: MIT
compatibility: "Requires git and Python 3.10+. No Python packages or model-specific runtime."
---

# Test Integrity Gate

Your agent's green tests may be lying. This gate checks the important question:
**does the proposed test fail against the old code?**

## Run

From the repository root:

```bash
python3 "<skill-root>/scripts/test_integrity.py" --base <base-ref> --command "<focused test command>"
```

Replace `<skill-root>` with this skill's installed directory. Use the merge
target or task-start commit as `<base-ref>`, not the current `HEAD`.

## Decision

- **PASS** only when the command fails against the base source with the proposed
  test files overlaid, then passes in the current working tree.
- **FAIL** when it passes against old source, fails now, times out, or the
  worktree cannot be built. "Not proven" never counts as success.
- Separately inspect the diff for edited expected values, weakened matchers,
  removed assertions, skips, or lower coverage thresholds. Those are review
  clues; replay is the blocking proof.

For completion contracts, independent review, diff scope, and CI receipts, use
the full [Coding Quality Loop](https://github.com/zaingz/coding-quality-loop).

Files in this skill

  • .claude-plugin/plugin.json516 B
  • README.md1.2 KB
  • SKILL.md1.3 KB
  • assets/demo.svg1.9 KB
  • scripts/test_integrity.py5.7 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.