Quality Gates

Run npm lint, format, test, and build before commits.

Updated May 13, 2025
One-click install
npx skills add https://github.com/GolferGeek/orchestrator-ai --skill quality-gates-golfergeek
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Quality Gates
Source: https://github.com/GolferGeek/orchestrator-ai/tree/main/.claude/skills/quality-gates-skill
Command: npx skills add https://github.com/GolferGeek/orchestrator-ai --skill quality-gates-golfergeek

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures that code quality gates are automatically applied before commits, preventing lint errors, formatting issues, test failures, and build breakages from entering the codebase.

Core Features & Use Cases

  • Format code and fix lint errors automatically: Keep code clean and consistent without manual formatting.
  • Run tests and build before commit: Ensure changes compile and pass tests to safeguard stability.
  • Guardrail for commits: Enforce a pre-commit quality process so only healthy changes enter the main branch.

Quick Start

Run the full quality gate before committing: npm run format && npm run lint && npm test && npm run build

Frequently Asked Questions about Quality Gates

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

FAQPage Schema
How do I prevent lint errors and formatting issues from being committed?

Quality gates automatically run linting and formatting checks before commits, blocking changes with errors or inconsistent formatting. This Skill enforces those checks locally, ensuring only clean code enters the repository.

Can I run tests and builds automatically before committing code?

Yes. Quality gates execute npm scripts for testing and building before commits succeed, catching test failures and build breakages before they reach the codebase. All tests must pass and builds must succeed.

What's the best way to enforce code quality across a team's commits?

Pre-commit quality gates apply consistent linting, formatting, testing, and build validation across local development and CI pipelines. This Skill guarantees every commit meets the same standards, protecting code health across the team.

Do quality gates work with npm scripts for lint, format, test, and build?

This Skill specifically enforces quality gates using npm run commands for lint, format, test, and build. It satisfies requirements to run all four scripts in sequence, ensuring comprehensive checks before commits.

When should I use pre-commit quality gates instead of relying on CI checks alone?

Pre-commit gates catch issues immediately in local development, preventing broken code from entering the repository. CI checks become a secondary safeguard. Together, they eliminate formatting inconsistencies, lint errors, test failures, and build problems early.

How do quality gates fit into a git workflow?

Quality gates integrate into git workflows as a guardrail before commits complete, running linting, formatting, testing, and building automatically. Only code passing all checks can commit, maintaining branch health and preventing degradation.