quality-gates

quality-gates is a skill for Claude Code from supportersimulator/3-surgeons. It costs 25 tokens per session (1,583 once invoked), scanned C, original, MIT.

A set of checks for system health, review quality, and safety before risky work. Its gates cover infrastructure, quality degradation, and actions that may be destructive or hard to undo.

In plain words
What is it for?
Use it between development phases, after infrastructure changes or deployments, before long-running work, and when quality problems appear.
Why use it?
It catches unhealthy services and unsafe conditions between major steps, after deployments, or before risky operations.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the 3-surgeons plugin — 23 skills, 7 commands, 1 agent, 3 hooks, 1 MCP server shipped together

Good fit Use it between development phases, after infrastructure changes or deployments, before long-running work, and when quality problems appear.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/supportersimulator/3-surgeons/quality-gates
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.

Any agent
npx skills add supportersimulator/3-surgeons --skill quality-gates
Clone the repo
git clone --depth 1 https://github.com/supportersimulator/3-surgeons

Made for: Claude Code.

Or install 3-surgeons, the plugin that ships this one along with the rest of its 23 skills, 7 commands, 1 agent, 3 hooks, 1 MCP server.

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-gates

README.md
[![agentmods](https://agentmods.dev/badge/skills/supportersimulator/3-surgeons/quality-gates/github.svg)](https://agentmods.dev/skills/supportersimulator/3-surgeons/quality-gates)
Your own site
<a href="https://agentmods.dev/skills/supportersimulator/3-surgeons/quality-gates"><img src="https://agentmods.dev/badge/skills/supportersimulator/3-surgeons/quality-gates/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-gates

Your own site · 80×15
<a href="https://agentmods.dev/skills/supportersimulator/3-surgeons/quality-gates"><img src="https://agentmods.dev/badge/skills/supportersimulator/3-surgeons/quality-gates.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,583 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00025 $0.01583
Opus 5 $0.00013 $0.00792
Sonnet 5 $0.00005 $0.00317
Haiku 4.5 $0.00003 $0.00158

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

Security

Grade C, and why

quality-gates scanned grade C with 1 finding 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 8d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

| **No destructive operations** | `drop database`, `truncate table`, `delete all prod data`, `rm -rf /`, `wipe all data`, `destroy database` |
skills/quality-gates/SKILL.md · 187 lines

How it starts

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

Quality Gates

Three Gate Types

The 3-Surgeons system provides three quality gates, each serving a different purpose:

Gate Purpose When to Run
GainsGate Infrastructure health verification Between major phases, after deployments
CardioGate Quality review chain with rate limiting When quality degradation is detected
CorrigibilityGate Safety invariant enforcement Before destructive or risky actions

GainsGate

When to Run

  • Between major phases -- after completing phase A, run gains-gate before starting phase B
  • After deployments -- verify the system is healthy post-deploy
  • After infrastructure changes -- new config, restarted services, changed endpoints
  • Before long-running operations -- ensure everything is healthy before committing to a multi-step process

How to Invoke

CLI
3s gains-gate
MCP Tool
gains_gate()

Default Checks

Check Critical? What It Verifies
neurologist_health No Pings Neurologist endpoint. Local model may be offline.
cardiologist_health No Pings Cardiologist endpoint. API may be unavailable.
evidence_store Yes Evidence DB is accessible and queryable.
state_backend Yes State backend responds to ping.

Gate Pass/Fail Logic

The gate passes only if all critical checks pass. Non-critical failures are recorded but do not block progress.

  • All critical checks pass + some non-critical fail = PASS (with warnings)
  • Any critical check fails = FAIL (must fix before proceeding)

Interpreting Results

Running gains gate...

  [PASS] neurologist_health: Neurologist operational (89ms)
  [FAIL] cardiologist_health: Cardiologist unreachable: Connection refused
  [PASS][critical] evidence_store: Evidence store accessible (42 learnings)
  [PASS][critical] state_backend: State backend operational

PASS: 3/4 checks passed (non-critical failures: cardiologist_health)  (23ms)

Read the full file on GitHub · 187 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. 8d ago First seen · 187 lines · 25 tokens per session scan C ccfa8a7b8ca6

Subscribe to this mod's changes

quality-gates is a skill published in the GitHub repository supportersimulator/3-surgeons (2 stars, last pushed 3mo ago), licensed MIT. It adds 25 tokens to every session and 1,583 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

qa-testing

Verify your work by actually operating the app or website you changed, instead of assuming it works. Strongly recommended whenever you build, modify, or debug a web app, website, or desktop GUI app. Drive real browsers with the agent-browser CLI and native desktop apps with the cua-driver CLI. These are installed on…

openinterpreter/openinterpreter · 77 tokens

cherry-pr-test

Test Cherry Studio PRs by resolving and checking out a PR, statically inspecting its changes, running interactive UI tests against a safely tracked Electron instance through CDP, producing a structured report, cleaning up only the owned test instance, and restoring the original branch.

CherryHQ/cherry-studio · 57 tokens

visual-acceptance

A visual final-review method for user-interface changes. It checks the rendered result with repeatable screenshots, pixel values, computed styles, and CSS layering checks across themes.

huiliyi37/Tianshu-harness · 89 tokens

ultra-adlc

End-to-end delivery orchestration for explicitly requested, very large software changes that must be completely implemented and independently proven. Use when the user invokes "ultra-adlc" or asks for an Ultra-ADLC-scale full delivery; do not use for ordinary features, small fixes, reviews, or ad hoc parallel work.

KonghaYao/peri · 69 tokens

superpowers-test-driven-development

Writing or fixing any code? Load first — write the failing test before the code.

christopherarter/superpowers-reasonix · 23 tokens

diagnosing-bugs

Use when debugging a bug, test failure, or unexpected behavior, before proposing fixes. Build a tight red-capable feedback loop first, then reproduce, hypothesise, instrument, fix, and clean up.

znlgis/my-opencode-deepseek-config · 47 tokens