quality-gate

Detect and resolve formatting, lint, and type issues after code edits.

4|1|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/NSObjects/specpowers --skill quality-gate-nsobjects
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: quality-gate
Source: https://github.com/NSObjects/specpowers/tree/main/skills/quality-gate
Command: npx skills add https://github.com/NSObjects/specpowers --skill quality-gate-nsobjects

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Stops sloppy, post-hoc quality checks by running lightweight formatting, linting, and type checks right after code edits so issues are caught before they reach verification or commits.

Core Features & Use Cases

  • Auto-detect languages and toolchains: Analyze changed file extensions and marker files to figure out which format, lint, and type commands to run for JavaScript/TypeScript, Python, Go, Rust, Java, Kotlin, Swift, PHP, Dart, and C++.
  • Flexible modes and reporting: Support --fix to auto-correct formatting and lint violations, --strict to treat warnings as errors, and emit a clear quality gate report showing pass/fail results per check plus an overall status.
  • Configuration protection: Guard protected config files (linters, formatters, type systems) by requiring explicit approval before any modification, as detailed in protected-configs.md.

Quick Start

Run quality-gate after editing code to auto-detect languages and run formatting, linting, and type checks while shielding protected configuration files.

Frequently Asked Questions about quality-gate

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

FAQPage Schema
How do I run formatting, lint, and type checks automatically after code edits?

To run formatting, lint, and type checks automatically after code edits, you need a tool that detects changed files and maps their languages to the correct toolchain commands. This process catches issues immediately before verification or commits.

What programming languages and package managers are supported by auto-detecting toolchains for linting?

Auto-detecting toolchains for linting supports JavaScript/TypeScript, Python, Go, Rust, Java, Kotlin, Swift, PHP, Dart, and C++. It detects toolchains by analyzing marker files for npm, pnpm, yarn, bun, pip/poetry/uv, go, cargo, maven, or gradle.

Can I automatically fix formatting and lint violations during a quality gate check?

Yes, you can automatically fix formatting and lint violations during a quality gate check by using the `--fix` mode. You can also apply `--strict` mode to treat warnings as errors to enforce higher code quality standards.

How do I protect configuration files from being modified by automated lint and format fixes?

To protect configuration files from automated lint and format fixes, you need a mechanism that requires explicit approval before any modification to linters, formatters, or type system configurations. This guards your setup from unintended automated changes.

Does pre-commit quality gating work with both Python and JavaScript monorepos?

Yes, pre-commit quality gating works with mixed-language monorepos by analyzing changed file extensions and marker files. It independently maps detected Python and JavaScript toolchains to their respective format, lint, and type check commands.