Skip to content
patricio0312rev avatar

Quality Gates Enforcer

Enforces CI quality thresholds for coverage, linting, types, and security before any merge is allowed.

CCM score
41 of 100
skills.sh installs
286
GitHub stars
64
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers GitHub Actions gates for test coverage, ESLint with zero warnings, tsc --noEmit, Snyk and npm audit scans, and bundle size
  • Includes a Jest coverageThreshold config with stricter 90% limits for ./src/critical/, plus a required-checks aggregator job
  • Enforces branch protection via required status checks and one code-owner review, with admin enforcement enabled
  • Designed for teams that want merge-blocking quality rules and automated quality report comments on pull requests

Install

$ npx -y skills add patricio0312rev/skills --skill quality-gates-enforcer -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Quality Gates Enforcer

Enforce minimum quality standards before merging code.

Coverage Requirements

# .github/workflows/quality-gates.yml
name: Quality Gates

on:
  pull_request:

jobs:
  coverage:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - uses: actions/setup-node@v4
        with:
          node-version: "20"
          cache: "npm"

      - run: npm ci

      - name: Run tests with coverage
        run: npm test -- --coverage

      - name: Check coverage threshold
        run: |
          COVERAGE=$(node -p "require('./coverage/coverage-summary.json').total.lines.pct")
          THRESHOLD=80

          if (( $(echo "$COVERAGE < $THRESHOLD" | bc -l) )); then
            echo "❌ Coverage $COVERAGE% is below threshold $THRESHOLD%"
            exit 1
          fi

          echo "✅ Coverage $COVERAGE% meets threshold $THRESHOLD%"

      - name: Comment coverage on PR
        uses: romeovs/lcov-reporter-action@v0.3.1
        with:
          lcov-file: ./coverage/lcov.info
          github-token: ${{ secrets.GITHUB_TOKEN }}
          delete-old-comments: true

Jest Configuration

Details

Repository
github.com/patricio0312rev/skills
Categories
DevOps & Cloud, Testing & QA, Code Review & Quality
First seen
Jun 3, 2026

More from patricio0312rev/skills

All 138

Similar to Quality Gates Enforcer

More DevOps & Cloud