quality-gates

Defines CI/CD gate tables, merge-class rules, and enforcement thresholds for trunk and gitflow loop models.

Updated Jun 4, 2026
One-click install
npx skills add https://github.com/tedeuxx/tadeumendonca-skills --skill quality-gates-tedeuxx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: quality-gates
Source: https://github.com/tedeuxx/tadeumendonca-skills/tree/main/skills/quality-gates
Command: npx skills add https://github.com/tedeuxx/tadeumendonca-skills --skill quality-gates-tedeuxx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Merge decisions often rest on impression rather than mechanical checks, and teams lack a single policy stating which CI/CD gates run, where they sit in the pipeline, and what thresholds block a merge. This Skill supplies that policy so an agent can prove a change is mergeable with real evidence instead of self-report. ## Core Features & Use Cases - Gate tables per loop model: Specifies which gates are required at staging versus production under gitflow-multi-env, and which block the single PR to main under trunk-single-env. - Concrete thresholds: Enforces lint and typecheck at zero errors, unit coverage at 85% or higher on lines, functions, branches, and statements, plus dependency audit, SAST, secret scanning, and contract or E2E runs. - Merge-class rules: Defines who merges each class of change, including the quality-assurance gatekeeper verdicts and the four surviving human holds. - Use Case: When wiring CI for a new repository or reviewing a merge request, consult this Skill to decide which checks must be required, blocking, and where enforcement lives in hooks versus CI. ## Quick Start Ask the agent to apply the quality-gates policy to decide which CI checks must block the merge of the current pull request.

Frequently Asked Questions about quality-gates

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I decide which CI gates should block a merge?

Use the gate tables per loop model: under trunk-single-env every gate blocks the single PR to main, while under gitflow-multi-env heavy gates like full regression and manual approval sit at the production promotion. Coverage, static analysis, and security gates are required in both.

What test coverage threshold should CI enforce?

This policy sets unit coverage at 85% or higher on lines, functions, branches, and statements, identical across stacks so neither side can negotiate a special case. Below threshold blocks the merge, and lowering the number to go green is explicitly disallowed.

What is the difference between quality gates and a definition of done?

Quality gates are CI/CD metrics: the mechanical checks and thresholds a pipeline enforces. A definition of done covers issue completeness criteria, which live in the separate definition-of-done skill. A green pipeline does not by itself prove a met definition of done.

Can an agent merge a pull request without human approval?

Under trunk-single-env the quality-assurance gatekeeper merges the safe class itself once both review lenses pass, and the boundary class under a specific verdict literal. Four holds still require a human: authority expansion, harness diffs without a lead verdict, iac changes, and explicit escalations.

Why should gates block deploys instead of only warning?

An advisory gate tends to stay red until the day it matters, so this policy makes CI block deploy on any gate failure with no artifact upload or invalidation. The trade-off is that flaky suites can stop correct changes, so flakiness must be treated as a defect in the gate.