quality-gate

quality-gate is a command for Claude Code from boparaiamrit/skills-by-amrit. It costs 27 tokens per session (1,306 once invoked), scanned A, original, MIT.

A pre-commit or pre-pull-request checklist that runs project checks such as building, type checking, linting, testing, security checks, and reviewing the change set.

In plain words
What is it for?
Use it for quick development checks, before committing, or before opening a pull request, with more thorough modes for important milestones.
Why use it?
A change may look correct while still failing to build, violating code rules, breaking tests, or introducing security problems. This gathers the relevant checks into one review step.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the skills-by-amrit plugin — 33 skills, 34 commands, 9 agents shipped together

Good fit Use it for quick development checks, before committing, or before opening a pull request, with more thorough modes for important milestones.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/boparaiamrit/skills-by-amrit/quality-gate
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/boparaiamrit/skills-by-amrit

Made for: Claude Code.

Or install skills-by-amrit, the plugin that ships this one along with the rest of its 33 skills, 34 commands, 9 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for quality-gate

README.md
[![agentmods](https://agentmods.dev/badge/commands/boparaiamrit/skills-by-amrit/quality-gate/github.svg)](https://agentmods.dev/commands/boparaiamrit/skills-by-amrit/quality-gate)
Your own site
<a href="https://agentmods.dev/commands/boparaiamrit/skills-by-amrit/quality-gate"><img src="https://agentmods.dev/badge/commands/boparaiamrit/skills-by-amrit/quality-gate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for quality-gate

Your own site · 80×15
<a href="https://agentmods.dev/commands/boparaiamrit/skills-by-amrit/quality-gate"><img src="https://agentmods.dev/badge/commands/boparaiamrit/skills-by-amrit/quality-gate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,306 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.01306
Opus 5 $0.00014 $0.00653
Sonnet 5 $0.00005 $0.00261
Haiku 4.5 $0.00003 $0.00131

Measured 12d ago against content hash aa2a5b514888, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

quality-gate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/quality-gate.md · 211 lines

How it starts

The opening of the file, as written. The whole thing — 211 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/quality-gate — Technical Quality Gate

Run a structured quality pipeline before commits or PRs. Auto-detects project type and runs appropriate checks.

Modes

Mode Steps When to Use
quick Build + Test Fast sanity check during development
full All 6 steps Thorough check before important milestones
pre-commit Build + Lint + Test Before committing changes
pre-pr All 6 + Coverage Before opening a pull request

Instructions

Step 1: Determine Mode

From $ARGUMENTS:

  • If mode given: Use that mode
  • If empty: Default to full

Step 2: Auto-Detect Project Type

# Detect project type from manifest files
ls package.json pyproject.toml setup.py Cargo.toml go.mod pom.xml build.gradle Makefile 2>/dev/null

Determine:

  • Node.jspackage.json exists
  • Pythonpyproject.toml or setup.py exists
  • RustCargo.toml exists
  • Gogo.mod exists
  • Java (Maven)pom.xml exists
  • Java (Gradle)build.gradle exists

Read the manifest to detect available scripts/commands:

# For Node.js
cat package.json | grep -A 20 '"scripts"'

Step 3: Run Pipeline

Run the applicable steps based on mode:

Step 3a: Build Check (all modes)
# Node.js
npm run build 2>&1

# Python
python -m py_compile [main_module] 2>&1

# Rust
cargo build 2>&1

# Go
go build ./... 2>&1

Record: PASS/FAIL, duration, error count.

Step 3b: Type Check (full, pre-pr)
# Node.js (TypeScript)
npx tsc --noEmit 2>&1

# Python (mypy)
mypy . 2>&1

# Rust (included in build)
# Go (included in build)

Record: PASS/FAIL, error count.

Step 3c: Lint Check (full, pre-commit, pre-pr)
# Node.js
npm run lint 2>&1

# Python
ruff check . 2>&1 || flake8 . 2>&1

# Rust
cargo clippy 2>&1

# Go
golangci-lint run 2>&1

Record: PASS/FAIL, warning count, error count.

Step 3d: Test Suite (all modes)
# Node.js
npm test 2>&1

# Python
pytest 2>&1

# Rust
cargo test 2>&1

# Go
go test ./... 2>&1

Read the full file on GitHub · 211 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 211 lines · 27 tokens per session scan A aa2a5b514888

Subscribe to this mod's changes

quality-gate is a command published in the GitHub repository boparaiamrit/skills-by-amrit (5 stars, last pushed 6mo ago), licensed MIT. It adds 27 tokens to every session and 1,306 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.