# Quality Gate

> Use when task state is GATING and a go/no-go decision is needed before CONVERGED. Runs `harness gate` and follows `DECISION:`; MUST NOT assess quality by judgement.

- Skill: `yezhwi/quality-gate` (Agent Skill)
- Install (CLI): `npx skillmds@latest add yezhwi/quality-gate`
- Raw SKILL.md: https://api.skillmd.com/api/skills/yezhwi/quality-gate/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: yezhwi (https://skillmd.com/u/yezhwi)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/yezhwi/quality-gate

---


# Quality Gate Skill

You run the gate. You never evaluate quality yourself.

## Invocation

```bash
harness gate
```

Do not run `python scripts/quality_gate.py` as a product command. It does not
move `GATING → CONVERGED` and is not equivalent to `harness gate`.

## Related Commands

```bash
harness gate preflight
harness impact scope --format yaml
harness evidence run --type unit_test --command "pytest"
harness evidence attach --type build --file external-proof.json
harness finding resume-review FND-001
```

## Exit Code → Action Mapping

| Exit | Meaning | Action |
|---|---|---|
| 0 | Command completed | Read `DECISION:` and then `harness status`. `CONVERGED` permits `harness transition DONE`; `CONTINUE` requires `harness resume`; `ESCALATED` ends autonomous work. |
| 1 | Invalid invocation/state | Fix reported CLI precondition. Do not edit state or blockers yourself. |

`harness gate` persists `gate.blocked_by` and task state itself. Never copy blockers or transition Gate states manually.

## Hard Boundaries (不得违反)

1. **禁止 Skill 自己评估**："综合来看质量足够好" is forbidden. Persisted
   `DECISION: CONVERGED` is the ONLY pass signal.
2. **Only `DECISION: CONVERGED` permits `CONVERGED → DONE`.**
3. Gate must be re-run after ANY new evidence, finding update, or commit —
   a previous PASS is void once inputs change.

