/qa-walkthrough-pr:qa-walkthrough-pr [<pr-number> | --branch | --describe "..."]from qa-walkthrough-pr
Generates a structured test plan from a PR, branch diff, or description and walks through each test interactively for manual QA.
Ships in qa-walkthrough-pr. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Guided manual QA walkthrough that generates a test plan from a PR, branch diff, or description, builds a structured beads task list (bd create) and epic, and walks the user through each test interactively.
qa-walkthrough-pr [<pr-number-or-url>]
qa-walkthrough-pr --branch [--base=<ref>]
qa-walkthrough-pr --describe "<what to test>"
<pr-number-or-url> (optional) — A PR number or full URL. If omitted with no flags, use the current branch's PR.--branch — QA uncommitted or branch changes via git diff instead of a PR.--base=<ref> — Base ref for branch mode (default: main).--describe "<text>" — QA from a description (e.g., testing a new skill, config change, or plugin).Input: $ARGUMENTS
git branch --show-current 2>/dev/null || echo "detached"gh pr view --json number -q .number 2>/dev/null || echo "none"git status --porcelain 2>/dev/null | head -5Detect the mode from arguments:
| Arguments | Mode | Source |
|---|---|---|
<pr-number-or-url> or no args (and current branch has a PR) | PR | gh pr view / gh pr diff |
--branch or no args (and current branch has NO PR) | Branch | git diff (staged + branch vs base) |
--describe "..." | Ad-hoc | User-provided description |
If no arguments are given, auto-detect: check gh pr view --json number -q .number 2>/dev/null. If that returns a number, use PR mode. Otherwise, fall back to branch mode.
# Get the PR description and metadata
gh pr view [<number>]
# Get the changed files and diff summary
gh pr diff [<number>] --stat
gh pr diff [<number>]
Set QA_LABEL="PR #<number>".
# Get the diff summary and changes
# Codex: this path resolves under Claude Code; substitute the directory containing this SKILL.md.
SKILL_DIR="${CLAUDE_SKILL_DIR}"
bash "$SKILL_DIR/scripts/extract-test-plan.sh" --from-diff[=<base-ref>]
Set QA_LABEL to the branch name (git branch --show-current).
The user's description is the context. No code diff needed — you'll generate the test plan from the description alone.
Set QA_LABEL to a short slug from the description (e.g., "new-skill-qa-walkthrough").
In all modes: if a HANDOFF.md exists in the working directory, read it and extract any testing notes, known issues, or environmental requirements. Incorporate these into the test plan in Step 2.
Try the bundled extraction script first:
# Codex: this path resolves under Claude Code; substitute the directory containing this SKILL.md.
SKILL_DIR="${CLAUDE_SKILL_DIR}"
bash "$SKILL_DIR/scripts/extract-test-plan.sh" <number>
This parses the PR description for common test plan headings (## Testing, ## Test Plan, ## How to Test, etc.). If the script finds a section, use it as the starting point.
If no testing section exists (exit code 1), analyze the code changes and draft a testing plan.
The diff output from Step 1 is your source. Analyze the changed files and draft a testing plan based on what was modified.
Use the user's description to generate a testing plan. Focus on:
In all modes: present the test plan to the user for approval before proceeding.
Review the extracted testing steps against the actual changes (if any). Consider whether additional tests should be added:
Present any suggested additions to the user. Only add tests the user approves.
Create a beads epic and individual tasks with dependencies.
Option A — Use the bundled script (preferred for 3+ tasks):
Build a JSON test plan array and pipe it to the script:
# Codex: this path resolves under Claude Code; substitute the directory containing this SKILL.md.
SKILL_DIR="${CLAUDE_SKILL_DIR}"
echo '[
{"name": "Pre-setup: ...", "description": "...", "depends_on_index": null},
{"name": "Admin UI: ...", "description": "...", "depends_on_index": 0},
{"name": "Checkout flow: ...", "description": "...", "depends_on_index": 1}
]' | bash "$SKILL_DIR/scripts/build-qa-epic.sh" "$QA_LABEL" "<short description>"
The script creates the epic, all tasks, and wires up dependencies in one shot. It returns JSON with the epic and task IDs.
Option B — Manual creation (for 1-2 tasks):
bd create --title="QA: $QA_LABEL — <short description>" --description="Manual QA walkthrough for $QA_LABEL" --type=epic --priority=1
Create each task with --parent=<epic-id> so bd list --parent <epic-id> finds it; dependencies alone don't group tasks under the epic.
Group related sub-steps into single tasks (e.g., "Admin UI: field rendering & persistence" rather than separate tasks for each click). Run bd create commands in parallel for efficiency.
Reflect the natural testing order:
Use bd dep add <task> <depends-on> for task-to-task dependencies. Do NOT use bd dep add with epics as the target — epics track subtasks differently.
Display a visual ASCII tree of the tasks and their dependencies to the user before starting. Example:
Epic: QA: feature-branch — new checkout flow (wp-content-d9o)
|
|- 1. Pre-setup: Stripe webhook & test discount (wp-content-vep) <- READY
| |
| |- 2. Admin UI: field rendering & persistence (wp-content-9ux)
| | |
| | |- 3a. Checkout (no SSO): matching email succeeds (wp-content-58v)
| | | |- 4a. SSO: allowlisted email succeeds (wp-content-mi1)
| | | +- 4b. SSO: bypass prevention (wp-content-hm9)
Process tasks one at a time following the dependency order:
Run bd ready to find the next unblocked task
Claim it: bd update <id> --status in_progress
Explain to the user what to do, as visible reply text sent before the verdict prompt (instructions drafted only in thinking never reach the user) — be specific:
Collect a verdict. Prefer an interactive click-to-answer prompt over making the user type: if the harness offers one (AskUserQuestion in Claude Code; request_user_input in Codex when available), present the checkpoint as a two-option question:
Selecting A is a pass; selecting B — or the harness's automatic free-text "Other" — is the failure/unexpected-behavior path. When no interactive question tool is available, or the user just types, a typed p or pass means pass; anything else means something happened, and what they typed is the description.
Related short checks may be grouped into one prompt with a single verdict (e.g. two quick non-mutating checks presented together). Never batch across a state mutation — each mutating step gets its own verdict.
On pass: bd close <id> --reason="<brief result summary>"
On fail: Create a fix task and let the user decide priority: a. Create a beads bug linked to the failed test:
bd create --title="Fix: <what failed>" \
--description="<what was expected vs. what happened, steps to reproduce, relevant files/lines>" \
--type=bug --priority=1 \
--deps discovered-from:<failed-task-id>
b. Mark the QA task as failed (do NOT close it):
bd update <qa-task-id> --notes="FAILED: <brief description of failure>"
c. Ask the user one question:
This test failed. I've created
<bug-id>to track the fix. Should I work on this fix now before continuing QA, or continue testing and address all failures after the walkthrough? d. If "fix now": Work on the fix. Once resolved, close the bug (bd close <bug-id>), then ask the user to re-test the original QA step. On re-test pass, close the QA task. On re-test fail, repeat from (a). e. If "continue QA": Leave the bug open and move on. After addressing the failure, runbd readyagain — unblocked tasks that don't depend on the failed test can still proceed. Tasks that depend on the failed test remain blocked.
Move to the next ready task
Continue until all passable tasks are complete. If any failures were punted, proceed to Step 5b.
If any failures were deferred during the walkthrough:
bd list --status=open --type=bug
Filter to bugs with discovered-from links to this QA epic's tasks.bd update <bug-id> --claim
b. Fix the code
c. Ask the user to re-verify the original QA step
d. On pass: close both the bug and the original QA task
e. On fail: update the bug with new findings and ask the user how to proceedOnce all QA tasks and any punted bugs are resolved:
bd close <epic-id> --reason="All tests passed"# Codex: this path resolves under Claude Code; substitute the directory containing this SKILL.md.
SKILL_DIR="${CLAUDE_SKILL_DIR}"
bash "$SKILL_DIR/scripts/qa-cleanup.sh" <epic-id>
If the user decides to stop before all bugs are resolved, do NOT close the epic. Leave it open with a note summarizing the remaining failures so the next session can pick up where this one left off:
bd update <epic-id> --notes="QA incomplete — <N> bugs remain open: <bug-id-1>, <bug-id-2>, ..."
p/pass, or a "Pass" click means "pass, move on." A screenshot or detailed response means something needs attention.bd ready to recover state. The beads epic and task structure persist independently of the conversation. Re-invoke qa-walkthrough-pr if the skill instructions feel absent after compaction.What SKILL.md sets; muted values are Claude Code's defaults
Use when the user says "QA this PR", "qa walkthrough", "manual testing", "walk me through testing", "QA my changes", "test my changes", or wants to manually verify work before merging or pushing.
highOther plugins' skills for the same job
npx claudepluginhub jtsternberg/claude-plugins --plugin qa-walkthrough-pr