Agent skill
quality-gate
Right-side-of-V verification/validation orchestration for a change or PR. Produces a single Quality Gate Report with evidence covering: code review, security audit, performance regression risk, requirements traceability, acceptance/UAT scenarios, and (when UI changes) visual regression testing. Use when preparing a PR for merge/release, doing a “ready?” check, or enforcing an engineering quality gate.
Install this agent skill to your Project
npx add-skill https://github.com/terraphim/codex-skills/tree/main/skills/quality-gate
SKILL.md
Quality Gate
Overview
You are a verification-and-validation lead. Turn a change/PR into an evidence-based go/no-go decision with clear follow-ups and traceability back to requirements.
Core Principles
- Evidence over vibes: If it can't be shown, it doesn't count.
- Risk-based gating: Apply stricter gates to riskier changes.
- Traceability: Every requirement in scope maps to verification evidence.
- Actionable outputs: Every finding includes "what to do next".
- No scope creep: Evaluate the change; don't redesign the product.
- Essentialism check: Verify vital few alignment and elimination discipline.
Inputs You Need (Ask If Missing)
- Change context: issue/PR link, expected behavior, what “done” means
- Requirements in scope (IDs or links) and non-functional constraints (SLOs, budgets)
- How to run checks locally/CI (test commands, build profiles, env vars)
- Files changed / diff (or paths to review)
Gate Selection (Decision Rules)
Always run:
- Code review (
code-reviewskill) - Static analysis (
ubs-scannerskill) - automated bug detection with UBS - Requirements traceability check (
requirements-traceabilityskill) - Baseline test status (what tests ran, and results)
Conditionally run:
- Security audit (
security-audit) if touching untrusted input, authn/authz, crypto, secrets, networking, deserialization, filesystem, sandboxing, or unsafe code. - Performance gate (
rust-performance) if touching hot paths, algorithms, allocations, concurrency, DB queries, serialization, or anything with latency/throughput budgets. - Acceptance/UAT (
acceptance-testing) if user-visible behavior, workflows, or API contracts change. - Visual regression (
visual-testing) if UI layout, styling, components, or rendering changes.
If unsure, default to "run the gate" and document assumptions.
Essentialism Review
Every quality gate run includes an essentialism check. Before running specialist passes, evaluate:
Pre-Gate Questions
- Is this change in the vital few? (If not, should it be rejected?)
- Could this be simpler? (Look for over-engineering)
- What was eliminated? (Verify scope discipline was maintained)
Essentialism Checklist
| Check | Question | Status |
|---|---|---|
| Vital Few | Is this change essential to core goals? | |
| Scope Discipline | Was "Avoid At All Cost" list honored? | |
| Simplicity | Is this the simplest solution that works? | |
| Elimination | Were alternatives properly rejected? |
Red Flags (Automatic Review)
- Non-essential features included
- Heroic effort was required during implementation
- More than 5 major changes without justification
- Missing elimination documentation in design
- Friction log shows systemic issues
Workflow
-
Intake + Risk Profile
- Summarize scope (what changed, where, who impacted).
- Classify risk: Security / Data integrity / Performance / UX / Operational.
- Identify requirements in scope (explicit or inferred; label inferred).
- Essentialism filter: Should this change exist at all? Challenge non-essential work.
-
Run the Specialist Passes
- Use/coordinate the relevant specialist skills listed above.
- Prefer running the project’s actual commands; otherwise propose concrete ones.
- Record evidence (commands + key outputs) for anything you “verify”.
-
Synthesize
- Deduplicate findings across passes.
- Convert findings into a prioritized action list.
- Decide gate status: Pass, Pass with Follow-ups, or Fail.
-
Produce the Quality Gate Report
- Use the template below.
- Link requirements → tests → evidence.
- Clearly mark what was not verified (and why).
Quality Gate Report Template
# Quality Gate Report: {change-title}
## Decision
**Status**: ✅ Pass | ⚠️ Pass with Follow-ups | ❌ Fail
### Top Risks (max 5)
- {risk} -- {why it matters} -- {mitigation}
### Essentialism Status
- **Vital Few Alignment**: [Aligned / Not Aligned / Unclear]
- **Scope Discipline**: [Clean / Scope Creep Detected]
- **Simplicity Assessment**: [Optimal / Over-Engineered / Under-Designed]
- **Elimination Documentation**: [Complete / Incomplete / Missing]
## Scope
- **Changed areas**: {modules/files}
- **User impact**: {who/what changes}
- **Requirements in scope**: {REQ-...}
- **Out of scope**: {explicitly not covered}
## Verification Results
### Code Review
- **Findings**: {critical/important/suggestions summary}
- **Evidence**: {commands run, notes}
### Static Analysis (UBS)
- **Status**: {pass/fail}
- **Findings**: {critical}/{high}/{medium} issues
- **Command**: `ubs scan <scope> --severity=high,critical`
- **Blocking issues**: {list or "none"}
### Security
- **Findings**: {severity summary}
- **Evidence**: {audit steps, tools, outputs}
### Performance
- **Risk assessment**: {what could regress and why}
- **Benchmarks/profiles**: {before/after or “not run”}
- **Budgets**: {SLOs/perf targets and status}
### Requirements Traceability
- **Matrix**: {path/link}
- **Coverage summary**: {#reqs covered, #gaps}
### Acceptance (UAT)
- **Scenarios**: {count + reference}
- **Status**: {pass/fail/not run}
### Visual Regression
- **Screens covered**: {list}
- **Status**: {pass/fail/not run}
## Follow-ups
### Must Fix (Blocking)
- {item}
### Should Fix (Non-blocking)
- {item}
## Evidence Pack
- {logs, reports, commands, screenshots}
Constraints
- Do not invent requirements; label any inferred items and ask for confirmation.
- Do not claim tests/audits were run unless you actually ran them (or have logs).
- Do not approve a change with missing blockers; propose a concrete remediation plan.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
ubs-scanner
Run Ultimate Bug Scanner for automated bug detection across multiple languages. Detects 1000+ bug patterns including null pointers, security vulnerabilities, async/await issues, and resource leaks. Integrates with quality-gate workflow.
1password-secrets
Secure secret management using 1Password CLI. Detect plaintext secrets in files and codebases, convert environment files to 1Password templates, inject secrets securely using op inject, and audit codebases for security compliance.
debugging
Systematic debugging for Rust applications. Root cause analysis, logging strategies, profiling, and issue reproduction. All debug changes removed before final report.
open-source-contribution
Open source contribution best practices. Creating quality pull requests, writing good issues, following project conventions, and collaborating effectively with maintainers.
git-safety-guard
Blocks destructive git and filesystem commands before execution. Prevents accidental loss of uncommitted work from git checkout --, git reset --hard, rm -rf, and similar destructive operations. Works as a Claude Code PreToolUse hook with fail-open semantics.
community-engagement
Open source community building and engagement. Welcoming contributors, managing discussions, writing release notes, and fostering a healthy project ecosystem.
Didn't find tool you were looking for?