/autoqa:autoqafrom autoqa
Self-QA a repo's running application end-to-end: discover how it runs, build a feature×modality test plan, execute against a live instance, and produce a witnessed pass/fail report.
Ships in autoqa. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are the QA engineer for this repo. Every verdict is witnessed — it points at an artifact (an HTTP response, a page snapshot, a log line, a DB row) that shows the result, not merely a file that exists. The full witness contract is in Hard rules below.
Establish three facts before anything else:
AUTOQA.md at the repo root or under docs/. It is the
repo's reusable baseline, not the complete plan: how to run, how to auth, optional
catalog/core checks, and known env caveats. If found, read it now and skip the generic
discovery in Phase 1, but never skip Phase 2's diff discovery. Missing config means
full Phase 1 — and a repo you QA repeatedly earns one: write AUTOQA.md from what Phase
1 taught you so later runs can start from that baseline.Done when: repo path, instance URL (or "must boot"), and config-or-none are stated.
Read the repo the way a new engineer would, in this order, stopping when the three questions below are answered. Full source-priority list and what each source answers: references/discovery.md.
Done when: you can write down the run command, an auth recipe, and a feature inventory — each traced to the file that taught you it.
Build the plan from these sources:
AUTOQA.md or Phase 1
only when the caller asks for full release or catalog QA.Write the selected inventories as numbered lists, preserving their source (BASE or DIFF).
Then build one matrix: one row per inventory item, columns = source, modality, entry point,
check, pass criterion, witness to capture. Deduplicate overlapping rows without dropping the
stronger pass criterion. The matrix must have at least one row per item. The report states
separate and total coverage arithmetic.
Apply domain checks only when the diff affects that domain. Run UI checks when the diff affects a UI entry point. Run research end-to-end checks when research execution changes. Run storage or billing checks when storage or billing changes. Backend-only changes require API checks. Run CLI checks only when the diff affects a CLI entry point or the CLI is needed to prove the changed behavior.
State execution budgets in the plan: maximum wall time, external jobs, synthetic resources, and UI sessions. Move-only work defaults to one preview and one pass over affected paths. Do not launch deep research unless the diff changes research execution.
Scope comes from the first of these that exists: an explicit instruction from the caller
("smoke only", "full release QA"), a scope the repo's AUTOQA.md pre-selects for
unattended runs, or a question to the user. When either of the first two applies, record it
in the plan and do not ask; a repo that runs this skill from a pipeline pre-selects its scope
in AUTOQA.md precisely so the run never blocks on a prompt.
Otherwise, after drafting the inventories and before executing, use AskUserQuestion with multiple
choice and multiSelect: true to ask what the user wants included. In Codex environments,
use the equivalent structured user-input tool when available. Populate the choices from the
actual repo and diff, rather than showing a generic checklist. Offer up to four concise
groups such as:
Health is always included. Include auth only when authenticated code changed. Treat the selection as test scope, not authorization to mutate production or real customer data. If the user already explicitly selected scope, do not ask a redundant question. Record that choice in the plan. If no structured question tool is available and scope is not explicit, ask the same concise multi-choice question in plain text and wait.
SKIPPED (unreachable — candidate dead code), and it never executes. Reachability is a
planning property; deciding it now is what stops you from running a router endpoint
nothing navigates to and mistaking its breakage for a bug.AUTOQA.md, a feature tracker, or a prior report can never
suppress a test implied by the current diff. A prior PASS is context, not a witness for
the current run.session-sensitive. Give each row the run ID and require a session created for that run. Its
setup witness must show exactly zero turns and zero children before the first action. The
first launch appends exactly one turn and one child,
a continuation appends exactly one turn and one child after them, and replay appends nothing
and returns the same IDs in the same order.Done when: the selected inventories exist, the matrix has at least one row per item, every row carries all required columns, every executable row names a traced entry point, and the user's selected execution scope and budgets are recorded.
Execute only rows whose entry point was traced in PLAN. Run the matrix top to bottom against the live instance.
BLOCKED — report what failed to boot and stop; never force a ship/don't-ship verdict
on an app you never ran.<scratch>/autoqa-report.md,
evidence in <scratch>/autoqa-evidence/, witness paths relative to that shared parent so
they resolve. Name witness files by row: curl output with status codes, page snapshots or
screenshots, log excerpts.BLOCKED_INFRA for the affected rows.
Keep completed scoped results intact. State review readiness separately from any merge
policy that treats the infrastructure failure as blocking.Capture before/after evidence only when observable behavior changed. Compare that behavior with the clearest observable evidence. UI changes use screenshots. Non-UI changes use contract output, status and body shape, OpenAPI, logs, or an equivalent observable result. Behavior-preserving work needs one contract-equivalence witness, not an artificial pair. Do not require screenshots when behavior must not change.
For UI changes, pair the branch screenshot with the same view from a running base instance when one exists:
before: none (no base instance) on the row and move on.<row>-before.png and
<row>-after.png under the evidence dir.Done when: every matrix row is PASS, FAIL (with cause), UNTESTED (with reason), SKIPPED, or
BLOCKED_INFRA. Each row has a witness that shows the asserted result. Every row with changed
observable behavior names its before/after evidence or records
before: none (no base instance). Behavior-preserving rows name their equivalence witness.
Write the report from the template in references/report-template.md: verdict table (feature, modality, result, witness path), the Before / After table for changed rows, failure triage (release blocker vs env quirk vs test bug), and the one-paragraph bottom line a release owner can act on. The Before / After table is written so a caller can lift it into a PR body once the images are published.
When a caller publishes the report to a pull request, the PR keeps one report comment. Find
the comment that starts with <!-- agent-sticky:autoqa-report --> and edit it for the new
head, moving the previous verdict into Earlier heads; create it only when none exists. Never
post a second report. The upsert recipe is at the end of
references/report-template.md.
Done when: the report file exists next to the evidence dir, every table row's witness path resolves, and the bottom line states ship / don't-ship / ship-with-caveats / blocked.
discovered / rows / untested so
a dropped feature is visible arithmetic, not a silent gap.AUTOQA.md, or from a structured multi-select question after planning, in that order.
Record excluded groups as out of scope; do not silently omit them.docker compose up.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub parcha-ai/parcha-skills --plugin autoqaOther plugins' skills for the same job