agentleFS
kienbui1995kienbui1995/magic-powers/skills/quality-gates/SKILL.md

quality-gates

Skill0 starsChanged 8 months agoMITView on GitHub

Use when defining definition of done, setting release criteria, or building automated quality checks into the CI/CD pipeline

11 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When establishing what "done" means, preventing low-quality code from reaching production, or reducing manual QA overhead.

    line 9
  2. Distinctive:

    Before any production release:

    line 40
  3. Distinctive:

    Test coverage drops > 5% → cannot merge

    line 51
  4. Distinctive:

    No release criteria — "it's done when it's done"

    line 66

“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Quality Gates

When to Use

When establishing what "done" means, preventing low-quality code from reaching production, or reducing manual QA overhead.

Core Jobs

1. Definition of Done (DoD)

Agree team-wide: a story is done only when ALL of these pass:

  • Code reviewed and approved (at least 1 reviewer)
  • Unit tests written and passing
  • Integration tests passing
  • No new lint errors
  • No new security vulnerabilities (SAST scan)
  • Feature tested in staging environment
  • Acceptance criteria verified by PO or QA
  • Documentation updated (if user-facing)

DoD applies to every story — no exceptions without explicit team agreement.

2. Automated Gates in CI

Pipeline structure:

PR opened → lint → unit tests → build
           → integration tests
           → security scan (Snyk/Semgrep)
           → coverage check (must not drop below threshold)
           → [merge gated on all passing]

Merge to main → E2E tests → staging deploy → smoke tests
              → [production deploy gated on all passing]

3. Release Criteria

Before any production release:

  • All CI gates passing
  • No open Critical or High severity bugs
  • Load test run at expected peak traffic
  • Rollback plan documented and tested
  • On-call briefed on what's shipping and any risk areas
  • Feature flags in place for rollback without deploy (if needed)

4. Non-Negotiable Gates

Some gates should block unconditionally:

  • Critical security vulnerability → cannot merge
  • Test coverage drops > 5% → cannot merge
  • Build fails → cannot merge

Make these non-negotiable and enforce in CI — not as optional warnings.

Key Outputs

  • Team Definition of Done checklist
  • CI pipeline configuration (gates per stage)
  • Release criteria checklist
  • Non-negotiable gates policy

Anti-Patterns

  • DoD that's aspirational but not enforced
  • Manual-only quality gates (human gates get skipped under pressure)
  • Gates that warn but don't block (everyone ignores warnings)
  • No release criteria — "it's done when it's done"

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.