Xpersona
Q

quality-gate

CLAWHUB · Unverified

Orchestrates the QUALITY pipeline stage for egregore work items, running code review, unbloat, and test updates Skill: quality-gate Owner: athola Summary: Orchestrates the QUALITY pipeline stage for egregore work items, running code review, unbloat, and test updates Tags: latest:1.9.19 Version history: v1.9.19 | 2026-08-26T13:10:57.636Z | user Release v1.9.19 v1.9.17 | 2026-07-30T05:33:01.509Z | user Release v1.9.17 v1.9.16 | 2026-07-14T19:49:46.603Z | user Release v1.9.16 v1.9.15 | 2026-07-04T21:23:04.668Z | user Release v1.9

62
Rank
84
Safety
1.5k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.5K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17emme0e2m3cpf7k2jvp3a84984b8z9:nm-egregore-quality-gate
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-athola-nm-egregore-quality-gate/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

65,335 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: quality-gate
description: |
  Orchestrates the QUALITY pipeline stage for egregore work items, running code review, unbloat, and test updates
version: 1.9.8
triggers:
  - egregore
  - quality
  - review
  - conventions
  - running quality checks before a PR
metadata: {"openclaw": {"homepage": "https://github.com/athola/claude-night-market/tree/master/plugins/egregore", "emoji": "\ud83e\udd9e"}}
source: claude-night-market
source_plugin: egregore
---

> **Night Market Skill** — ported from [claude-night-market/egregore](https://github.com/athola/claude-night-market/tree/master/plugins/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 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:

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

## 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. In

_meta.json

{
  "ownerId": "kn7d107jg9jv602h9ytsegydq184a42s",
  "slug": "nm-egregore-quality-gate",
  "version": "1.9.19",
  "publishedAt": 1787749857636
}

skill-card.md

## Description:

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

This skill is ready for commercial/non-commercial use.

## Publisher:

[athola](https://clawhub.ai/user/athola)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agent operators use this skill to run egregore quality checks, perform self-review before a pull request, and review pull requests through the egregore workflow.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Broad triggers may invoke workflows that modify branches or post GitHub pull request reviews.

Mitigation: Use explicit invocation, verify the target branch and pull request number, and add a confirmation step before commits or review submission.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/athola/skills/nm-egregore-quality-gate)
- [OpenClaw homepage](https://github.com/athola/claude-night-market/tree/master/plugins/egregore)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]

**Output Format:** [Markdown guidance with inline shell commands, JSON manifest decisions, and GitHub review comments when used for pull request review.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May propose branch changes, commits, or GitHub pull request reviews depending on invocation mode.]

## Skill Version(s):

1.9.19 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to quality-gate and adjacent AI workflows.