quality-gate
БесплатноБез исполняемых скриптовНе проверенOrchestrates the QUALITY pipeline stage for egregore work items, running code review, unbloat, and test updates
от athola1 974 установки в других каталогахОб этом скилле
Night Market Skill: ported from claude-night-market/egregore. For the full experience with agents, hooks, and commands, install the Claude Code plugin.
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 lintdirectly)
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":
- Get changed files:
git diff --name-only main...HEAD - Load conventions from
conventions/codex.yml - Filter conventions to those mapped to the current step
- Run convention checks via
conventions.py - Invoke mapped skills on the changed files
- Collect all findings
- Calculate verdict
Auto-Fix Loop
If blocking findings exist:
- Attempt to fix each finding (skill-dependent)
- Commit fixes to the work item branch
- Re-run convention checks
- 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"
}
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:
- A
fix-requiredverdict 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 exhaustingmax_attempts, is markedfailedand the overseer is alerted (never silentlycompleted). - 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:
| Pattern | What it does | Source |
|---|---|---|
| Verifier gate as completion judge | Bind "done" to tests, lints, or result hashes the agent cannot fake | Aider, snarktank/ralph, gaasher |
| Completion promise + max-iterations cap | String-matching "done" is insufficient; pair it with an iteration ceiling and manual abort | anthropics ralph-wiggum |
| Evidence gates the agent does not control | Credential scan, test-execution validation, phase-log parsing enforced by hooks or CI | KbWen/agentic-os |
| Keep-if-better / revert-if-worse ledger | Score each change, revert regressions, log to an append-only ledger for review | gaasher/Agent-Loop-Skills |
| Legibility anchor | A persisted current-state or repo-map file that lets a human re-enter the loop | Aider repo map, agentic-os |
| Human observer checkpoint | Watch early iterations, monitor diffs, reserve loops for defined problems | anthropics, ghuntley |
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":
- Fetch PR diff:
gh pr diff <number> --name-only - Load conventions and filter to code-review step
- Run convention checks on changed files
- Invoke `pensive:unif
Установить quality-gate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл quality-gate?
Orchestrates the QUALITY pipeline stage for egregore work items, running code review, unbloat, and test updates
Как установить скилл quality-gate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл quality-gate запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic