Agent skill

Quality Gate

by athola in athola/claude-night-market

Orchestrates the QUALITY pipeline stage for egregore work items, running code review, unbloat, and test updates.

MITAuto-check passedTesting & QA

Install Quality Gate

skills CLI
$ npx skills add athola/claude-night-market --skill quality-gate -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install athola/claude-night-market quality-gate --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/athola/claude-night-market.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/egregore/skills/quality-gate .claude/skills/quality-gate && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
quality-gate
GitHub stars
341
Token cost
~1.6k tokens
SKILL.md length
737 words
Files
1
Skills in repo
154
Repo updated
First seen
Licence
MIT

At a glance

Orchestrates the QUALITY pipeline stage for egregore work items, running code review, unbloat, and test updates.

  • Works in 7 steps: Get changed files: git diff --name-only… → Load conventions from… → Filter conventions to those mapped to… → …
  • Running quality checks before a PR
  • SKILL.md covers When To Use, When NOT To Use, Routing Table and Inputs, plus 5 more sections
  • Calls gh, make and git

What it does

Quality Gate is an agent skill from athola/claude-night-market. Orchestrates the QUALITY pipeline stage for egregore work items, running code review, unbloat, and test updates. Use when running quality checks before a PR.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering Quality gates and Code review. The repository describes itself as: 23 Claude Code plugins: TDD enforcement hooks, git/PR workflows, spec-driven development, code review, project lifecycle, fix-from-error, maintenance automation, context… The licence is MIT.

When your agent uses it

  • Running quality checks before a PR
  • Tasks that involve Quality gates
  • Tasks that involve Code review

Example prompts

  • “Use the quality-gate skill to orchestrate the QUALITY pipeline stage for egregore work items, running code review, unbloat, and test updates”
  • “/quality-gate”

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  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

What it can do on your machine

Read from SKILL.md and the folder at commit 9f3eb00. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gh
    • make
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • lucumr.pocoo.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Quality Gate loads about 1.6k tokens when it runs. Until then it costs about 43 tokens; SKILL.md has 737 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~43
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from athola/claude-night-market at commit 9f3eb00, republished under its MIT licence (© athola). 737 words, ~1,595 tokens.

Download SKILL.mdSave it as .claude/skills/quality-gate/SKILL.md (or your agent's skills folder).
name
quality-gate
description
Orchestrates the QUALITY pipeline stage for egregore work items, running code review, unbloat, and test updates. Use when running quality checks before a PR.
alwaysApply
false
category
orchestration
tags
egregore, quality, review, conventions
complexity
intermediate
model_hint
standard
estimated_tokens
300

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

StepConventionsSkillsModes
code-reviewC1,C2,C3,C4,C5pensive:unified-reviewself, pr
unbloat-conserve:unbloatself
code-refinement-pensive:code-refinementself
update-tests-sanctum:update-testsself
update-docsC5sanctum:update-docs, scribe:slop-detectorself

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:

json
{
  "step": "code-review",
  "chose": "pass-with-warnings",
  "why": "2 warnings (C4: noqa in hooks), 0 blocking"
}
Completion Integrity (opt-in, default OFF)

By default the loop runs indefinitely and autonomously: a fix-required verdict is recorded but does not, on its own, stop the item from advancing. This preserves the historical hands-off posture.

When config.pipeline.completion_integrity is true, the verdict becomes a gate the agent cannot talk its way past:

  1. A fix-required verdict is reported to the orchestrator as a step failure, so the item cannot advance to the ship stage with unresolved blocking findings. It retries in place and, on exhausting max_attempts, is marked failed and the overseer is alerted (never silently completed).
  2. Merge is held for human review regardless of auto_merge: the PR is prepared but left open.

This binds "done" to the verifier (convention checks plus the mapped review skills), not to the agent's own say-so. The principle comes from shipped agent harnesses, stated best by KbWen/agentic-os: an agent "can still cut a corner, it just can't cut this one past a check it doesn't control." The recurring patterns across those harnesses:

PatternWhat it doesSource
Verifier gate as completion judgeBind "done" to tests, lints, or result hashes the agent cannot fakeAider, snarktank/ralph, gaasher
Completion promise + max-iterations capString-matching "done" is insufficient; pair it with an iteration ceiling and manual abortanthropics ralph-wiggum
Evidence gates the agent does not controlCredential scan, test-execution validation, phase-log parsing enforced by hooks or CIKbWen/agentic-os
Keep-if-better / revert-if-worse ledgerScore each change, revert regressions, log to an append-only ledger for reviewgaasher/Agent-Loop-Skills
Legibility anchorA persisted current-state or repo-map file that lets a human re-enter the loopAider repo map, agentic-os
Human observer checkpointWatch early iterations, monitor diffs, reserve loops for defined problemsanthropics, ghuntley
Show full SKILL.md (238 more words)Show less

Further rationale: make the illegal state unrepresentable before guarding against it, because a fallback that hides an impossible case becomes silent corruption instead of a locatable crash. Armin Ronacher, "The Coming Loop" (2026), https://lucumr.pocoo.org/2026/6/23/the-coming-loop/. The flag is off by default; enabling it is a deliberate choice to keep a human as the final judge.

PR-Review Workflow

When mode is "pr-review":

  1. Fetch PR diff: gh pr diff <number> --name-only
  2. Load conventions and filter to code-review step
  3. Run convention checks on changed files
  4. Invoke pensive:unified-review on the diff
  5. Collect all findings
Posting Reviews

Map findings to GitHub review:

  • No findings: gh api POST review with event "APPROVE"
  • Warnings only: POST review with event "COMMENT", findings as inline comments
  • Blocking findings: POST review with event "REQUEST_CHANGES", blocking findings as inline comments with "must fix" prefix

Comment format per finding:

[egregore:{convention_id}] {message}

Convention: {convention_name}
Severity: {severity}

Quality Config

Work items may have a quality_config field:

json
{
  "skip": ["unbloat"],
  "only": ["code-review", "update-docs"]
}
  • skip: list of steps to skip (run all others)
  • only: list of steps to run (skip all others)
  • If both are set, only takes precedence
  • If neither is set, all steps run (default)

Convention Filtering by Step

Not all conventions run on every step. The routing table above defines which conventions apply to which step. The quality gate filters the loaded codex accordingly before running checks.

Exit Criteria

  • All applicable convention checks executed
  • All mapped skills invoked
  • Verdict calculated and recorded in manifest
  • For PR-review: GitHub review posted

© athola, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/egregore/skills/quality-gate of athola/claude-night-market.

Open the folder on GitHubat commit 9f3eb00

Compare with similar skills

Quality Gate next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Quality Gate compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Quality Gate this skillathola/claude-night-market341—~1.6kAutomated safety check: PassMIT
Test GuardamElnagdy/guard-skills1.3k2 repos~2.1kAutomated safety check: PassMIT
Code SolvingHoangTheQuyen/think-better122—~3.7kAutomated safety check: PassMIT
Cross Modal Reviewinbrainfun/inbrain1421 repos~1.7kAutomated safety check: PassCustom licence
Requesting Code ReviewHezaoHezao/poirot2495 repos~1.6kAutomated safety check: PassMIT
Compound Engineering Code ReviewEveryInc/compound-engineering-plugin25k—~2kAutomated safety check: PassMIT

Similar skills

  • Test Guard

    amElnagdy/guard-skills

    Reviews newly written or edited tests against nine rules that cut test bloat, such as mock-heavy checks and near-duplicate cases, before they are committed.

    1.3k GitHub starsUsed in 2 repos~2.1k tokens
    Testing & QAAuto-check passed
  • Code Solving

    HoangTheQuyen/think-better

    Structured coding workflow for non-trivial code work: debug, build features, refactor, optimize, migrate and review code through 7 steps with evidence-based quality gates.

    122 GitHub stars~3.7k tokensUpdated today
    Testing & QAAuto-check passed
  • Cross Modal Review

    inbrainfun/inbrain

    Quality gate via second model. An agent skill from inbrainfun/inbrain.

    142 GitHub starsUsed in 1 repo~1.7k tokens
    Testing & QAAuto-check passed
  • Requesting Code Review

    HezaoHezao/poirot

    Pre-commit review: security scan, quality gates, auto-fix. An agent skill from HezaoHezao/poirot.

    249 GitHub starsUsed in 5 repos~1.6k tokens
    DevelopmentAuto-check passed
  • Compound Engineering Code Review

    EveryInc/compound-engineering-plugin

    Runs a staged pull request or diff review using selected reviewer personas, checking the change against its stated intent and project standards before producing findings.

    25k GitHub stars~2k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Code Review

    modimihir07/agentic-os

    Automated code review with checklist and quality gates. An agent skill from modimihir07/agentic-os.

    193 GitHub stars~222 tokensUpdated 1 mo ago
    DevelopmentAuto-check passed

More from athola/claude-night-market

All 154 skills in this repo
  • Night Market Diagnostics Toolkit

    athola/claude-night-market

    Run and interpret repo diagnostic scripts (ratchets, validators, token stats).

    341 GitHub stars~3.4k tokensUpdated 3 days ago
    Auto-check passed
  • Skills Eval

    athola/claude-night-market

    Evaluate Claude skill quality through auditing. An agent skill from athola/claude-night-market.

    341 GitHub stars~1.6k tokensUpdated 3 days ago
    Auto-check passed
  • Agent Teams

    athola/claude-night-market

    Coordinates Claude agent teams via filesystem protocol. An agent skill from athola/claude-night-market.

    341 GitHub stars~2.5k tokensUpdated 3 days ago
    Auto-check passed
  • Delegation Core

    athola/claude-night-market

    Delegates execution to eight CLIs (Gemini, Qwen, MiniMax, GLM, Muse, Codex, OpenCode, Glimmer).

    341 GitHub stars~2.5k tokensUpdated 3 days ago
    Auto-check passed
  • Elegant Code

    athola/claude-night-market

    Guide minimal code via a decision ladder with full safety, edge, and negative-case coverage.

    341 GitHub stars~2.1k tokensUpdated 3 days ago
    Auto-check passed
  • Skill Library Mission

    athola/claude-night-market

    Build a project skill library in .claude/skills/ via discovery, parallel authoring, and review.

    341 GitHub stars~1.6k tokensUpdated 3 days ago
    Auto-check passed

Questions about Quality Gate

What does Quality Gate do?

Orchestrates the QUALITY pipeline stage for egregore work items, running code review, unbloat, and test updates. Quality Gate is an agent skill from athola/claude-night-market. Orchestrates the QUALITY pipeline stage for egregore work items, running code review, unbloat, and test updates.

When should I use Quality Gate?

Quality Gate fits situations like: running quality checks before a PR; tasks that involve Quality gates; tasks that involve Code review.

How do I install Quality Gate in Claude Code?

Run `npx skills add athola/claude-night-market --skill quality-gate -a claude-code`. Or copy the skill folder (plugins/egregore/skills/quality-gate in athola/claude-night-market) into .claude/skills/quality-gate in your project. Claude Code loads it when a task matches its description.

How do I install Quality Gate in Codex?

Run `npx skills add athola/claude-night-market --skill quality-gate -a codex`. Or copy the skill folder (plugins/egregore/skills/quality-gate in athola/claude-night-market) into .agents/skills/quality-gate in your project. Codex loads it when a task matches its description.

Can I use Quality Gate in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add athola/claude-night-market --skill quality-gate -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/quality-gate, .gemini/skills/quality-gate, .github/skills/quality-gate and .opencode/skills/quality-gate in your project.

What does Quality Gate need to run?

Going by SKILL.md and its folder, Quality Gate needs the command-line tools its instructions call (gh, make and git).

Does Quality Gate access the network?

SKILL.md names 1 domain. As links in the text: lucumr.pocoo.org. This is read from the text; nothing was executed.

Is Quality Gate safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Quality Gate use?

Quality Gate is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Quality Gate use?

About 1.6k tokens (SKILL.md is roughly 6.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Quality Gate?

Skills that share tags, products or a category with Quality Gate: Test Guard (amElnagdy/guard-skills, 1.3k stars), Code Solving (HoangTheQuyen/think-better, 122 stars), Cross Modal Review (inbrainfun/inbrain, 142 stars) and Requesting Code Review (HezaoHezao/poirot, 249 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Quality Gate?

athola (a GitHub user) maintains it in athola/claude-night-market, which has 341 GitHub stars. The repository holds 154 skills in this directory. The repository was last updated on October 6, 2026.

Source: athola/claude-night-market on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.