svenja-dev/claude-code-skills/code-quality-gate

Claude Code and agent skill by svenja-dev/claude-code-skills

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Enforces automated quality checks before every deploy. Prevents production failures through a 5-stage Quality Gate System (Pre-Commit, PR-Check, Preview, E2E, Production). Activate on code changes, deployments, PR reviews, build failures.

Install

npx vskill@latest install svenja-dev/claude-code-skills/code-quality-gate

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

Code Quality Gate

This skill prevents production failures through a 5-stage Quality Gate System.

The 5 Quality Gates

  1. Pre-Commit (local): TypeScript, Lint, Format - blocks commit on errors
  2. PR-Check (GitHub Actions): Unit Tests, Build - blocks merge on errors
  3. Preview Deploy: Vercel/Netlify Preview URL for visual review
  4. E2E Tests: Playwright against Preview, Lighthouse performance audit
  5. Production Deploy: Only when ALL gates pass

Critical Rules

  • CRITICAL: NEVER use continue-on-error: true for TypeScript checks in GitHub Actions!
  • Husky Setup: npm install -D husky lint-staged && npx husky init
  • Rollback: vercel rollback

Example: Pre-Commit Hook (.husky/pre-commit)

bash
#!/bin/sh
npx lint-staged
npx tsc --noEmit

Example: lint-staged.config.js

javascript
module.exports = {
'*.{ts,tsx}': ['eslint --fix', 'prettier --write'],
'*.{json,md}': ['prettier --write'],
};

Example: GitHub Actions Workflow

yaml
name: Quality Gate
on: [push, pull_request]
jobs:
quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- run: npm ci
# Gate 1: TypeScript (NEVER skip!)
- name: TypeScript Check
run: npx tsc --noEmit
# Gate 2: Linting
- name: ESLint
run: npm run lint
# Gate 3: Unit Tests
- name: Unit Tests
run: npm run test
# Gate 4: Build
- name: Build
run: npm run build

When to Activate

  • Code changes that touch production code
  • Deployment requests
  • PR reviews
  • Build failures (for debugging)

Real-World Impact

At fabrikIQ.com, this quality gate system caught:

  • 2 TypeScript errors that would have caused runtime crashes
  • 1 missing environment variable in the deploy
  • 3 performance regressions before they hit production

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
34
Repository forks
4
7-day trend score
18

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 25 Apr 2026, 7 months ago.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/svenja-dev/claude-code-skills/code-quality-gate/badge)](https://verified-skill.com/skills/svenja-dev/claude-code-skills/code-quality-gate)

Something wrong with this skill or its page? Tell us.