patricio0312rev avatar

Quality Gates Enforcer

Sets up automated quality checks that block PRs if they don't meet your thresholds. You get CI workflows for coverage (80% default), linting with zero warnings, type checking, security scans, and bundle size limits. The nice thing here is the PR commenting setup that shows exactly what failed and by how much. It's opinionated about strictness, which is the point. You'll want to adjust thresholds for your team, but having everything wired up in one place beats cobbling together checks from scratch. The auto-fail logic is clear enough that you can modify it when you inevitably need a different threshold for legacy code.

skills.sh installs
280
GitHub stars
63
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

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

More from patricio0312rev/skills

All 138
1ulpi-io avatarbrowseulpi-io/skillsDrive a REAL browser and native apps the way a user would — not fetch raw HTML — through the persistent `browse` CLI: one long-lived headless Chromium (plus iOS280skills.sh installs
2posthog avatarposthog-debuggerposthog/skillsDebug and inspect PostHog implementations on any website. Use this skill when a user wants to understand how PostHog is implemented on a page, troubleshoot trac278skills.sh installs
3cinience avataralicloud-platform-openapi-product-api-discoverycinience/alicloud-skillsDiscover and reconcile Alibaba Cloud product catalogs from Ticket System, Support & Service, and BSS OpenAPI; fetch OpenAPI product/version/API metadata; and su275skills.sh installs
4octagonai avataranalyst-estimatesoctagonai/skillsRetrieve analyst financial estimates including Revenue and EPS projections with low/high ranges and analyst coverage. Use when analyzing forward expectations, c274skills.sh installs
5florianbruniaux avatarrtk-optimizerflorianbruniaux/claude-code-ultimate-guideWrap high-verbosity shell commands with RTK to reduce token consumption. Use when running git log, git diff, cargo test, pytest, or other verbose CLI output tha272skills.sh installs
6qodex-ai avatarautonomous-agent-gamingqodex-ai/ai-agent-skillsBuild autonomous game-playing agents using AI and reinforcement learning. Covers game environments, agent decision-making, strategy development, and performance272skills.sh installs