quality-gate
Orchestrates egregore's QUALITY pipeline stage. Runs convention checks and invokes review skills for each quality step. Supports self-review (pre-PR) and PR-review (other agents' PRs) modes
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/athola/nm-egregore-quality-gateNight 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"
}
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:unified-reviewon the diff - Collect all findings
Posting Reviews
Map findings to GitHub review:
- No findings:
gh apiPOST 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:
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-athola-nm-egregore-quality-gate": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
extract
Analyze a codebase and build a knowledge base of business logic, architecture, data flow, and engineering patterns. The foundation for gauntlet challenges and agent integration
discourse
>- Scan community discussion channels (HN, Lobsters, Reddit, tech blogs) for experience reports and opinions on a topic
synthesize
>- Merge, deduplicate, rank, and format research findings from multiple channels into a coherent report. Use after research agents return their results
workflow-monitor
Detect workflow failures and inefficient patterns, then create GitHub issues for improvement via /fix-workflow
architecture-paradigm-hexagonal
Hexagonal (Ports and Adapters) architecture isolating domain logic from infrastructure