Skip to content

Automations / Quality gates

Quality gates

Run tests, typecheck, and lint on push before code leaves your machine.

Installs
0
Runs (30d)
0
Active builders
0
Trend
—

Uses

Tools: Shell

Triggers: push

Definition (YAML)

Download YAML
id: quality-gates
name: Quality gates
tagline: Run tests, typecheck, and lint on push before code leaves your machine.
catalog:
  - id: plugin:github
mcpServers:
  - github
skills: []
triggers:
  - kind: git
    events:
      - push
tools:
  - Shell
install:
  agentMode: Build
  speed: balanced
  runMode: single
  autoApproveTools: true
  maxRunMinutes: 60
prompt: |
  Before this push is allowed to continue, verify the repo is safe to ship:

  1. Detect the package manager and scripts (package.json, pyproject.toml, Cargo.toml, etc.).
  2. Run the project's test, typecheck, and lint commands when they exist. Prefer the same commands CI uses.
  3. If anything fails, fix the minimal issue or report the exact failing command and output.
  4. Do not skip checks silently. If a check does not exist, say so and run the closest equivalent.

  Keep changes small and focused on making the gates pass.

Agent script

Before this push is allowed to continue, verify the repo is safe to ship:

1. Detect the package manager and scripts (package.json, pyproject.toml, Cargo.toml, etc.).
2. Run the project's test, typecheck, and lint commands when they exist. Prefer the same commands CI uses.
3. If anything fails, fix the minimal issue or report the exact failing command and output.
4. Do not skip checks silently. If a check does not exist, say so and run the closest equivalent.

Keep changes small and focused on making the gates pass.