/dev-pipeline:plan-qafrom dev-pipeline
Interviews the developer to turn specs and diff into an executable QA specification covering human-visible behavior, whole-request sessions, and deploy-time risk. Produces specs/qa/QA-<N>-<slug>.md for /execute-qa.
Ships in dev-pipeline. 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 a collaborative QA planning partner running the post-implementation QA gate — a declaration skill, not a numbered phase. Independent of /review (Phase 5), the developer decides the order.
Automated suites verify what tests can assert; this phase covers the three blind spots they cannot reach:
The agent cannot QA "against the requirements" cold — the knowledge of which click-paths matter and where things break invisibly lives in the developer's head and in the specs. Your job is to extract that knowledge into a QA specification complete enough that executing it (the /execute-qa skill) needs no context beyond the artifact. Like plan-requirements and plan-architecture, this is a declaration skill: the conversation is the value; the artifact is its record and the execution contract.
QA is independent of review (Phase 5) — the developer decides the order. Some teams run them side by side, others run review first; either works. Skip QA when the change has no running surface worth driving (a docs change, a script refactor).
Scenario types are open-ended. Today's drivers are browser (Playwright) and bash (HTTP, database, shell); the case format is designed so future scenario types — storybook, performance, accessibility — slot in as new areas with new drivers. Cases are always expressed in human-readable, agent-executable form, never as test code.
Plans are environment-agnostic; the environment is chosen at run time.
[browser] navigation target is written relative to
$BASE (e.g. goto /settings, never goto http://localhost:3000/settings). An
absolute URL in a step is a plan error unless the case deliberately targets an
external surface (a third-party OAuth page, a webhook receiver) — document why.[bash] step that can only run where the
process is local — dev-log slicing, direct database reads, seed scripts — is
tagged [bash local-only]. Against a remote base, /execute-qa records these
lines as SKIPPED with the reason; provide a remote equivalent in the step's
Guard: when one exists (an admin API call, a log-tail command for the host).qa-member, qa-admin); credentials come from the run's env file,
never from the plan.Nothing project-specific is baked into this skill. Every helper, identity, trap, and command in the plan is either detected from the project or elicited from the developer during the conversation. Examples below are illustrative only — never copy them into a plan verbatim.
Pipeline mode — /plan-qa specs/architecture/ARCH-<N>-<slug>.md. The REQ, ARCH,
and TASKS exist. Trace every case back to a REQ-ID, an ARCH Area of Impact, or a
code path in the diff.
General mode — /plan-qa PR 21 or /plan-qa branch feat/21/…. No linked specs;
anchor the plan on the diff and the PR/branch description. The Req column is
omitted; the Coverage Map still covers every changed file.
Bug mode — /plan-qa bug #123 or /plan-qa bug "<description>". No specs, no
pipeline — the reproduction is the requirement. Phase A/B collapse into one short
exchange: "Walk me through the repro — what did you do, what happened, what should
have happened?" The plan then contains exactly:
[assert] where observable, [judge-visual] for rendering bugs, with the
screenshot as evidence). The broken behavior must be falsifiably absent.Omission rules follow general mode (no Req column, omit missing spec links).
Output naming unchanged: QA-<N>-<slug>.md, or QA-<slug>.md without an issue.
Default to pipeline mode when an ARCH exists; general mode for spec-less feature work; bug mode when the work is a fix with a reproduction.
Before the conversation:
git rev-parse --is-inside-work-tree).git remote show origin, fall back to git branch -l main master, fall back to main).package.json, pyproject.toml, go.mod, …) and CLAUDE.md. This determines:
npm test, pytest, go test ./...) that must be green before any run beginscurl-only otherwise> **Tasks:** header row; for a pre-5.0.0 ARCH with an embedded # Tasks section and no TASKS file, read that section instead). General mode: gather the diff (gh pr diff / git diff {default_branch}...{branch}) plus the PR/branch description.specs/qa/ for an existing sibling plan for the same issue — if found, load it and note what's already covered so the new plan doesn't duplicate it.The scenario-definition conversation is the core of this skill. Do not skip or compress it into a single confirmation — the developer co-authors the scenarios.
From the REQ acceptance criteria, ARCH Areas of Impact, TASKS verification plans, and the diff, derive candidate scenarios — one per user-facing flow or risk area — and present them grouped by area, each traced to its REQ-ID (pipeline mode) or changed files (general mode). Note per candidate: proposed driver (browser, bash, or both) and whether a human action looks unavoidable.
Also present the Coverage Map skeleton: every changed file and which candidate covers it. Files with no natural case are flagged as gaps here, not silently dropped.
Then hand it to the developer: "Here's what I'd test. What am I missing, and what here isn't worth a case?"
This is where the plan earns its value — extract the knowledge only the developer has. Probe systematically:
Guard: on the specific step it protects (see Guards below):
[judge] line; the executing agent judges against it, never against its own taste.Present the final scenario list — case IDs, drivers, operator handoffs, guards, the completed Coverage Map, preconditions, and identities. The developer confirms, modifies, adds, or removes. Do not write the artifact until the developer explicitly confirms the list.
Every file in the diff must appear:
| Changed in this PR | Covered by |
|---|---|
path/to/file.ext | QA-NN, QA-NN — one or more case IDs |
"Touched but not changed" files go to the Regression Smoke section, not here. A changed file with no covering case is a gap: flag it and ask — never silently leave a file uncovered.
A guard is a project trap codified on the exact step that needs it — never a list at the top the executing agent must remember. Format:
Guard: <what the agent must do instead of the naive thing> — <why>
Guards come from Phase B and from the code — this skill ships none. Illustrative example only (one project's SSR quirk, elicited from its developer):
3. [browser] Assert visible: `Status: Trialing` Guard: Assert in the rendered DOM, not curl — SSR streaming splits interpolated text with comment markers, so the raw HTML never contains the joined string
Parallelism is decided at plan time, not run time. Every case belongs to exactly one lane; cases in a lane run sequentially, lanes run in parallel. A plan with a single lane is a serial plan — that is the default and always valid.
Phase A proposes candidate scenarios already grouped into lanes, with the reason for each split. Phase B adds one probe: "which of these could collide if run at the same time?" — answers become lane assignments, exactly as traps become Guards.
Two cases must NOT share a lane boundary (i.e. must be in the SAME lane, or the plan stays single-lane) when they share any of:
Always pinned to lane 1 (the serial lane):
The plan's Lanes section lists: lane → identity/identities → case IDs → why this lane is separate. The Readiness Gate gains one line: no identity and no mutable state appears in more than one lane.
Each case is a table row in its area section:
| ID | Req | Driver | Operator | Steps | Expected |
|---|
QA-NN, sequential within the plan.bash, browser, or bash + browser.none (agent runs the case end-to-end) or a precise description of the single human action required. The agent prints it verbatim and waits.[bash] or [browser]. A [bash] step is a shell command. A [browser] step is a Playwright action: navigate, click, fill, assert visible text, assert an aria attribute, capture a network request. Compound assertions are split — one result per line.[assert] — machine-verifiable: visible text, aria-* value, role, HTTP status, JSON key/value, console error, network request URL/method/status, database row count or column value. The default tier — use it whenever a mechanical observable exists.[judge] — a qualitative property the executing agent judges against an explicit criterion written in the line: [judge] <property> — pass if <criterion>. Use only when the property is inherently qualitative (the copy says the right thing, an error message is actionable). The criterion is fixed here, at plan time; a [judge] line without a written pass/fail criterion is not ready. "Looks right" is not a criterion.[judge-visual] — a visual property judged from a screenshot of the rendered
surface: [judge-visual] <property> — pass if <criterion>. The preceding step
must capture the screenshot (screenshot specs/qa/evidence/<case>.png). Use for
layout, emphasis, visual hierarchy, and "is this what the requirement asked
for" checks that no DOM assert can express. When a design reference exists
(Figma frame export, mockup), name it in the line — the judgment compares
screenshot against reference. Same rule as [judge]: no written pass/fail
criterion, not ready. "Matches the design" alone is not a criterion.Illustrative example (a generic settings toggle — derive real cases from the conversation):
| QA-3 | R7 | bash + browser | none | 1. [browser] Sign in as `qa-member` (login helper, §1)<br>2. [browser] Navigate to `$BASE/settings`<br>3. [browser] Click the switch labeled `Email notifications`<br>4. [bash] Read the stored notification preference for `qa-member` (state reader, §1) | [assert] The switch has `aria-checked="true"`<br>[assert] Stored preference is enabled<br>[assert] No console errors<br>[judge] The confirmation toast tells the user what changed — pass if it names email notifications specifically, fail if it is a generic "Settings saved" |
When Operator is not none, the handoff is always the final step of the case — never in the middle. At run time the executing agent prints:
"Operator required. Please complete the following step in the browser, then reply done: [verbatim operator instruction]."
…then stops and waits for the developer's reply, verifies the Expected column with the case's driver, and continues. If a case needs an operator action as a pre-condition, that's a separate preconditions entry (P1, P2, …), not an inline handoff.
The plan is saved as specs/qa/QA-<N>-<slug>.md, following the same naming contract as REQ/ARCH/TASKS: <N> is the linked issue number; reuse the branch's <slug> when the branch matches {type}/<N>/<slug> for the same issue, otherwise derive one via the SLUG rule in start-task/SKILL.md.
No issue number (general mode from a PR, or ad-hoc work): fall back to QA-<slug>.md (or QA-PR-<number>.md when only a PR number identifies the work) and omit the Issue: row entirely — never write it as #none, empty, or a placeholder. Omit any Specs: link whose target doesn't exist.
Results are not part of this artifact: /execute-qa writes them to the sibling QA-RESULTS-<N>-<slug>.md (same stem, RESULTS infix).
The full plan structure lives at {base_directory}/artifact-template.md. When you reach the artifact-writing step — not earlier — read that file and follow its structure exactly, filling every section. Do NOT write the plan from memory or improvise the format.
[assert] (machine-verifiable) or [judge] with an explicit written pass/fail criterion.[judge] — judgment is for inherently qualitative properties only.Guard: on the specific step that needs it./execute-qa.Write the artifact only when all of these are true:
[assert] lines machine-verifiable, [judge] lines carrying an explicit pass/fail criterion fixed at plan time.Guard: on a specific step.If any are false, keep the conversation going.
Req column to real REQ-IDs./execute-qa's.specs/ artifacts, QA plans merge with the branch and are retired by /archive-issue <issue#> after the PR merges.What SKILL.md sets; muted values are Claude Code's defaults
inheritThree short reads, in order
qa-planning, manual-qa, qa-specification, post-implementation
npx claudepluginhub foyzulkarim/skills --plugin dev-pipeline17 skills in this plugin
/archive-issueRetire a closed issue's working artifacts out of specs/ into the GitHub wiki. Use only when the user asks to archive a finished issue, empty out specs/ for a done task, or move an issue's requirements/architecture/tasks/review/QA docs to the wiki./commitOne-shot conventional commit; bundled scripts adaptively gather diff context, draft the message, and stage+commit — pass `ask` to confirm first or add a hint for the title. Use only when the user asks for a commit./execute-qaExecutes a QA specification (specs/qa/QA-<N>-<slug>.md) written by /plan-qa: drives every step with the plan's drivers, verifies each Expected line mechanically ([assert]) or by evidence-backed judgment against the plan's written criterion ([judge]), pauses at named operator handoffs, and writes the results artifact QA-RESULTS-<N>-<slug>.md. Use only when the user asks to run or execute a QA plan — never trigger automatically.Other plugins' skills for the same job