quality-gate

quality-gate is a skill for Claude Code from athola/claude-night-market. It costs 39 tokens per session (1,577 once invoked), scanned A, original, MIT.

A quality-check stage for egregore work that coordinates code review, cleanup, code improvements, test updates, and documentation updates before a pull request.

In plain words
What is it for?
Use it for self-review of your branch or for reviewing another agent's pull request.
Why use it?
It gathers several review and maintenance checks into one part of the development process, reducing the chance of shipping unfinished changes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex; built for aider.

Part of the egregore plugin — 4 skills, 5 commands, 2 agents shipped together

Good fit Use it for self-review of your branch or for reviewing another agent's pull request.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/athola/claude-night-market/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.

Any agent
npx skills add athola/claude-night-market --skill quality-gate
Clone the repo
git clone --depth 1 https://github.com/athola/claude-night-market

Made for: Claude Code.

Or install egregore, the plugin that ships this one along with the rest of its 4 skills, 5 commands, 2 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/skills/athola/claude-night-market/quality-gate/github.svg)](https://agentmods.dev/skills/athola/claude-night-market/quality-gate)
Your own site
<a href="https://agentmods.dev/skills/athola/claude-night-market/quality-gate"><img src="https://agentmods.dev/badge/skills/athola/claude-night-market/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/skills/athola/claude-night-market/quality-gate"><img src="https://agentmods.dev/badge/skills/athola/claude-night-market/quality-gate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,577 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00039 $0.01577
Opus 5 $0.00019 $0.00788
Sonnet 5 $0.00008 $0.00315
Haiku 4.5 $0.00004 $0.00158

Measured 9d ago against content hash 8b21ced55bb6, 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 9d 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.

plugins/egregore/skills/quality-gate/SKILL.md · 198 lines

How it starts

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

Quality Gate

When To Use

  • Running quality checks on egregore work items
  • Self-review before creating a PR
  • Reviewing another agent's PR in PR-review mode

When NOT To Use

  • Manual code reviews outside egregore pipeline
  • One-off lint or format checks (use make lint directly)

Orchestrate the QUALITY stage of egregore's pipeline. Each quality step runs convention checks from the codex and invokes mapped skills.

Routing Table

Step Conventions Skills Modes
code-review C1,C2,C3,C4,C5 pensive:unified-review self, pr
unbloat - conserve:unbloat self
code-refinement - pensive:code-refinement self
update-tests - sanctum:update-tests self
update-docs C5 sanctum:update-docs, scribe:slop-detector self

Inputs

The orchestrator invokes this skill with:

  • step: which quality step to run (e.g. "code-review")
  • mode: "self-review" or "pr-review"
  • work_item_id: the manifest work item ID
  • branch: the git branch with changes
  • pr_number: (PR-review mode only) the PR number

Self-Review Workflow

When mode is "self-review":

  1. Get changed files: git diff --name-only main...HEAD
  2. Load conventions from conventions/codex.yml
  3. Filter conventions to those mapped to the current step
  4. Run convention checks via conventions.py
  5. Invoke mapped skills on the changed files
  6. Collect all findings
  7. Calculate verdict

Auto-Fix Loop

If blocking findings exist:

  1. Attempt to fix each finding (skill-dependent)
  2. Commit fixes to the work item branch
  3. Re-run convention checks
  4. If still blocking after 3 attempts, verdict is "fix-required"

Verdict Calculation

if no findings:
    verdict = "pass"
elif all findings are severity "warning":
    verdict = "pass-with-warnings"
elif blocking findings remain after auto-fix:
    verdict = "fix-required"

Record verdict in manifest decisions:

{
  "step": "code-review",
  "chose": "pass-with-warnings",
  "why": "2 warnings (C4: noqa in hooks), 0 blocking"
}

Read the full file on GitHub · 198 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. 9d ago First seen · 198 lines · 39 tokens per session scan A 8b21ced55bb6

Subscribe to this mod's changes

quality-gate is a skill published in the GitHub repository athola/claude-night-market (337 stars, last pushed 2d ago), licensed MIT. It adds 39 tokens to every session and 1,577 once invoked, about $0.0002 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-09-03.