quality-gates

Enforce code quality gates before commits with task, test, lint, and ADR checks.

Updated Mar 28, 2026
One-click install
npx skills add https://github.com/matlockx/copilot-accountant --skill quality-gates-matlockx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: quality-gates
Source: https://github.com/matlockx/copilot-accountant/tree/main/.opencode/skills/quality-gates
Command: npx skills add https://github.com/matlockx/copilot-accountant --skill quality-gates-matlockx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Defines the set of quality gates that determine whether a code change may be committed, including task presence, tests, lint, ADRs, diff size, and secret checks.

Core Features & Use Cases

  • Gate definitions for Task, Tests, Lint, ADR, Diff size, Secrets, Docs, and Commit format
  • Loop-Back routing for failing gates and guidance for authors
  • 500 LOC rule with guidance on measuring diffs and handling exceptions
  • Hook Enforcement through pre-commit and commit-msg checks
  • Clear task description requirements and conventional commit standards

Quick Start

Enable the pre-commit and commit-msg hooks included with this skill and commit your changes to enforce all gates.

Frequently Asked Questions about quality-gates

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

FAQPage Schema
How do I enforce pre-commit quality gates for lint and tests?

Pre-commit quality gates enforce lint cleanliness and test presence by running hook checks before a commit is finalized. This skill enables pre-commit and commit-msg hooks to validate all changed files against defined gates automatically.

What quality checks should a pre-commit hook enforce?

A pre-commit hook should enforce task existence, test presence, lint cleanliness, ADR presence for architecture changes, a 500 LOC diff limit, absence of hardcoded secrets, updated documentation, and conventional commit formatting.

How do I require an ADR when architecture changes are committed?

You require an ADR for architectural changes by enabling a commit gate that detects architecture modifications and blocks the commit until an Architecture Decision Record is present.

Can I block commits that exceed a 500 line of code diff limit?

Yes, you can block large diffs using the 500 LOC diff rule gate. It measures the lines of code changed and rejects commits exceeding the limit while providing guidance on handling exceptions.

How do I enforce conventional commit formatting with a task identifier?

You enforce conventional commit formatting by applying a commit-msg hook gate. It validates the commit message structure, ensuring it includes a task identifier and follows conventional commit standards before acceptance.

How do I prevent hardcoded secrets from being committed to git?

You prevent hardcoded secrets by applying a pre-commit secret detection gate. It scans all changed files for secrets and blocks the commit if any hardcoded credentials are found.