spec-quality-gate

Validates specification files through reviewer agent cycles before implementation planning begins.

Updated May 21, 2026
One-click install
npx skills add https://github.com/CagesThrottleUs/private-ai-harness --skill spec-quality-gate-cagesthrottleus
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spec-quality-gate
Source: https://github.com/CagesThrottleUs/private-ai-harness/tree/main/skills/spec-quality-gate
Command: npx skills add https://github.com/CagesThrottleUs/private-ai-harness --skill spec-quality-gate-cagesthrottleus

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Specs written during brainstorming often contain format defects, vague requirements, and placeholder text that derail implementation planning. This Skill enforces a hard quality gate so no plan proceeds until the spec passes a structured review. ## Core Features & Use Cases - Deterministic Pre-Lint: A bash script checks frontmatter fields, sequential REQ numbering, REQ block completeness, Test Coverage Matrix consistency, and residual placeholders at zero LLM cost before any agent dispatch. - Reviewer Agent Loop: Dispatches the spec-quality-reviewer agent against the spec file, presents the full report, and re-runs after author fixes until PASS, escalating only on genuine non-convergence. - Gated Transition: On PASS, routes architectural changes to high-level-design and non-architectural changes to writing-plans. - Use Case: After brainstorming writes .ai/2024-06-01-checkout/specs/specs-checkout.md, run the gate to catch a missing Test Coverage Matrix entry and a TBD placeholder before any planning tokens are spent. ## Quick Start Run the spec quality gate on the spec file that brainstorming just wrote and loop the reviewer until it passes.

Frequently Asked Questions about spec-quality-gate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate a spec before implementation planning?

Run the pre-lint script against the spec file first to catch mechanical format failures, then dispatch the spec-quality-reviewer agent with the spec path. Re-run both after each round of author fixes until the reviewer returns PASS.

What does the spec pre-lint script check?

The bash script checks YAML frontmatter fields (spec_id, title, status, north_star), sequential REQ numbering without gaps or duplicates, REQ block completeness, Test Coverage Matrix consistency, Out of Scope and Non-Functional Requirements sections, and residual placeholders like TBD.

When should the spec quality gate run in the workflow?

It runs after brainstorming writes the spec and before high-level-design or writing-plans starts. No planning may proceed without a passing gate, and a second traceability gate runs after implementation before merge.

What happens if the spec review never converges to PASS?

The loop has no fixed cycle cap. Escalation to a human occurs only on genuine non-convergence, meaning a re-run returns the same failure the author already attempted to fix with no forward progress, indicating a design problem the gate cannot resolve.

Does the pre-lint script replace the reviewer agent?

No. The script only covers deterministic Section 1 format checks and the placeholder scan. Judgment checks such as requirement clarity and north-star alignment still require the spec-quality-reviewer agent.