xoai/sage/core/capabilities/review/auto-qa/SKILL.md
auto-qa
Use after implementation passes the quality gates, when a change needs an independent pass over the code before it ships, or when the user asks to "QA this", "check the implementation", or "verify it matches the spec". Applies to Standard and Comprehensive scopes with the Task tool available; Lightweight tasks skip.
- Source repository stars
- 25
- Declared platforms
- 0
- Static risk flags
- 1
- Last source update
- 2026-08-04
- Source checked
- 2026-08-04
Decision brief
What it does—and where it fits
Quick independent verification of implementation against spec via sub-agent delegation. Runs as Gate 8 in the quality gates sequence — positioned after Gate 5 (verification), alongside Gate 6 (browser) and Gate 7 (design). 60 seconds max. Code-only. Advisory — never blocks.
Not for
- Tasks that require unconfirmed production actions or broad system permissions.
- Environments where the pinned source and install steps cannot be inspected.
Compatibility matrix
Platform support, with evidence labels
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
Inspect first. Install second.
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/xoai/sage --skill "core/capabilities/review/auto-qa"Inspect the Agent Skill "auto-qa" from https://github.com/xoai/sage/blob/f7cc487b393474030cef15d50efdbb195612b756/core/capabilities/review/auto-qa/SKILL.md at commit f7cc487b393474030cef15d50efdbb195612b756. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
What the source asks the agent to do
- 01
YYYY-MM-DD — Auto-QA: implementation
Verdict: {PASS|NEEDS FIXES|FAIL}. {findings summary if any}. User chose: {R|P|D}. (auto-qa sub-agent)
Verdict: {PASS|NEEDS FIXES|FAIL}. {findings summary if any}. User chose: {R|P|D}. (auto-qa sub-agent) - 02
Review Loop v2 (ledger mode)
Active by DEFAULT (an absent reviewloop: block means mode: v2) (loop: orchestration/quality-locked; ledger: sage/runtime/tools/ review.py). When active, the sub-agent prompt's CLASSIFY + FORMAT block above is replaced by the contract below. With mode: v1 this section is inert.
Active by DEFAULT (an absent reviewloop: block means mode: v2) (loop: orchestration/quality-locked; ledger: sage/runtime/tools/ review.py). When active, the sub-agent prompt's CLASSIFY + FORMAT block above is replaced b…Include verbatim in the sub-agent prompt:You do not decide the loop; you report findings. The decision is computed from them. A critical or major must come with a witness: a failing test you wrote and ran, a concrete repro (input → observed → expected), or an… - 03
Two-phase (rounds 1) and packet
Phase A verifies each open/not-fixed ledger entry with evidence before Phase B hunts the revision delta. The packet (assembled by the quality-gates workflow, in order): changed files + delta, gate outputs verbatim, test output + coverage for touched files, ontology blast radius…
Phase A verifies each open/not-fixed ledger entry with evidence before Phase B hunts the revision delta. The packet (assembled by the quality-gates workflow, in order): changed files + delta, gate outputs verbatim, test… - 04
When to Run
Auto-QA runs as Gate 8 in the quality-gates workflow. The gate sequence triggers it — the agent does not decide whether to run it.
Task tool is available. If not (e.g., Antigravity), there is noThe spec-gate hook refuses to let the cycle reach complete while qa:The degradation-log hook writes the decisions.md line itself, once, - 05
Time Budget
60 seconds max. If the sub-agent doesn't respond within 60 seconds, skip with: "Auto-QA timed out. Run the QA command manually for full testing."
60 seconds max. If the sub-agent doesn't respond within 60 seconds, skip with: "Auto-QA timed out. Run the QA command manually for full testing."
Permission review
Static risk signals and limitations
Runs scripts
The documentation asks the agent to run terminal commands or scripts.
"Auto-QA disabled. Run the QA command for manual testing."Runs scripts
The documentation asks the agent to run terminal commands or scripts.
skip with: "Auto-QA timed out. Run the QA command manually for full testing."Evidence record
Why each signal appears
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 93/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 25 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Provenance and original SKILL.md
- Repository
- xoai/sage
- Skill path
- core/capabilities/review/auto-qa/SKILL.md
- Commit
- f7cc487b393474030cef15d50efdbb195612b756
- License
- MIT
- Collected
- 2026-08-04
- Default branch
- main
View the original SKILL.md
Auto-QA
Quick independent verification of implementation against spec via sub-agent delegation. Runs as Gate 8 in the quality gates sequence — positioned after Gate 5 (verification), alongside Gate 6 (browser) and Gate 7 (design). 60 seconds max. Code-only. Advisory — never blocks.
When to Run
Auto-QA runs as Gate 8 in the quality-gates workflow. The gate sequence triggers it — the agent does not decide whether to run it.
Activation conditions (checked by quality-gates workflow):
-
Task tool is available. If not (e.g., Antigravity), there is no self-review fallback — self-review shares the author's blind spots, which is the entire thing auto-QA exists to avoid. So the review is skipped.
Declare the skip in the cycle manifest. Do not log it — the log is taken.
qa: skipped-no-subagent # or: passed | skipped-disabled | skipped-timeout | waivedTwo mechanisms then act on that, and neither is your discretion (R29):
- The spec-gate hook refuses to let the cycle reach
completewhileqa:is stillpending. A completion that says nothing about independent QA is not possible. You will be blocked, and told exactly what to write. - The degradation-log hook writes the
decisions.mdline itself, once, the moment you declare anything butpassed.
Announce it in the conversation too —
Sage: auto-QA skipped (no sub-agent dispatch). Quality chain is degraded.— but understand what changed: the announcement is courtesy, the manifest field is the requirement, and the durable record is no longer your job.This used to be prose asking you to remember. Phase 4 measured the result: the
decisions.mdline got written in one run out of three. A rule the model must remember is a rule the model will forget, so it stopped being one. - The spec-gate hook refuses to let the cycle reach
-
Scope is Standard or Comprehensive. Lightweight tasks skip.
-
Config allows it. Check
.sage/config.yamlforauto_qa. Ifauto_qa: false, skip with one-line note: "Auto-QA disabled. Run the QA command for manual testing." Ifauto_qa: trueor absent (default), proceed.
When the scope is Standard+ and auto-QA cannot run because the Task tool is absent, announce and log per condition #1 — a skipped QA that leaves no trace reads as a QA that passed. (A config-disabled skip shows its one-line note; a Lightweight-scope skip needs no announcement — there is nothing to QA.)
Gate 8 runs AFTER Gates 1-5 pass. Gates catch structural issues; Gate 8 catches semantic issues (spec drift, missing handlers, boundary gaps, integration mismatches).
Time Budget
60 seconds max. If the sub-agent doesn't respond within 60 seconds, skip with: "Auto-QA timed out. Run the QA command manually for full testing."
Gathering Context for the Sub-Agent
Before spawning the sub-agent, gather:
- Spec path —
.sage/work/*/spec.md - Plan path —
.sage/work/*/plan.md - Changed files — from build-loop task tracking. List all files created or modified during implementation.
- Test files — any files matching
*test*,*spec*,*.test.*,*.spec.*in the changed file list or in test directories.
Pass all four to the sub-agent prompt.
Sub-Agent Prompt
You are a QA reviewer. You were NOT involved in writing this code.
Review the implementation with fresh eyes. Be specific. Be brief.
CRITICAL: You are READ-ONLY. Do NOT modify any files. Do NOT use
Edit or Write tools. Do NOT modify specs, plans, or code. Your job
is to REPORT findings, not fix them. The user decides what to do.
INPUTS:
- Spec: {SPEC_PATH}
- Plan: {PLAN_PATH}
- Changed files: {FILE_LIST}
- Test files: {TEST_FILE_LIST}
CHECK THESE 5 THINGS:
1. SPEC-IMPLEMENTATION ALIGNMENT: Read each acceptance criterion in
the spec. Does corresponding code exist for each? Is anything
implemented that the spec doesn't mention?
2. TEST-CRITERIA COVERAGE: Do tests verify the spec's acceptance
criteria? Or do they only test implementation details? Flag any
acceptance criterion with no test.
3. MISSING ERROR HANDLING: Scan changed files for: API calls without
catch, form submissions without validation, state mutations
without guards, async operations without loading/error states.
Be specific — name the file, the line, the risk.
4. BOUNDARY CONDITIONS: Read the spec's boundaries and limits.
Is each boundary enforced in code? Flag stated limits with no
code enforcement.
5. INTEGRATION CONSISTENCY: If multiple modules were changed, do
their interfaces match? Response shapes, event contracts, shared
types. Flag mismatches.
6. CODING PRINCIPLES: Do changed files follow universal quality
principles? Check for: magic numbers, swallowed errors, unclear
names, functions doing multiple things, unnecessary global state,
missing input validation. Flag clear violations, not style
preferences.
CLASSIFY each finding:
- CRITICAL: Will break in production. Must fix.
- MAJOR: Will cause problems. Should fix before shipping.
- MINOR-substantive: Improvement opportunity. Affects readability,
maintainability, or future behavior. Can fix later.
- MINOR-cosmetic: Style/naming/formatting with equally valid
alternatives. No behavior change.
FORMAT (strict):
VERDICT: PASS | NEEDS FIXES | FAIL
CRITICAL: [list or "None"]
MAJOR: [list or "None"]
MINOR-substantive: [list or "None"]
MINOR-cosmetic: [list or "None"]
Be concise. Every finding must name a specific file and what's wrong.
No generic observations. No praise. Just findings.
Presentation Format
Clean pass
⚡ Running implementation QA (sub-agent)...
✓ Auto-QA: PASS — no issues found.
Proceeding to completion.
Issues found (no CRITICAL)
⚡ Running implementation QA (sub-agent)...
⚠ Auto-QA found {N} issues:
MAJOR: {file:line — specific finding}
MINOR: {file:line — specific finding}
[R] Fix issues — address findings before completing
[P] Proceed — ship as-is, I'll track these
[D] Discuss — let's talk about these findings
Pick R/P/D, or tell me what to change.
Critical findings
⚡ Running implementation QA (sub-agent)...
🔴 Auto-QA found a CRITICAL issue:
CRITICAL: {file:line — specific finding with impact}
[R] Fix — this will break in production
[D] Discuss — let's look at this
[P] Proceed anyway — I understand the risk
[P] Proceed is ALWAYS available. The user decides, not the gate.
Fix-and-Recheck Flow
When the user picks [R] Fix:
- The main agent reads the auto-QA findings
- For each CRITICAL and MAJOR finding, the agent fixes directly (findings include file:line — no root cause investigation needed)
- After fixes, re-run auto-QA sub-agent (same prompt, fresh context)
- If still failing after 2 iterations, surface to user: "Auto-QA still finding issues after 2 fix attempts. Remaining: {findings}. [P] Proceed / [F] Route to /fix for deeper investigation"
Max 2 re-checks. This keeps the loop bounded.
Decision Logging
After every auto-QA (any verdict), prepend to .sage/decisions.md:
### YYYY-MM-DD — Auto-QA: implementation
Verdict: {PASS|NEEDS FIXES|FAIL}. {findings summary if any}.
User chose: {R|P|D}. (auto-qa sub-agent)
Enforcement
The producing agent MUST NOT filter findings
Present ALL findings to the user exactly as the sub-agent returned them. Do NOT remove, downgrade, or dismiss findings.
Do NOT skip because gates passed
See the Rationalization table — these are the excuses observed when Gate 8 gets skipped, each with the rule that overrides it.
Rationalization table
Derived from the RED baseline in TESTS.md. Gate 8 runs as part of the sequence
when its conditions hold; the marker ⚡ Running implementation QA (sub-agent)...
MUST appear — it is not the agent's discretion.
| The excuse (observed) | Why it's wrong | The rule |
|---|---|---|
| "Quality gates already passed." | Gates 1-5 are self-review; Gate 8 is the independent pass that catches semantic drift the structural gates can't. | Gate 8 runs after the gates pass, not instead of running. |
| "The implementation is straightforward." | Straightforward code still has integration gaps, missing handlers, and boundary holes. | Simplicity is not a skip condition. |
| "The tests all pass." | Passing tests don't mean the right things were tested against the spec's criteria. | Green tests do not substitute for independent verification. |
| "I already checked this during implementation." | Self-check shares the author's blind spots — it is not independent. | Independent context is the point; your own check doesn't count. |
Review Loop v2 (ledger mode)
Active by DEFAULT (an absent review_loop: block means mode: v2)
(loop: orchestration/quality-locked; ledger: sage/runtime/tools/ review.py). When active, the sub-agent prompt's CLASSIFY + FORMAT
block above is replaced by the contract below. With mode: v1 this
section is inert.
Output contract (v2 — no verdict)
Include verbatim in the sub-agent prompt:
You do not decide the loop; you report findings. The decision is computed from them.
A critical or major must come with a witness: a failing test you wrote and ran, a concrete repro (input → observed → expected), or an execution trace. If you cannot demonstrate it, report it — it will be recorded as substantive. This is not a penalty; it is the definition of the severities.
An empty finding list is a valid, creditable outcome; you are scored on precision, not volume. Every critical/major must cite the spec clause, constitution rule, or requirement it violates — a finding that cites nothing is capped at substantive automatically, so spend your effort on citations and witnesses, not on quantity.
Findings are ONE fenced ```json block — an array of objects (prose outside it is not parsed):
[{
"pass": "spec-conformance | state-and-flow | regression-surface",
"severity": "critical | major | substantive | cosmetic",
"cited_rule": "spec §4.2 | null",
"anchor": {"file": "src/cart.py", "region": [12, 30]},
"claim": "one falsifiable sentence",
"witness": {"kind": "test | repro | trace | none",
"ref": "path or matrix cell, else null",
"status": "red | green | n/a"},
"exit_criteria": "what specifically would make this finding pass"
}]
This gate's passes
Gate 8 is the semantic pass, so its checks map to: spec-conformance
— the trace matrix over the spec's acceptance criteria (criterion →
implementation-anchor → test-anchor; every empty cell is a finding with
witness.kind: trace, the empty cell being the demonstration);
state-and-flow — missing error handling, unguarded mutations,
async without loading/error states; regression-surface — interface
mismatches between changed modules, blast-radius neighbors without
covering tests.
Two-phase (rounds >1) and packet
Phase A verifies each open/not-fixed ledger entry with evidence before
Phase B hunts the revision delta. The packet (assembled by the
quality-gates workflow, in order): changed files + delta, gate outputs
verbatim, test output + coverage for touched files, ontology blast
radius (absent → said loudly), spec/plan excerpts, the ledger, mutation
report if present. The fix-and-recheck flow above is superseded on the
v2 path: CONTINUE/STOP comes from review.py close-round, not from a
2-recheck counter.
Failure Modes
- Task tool not available: No self-review fallback (it shares the author's
blind spots). Skip the sub-agent and set
qa: skipped-no-subagentin the cycle manifest — see Activation condition #1. Thedecisions.mdline is written for you by the degradation-log hook, and the spec-gate will not let the cycle complete until you have declared something. Silence is not an available option any more; it used to be, and it was taken 2 times in 3. - Sub-agent times out: Skip with note. Do NOT block workflow.
- Sub-agent returns malformed output: Present raw output to user with note: "QA format was unexpected. Please interpret."
- Config says disabled: Show one-line note, skip.
- Fix-recheck loops > 2: Surface remaining findings to user, offer /fix for deeper investigation.
Alternatives
Compare before choosing
coreyhaines31/marketingskills
ab-testing
When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program
alirezarezvani/claude-skills
app-store-optimization
App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist
dotnet/skills
migrate-vstest-to-mtp
Migrates .NET test projects from VSTest to Microsoft.Testing.Platform (MTP). Use when user asks to "migrate to MTP", "switch from VSTest", "enable Microsoft.Testing.Platform", "use MTP runner", set OutputType=Exe only for test projects in Directory.Build.props, or mentions EnableMSTestRunner, EnableNUnitRunner, or UseMicrosoftTestingPlatformRunner. USE FOR: MTP behavioral differences vs VSTest (exit code 8, zero tests discovered, --ignore-exit-code, TESTINGPLATFORM_EXITCODE_IGNORE); centralizing
JasonColapietro/suede-creator-skills
suede-ab-testing
Suede-owned experimentation discipline for hypotheses, sample sizing, test duration, significance, and repeatable experiment programs. Use when comparing variants, deciding whether a result is reliable, or building an experiment backlog and cadence. NOT FOR: analytics instrumentation (use suede-analytics), post-click conversion diagnosis (use suede-site-alchemy), or writing the variant copy itself (use suede-copy).