plugins/egregore/skills/quality-gate/SKILL.md
Orchestrates the QUALITY pipeline stage for egregore work items, running code review, unbloat, and test updates. Use when running quality checks before a PR.
npx skillsauth add athola/claude-night-market quality-gateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
make lint directly)Orchestrate the QUALITY stage of egregore's pipeline. Each quality step runs convention checks from the codex and invokes mapped skills.
| 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 |
The orchestrator invokes this skill with:
When mode is "self-review":
git diff --name-only main...HEADconventions/codex.ymlconventions.pyIf blocking findings exist:
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"
}
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:
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).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. Rationale
and evidence:
docs/research/2026-07-01-the-coming-loop-agentic-harness-guardrails.md
and .claude/rules/prefer-invariants-over-fallbacks.md. The flag
is off by default; enabling it is a deliberate choice to keep a
human as the final judge.
When mode is "pr-review":
gh pr diff <number> --name-onlypensive:unified-review on the diffMap findings to GitHub review:
gh api POST review with
event "APPROVE"Comment format per finding:
[egregore:{convention_id}] {message}
Convention: {convention_name}
Severity: {severity}
Work items may have a quality_config field:
{
"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)only takes precedenceNot 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.
data-ai
Models a business in its own language. Use when the domain has real business rules to capture.
research
Generate diverse solution candidates with category-spanning ideation methods and rotation. Use when stuck on a design or fighting repetitive LLM output.
development
Generates and self-executes a diff-derived test plan for a PR. Use when validating PR changes before merge. Do not use for code review; use sanctum:pr-review.
development
Ramps implementation ambition a notch only after the prior increment is understood. Use when building a feature you must understand, not just ship.