Anti-test-theater auditor and 16-point Pre-Launch Production Gate — detects fake green unit tests, enforces fail-then-pass assertions, unhappy-path testing, and release readiness.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Vibe Test Gate?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/abduallahjamal-vibe-test-gate)
---
name: vibe-test-gate
description: Anti-test-theater auditor and 16-point Pre-Launch Production Gate — detects fake green unit tests, enforces fail-then-pass assertions, unhappy-path testing, and release readiness.
license: MIT
compatibility: opencode, claude-code, codex
metadata:
category: testing-and-release-gate
version: "1.0.0"
---
# `vibe-test-gate` — Test-Theater Audit & Production Launch Gate
## Purpose
Defeat **Green-Check Test Theater (F4)** and **Happy-Path-Only Testing (F1)** before any deployment reaches real users.
---
## Part 1 — Anti-Test-Theater Audit Protocol
Inspect every test file created or modified and produce a verification table answering:
1. **External Behavior Proven:** Describe in one plain human sentence what observable user/API behavior the test proves (not internal mock wiring).
2. **Mutation / Sabotage Check:** Would this test **still pass** if the production function body were commented out or replaced with a static return value? If yes, flag it immediately as **`FAKE / TAUTOLOGICAL TEST`** and rewrite it.
3. **Assertion Integrity:** Flag tests with zero assertions, catch-all `try/except: pass`, or mocks that mock the system under test itself.
4. **Fail-Then-Pass (`Red -> Green`) Proof:** Every bugfix must include a test demonstrated to fail before the fix and pass after the fix.
---
## Part 2 — Unhappy-Path Test Matrix
Ensure automated or documented test coverage exists for:
- Empty, malformed, oversized, boundary, and Unicode/RTL inputs.
- Unauthenticated, expired-session, and horizontal/vertical privilege escalation (`User A` accessing `User B`'s resource).
- Upstream timeout, database pool exhaustion, and network interruption behavior.
- Prompt injection & data-exfiltration payloads on any LLM/chat input surface.
---
## Part 3 — 16-Point Pre-Launch Production Gate
Before approving a production release, verify every item (`PASS` / `FAIL` / `N/A` with evidence):
1. Static security scan (SAST) & dependency vulnerability audit clean.
2. Auth lifecycle verified end-to-end (signup, login, password reset, session expiry, RBAC, rate limits).
3. Server-side validation enforced on all write/query endpoints; zero secrets in source or git history.
4. Unhappy-path & edge-case suite passing.
5. Concurrency & connection pooling verified under realistic load.
6. Prompt-injection guardrails tested (if AI features exist).
7. Cross-browser & mobile responsive verification completed.
8. Automated backups configured, **restore-tested**, and `DROP`/`DELETE` guarded by manual confirmation.
9. Error monitoring, alerting, and 2 AM incident runbook documented.
10. All placeholder text/mock data/dummy images replaced; zero broken links.
11. Dependencies version-pinned; external CDN fallbacks or local hosting verified.
12. Client network tab audited (zero redundant request storms per view).
13. Independent review completed (reviewer ≠ author model).
14. IAM/access policies written from scratch with least privilege (never copy-pasted across prompts/tools).
15. Legal, privacy, accessibility, and UI originality checks completed.
16. Repository documentation (`README`, setup, architecture decisions) ready for the next engineer to onboard within one hour.