quality-gate-orchestrator
Quality Gate Orchestrator
Agents often remember to run checks at the end, when it is easiest to miss a failed or skipped gate. Use this skill to track required validation throughout the task.
When to Invoke
- A task has multiple test, lint, build, review, or migration checks
- The user asks for tests-first, verification-first, or completion gates
- Work spans sessions and validation state must survive handoff
- The agent is about to declare completion
Gate Model
Each gate has:
name- stable identifier such aslint,unit-tests, ormigration-dry-runcommand- command to run, if applicablerequired- required gates must pass or be waived before completionlast_status-pending,pass,fail, orwaivednote- short reason, error summary, or waiver explanation
How to Use
python3 gate.py --status
python3 gate.py --add --name lint --command "npm run lint"
python3 gate.py --add --name smoke --command "npm test" --optional
python3 gate.py --record --name lint --status pass
python3 gate.py --record --name smoke --status waived --note "Not relevant for docs-only change"
python3 gate.py --ready --format json
Procedure
- At the start of risky work, add the expected gates.
- After each check, record
pass,fail, orwaived. - If a required gate fails, fix the issue and record a new result.
- Before completion, run
python3 gate.py --ready. - Do not claim completion unless readiness is true or the user accepts the remaining risk.
State
Gate state is stored in ~/.openclaw/skill-state/quality-gate-orchestrator/state.yaml.
Fields: gates, last_ready_at, ready, and gate_history.
Guardrails
- Recording a gate result does not run the command for you.
- Waivers need a note.
- Required gates default to pending until recorded.
More from archieindian/openclaw-superpowers
context-window-management
Prevents context overflow on long-running OpenClaw sessions. Use when approaching context limits.
26heartbeat-governor
Enforces per-skill execution budgets for scheduled cron skills — pauses runaway skills that exceed their token or wall-clock budget before they drain your monthly API allowance.
25using-superpowers
Bootstrap skill — teaches the agent how to find and invoke skills. Use when starting any new task or session.
20long-running-task-management
Breaks multi-hour tasks into checkpointed stages with resume capability. Use when a task is expected to take more than 30 minutes or multiple sessions.
19fact-check-before-trust
Triggers a secondary verification pass for any agent output containing factual claims, numbers, dates, or named entities before the output is acted on
19agent-self-recovery
Detects when the agent is stuck in a loop and escapes systematically. Use when you notice repeated failures or loss of direction.
18