← ClaudeAtlas

fix-pr-qa-failureslisted

Use when a PR has QA-reported failures, a "Testing Failed" label, or QA comments saying features are broken. Covers reading QA feedback, tracing root causes, applying scoped commits, updating PR labels, and posting a QA re-test comment.
mralaminahamed/wp-dev-skills · ★ 3 · Testing & QA · score 76
Install: claude install-skill mralaminahamed/wp-dev-skills
# Fix PR QA Failures ## Overview Full workflow for diagnosing and fixing bugs reported by QA on an open PR. Starts from the GitHub PR URL, ends with labels updated and a QA re-test comment posted. ## Supporting files - `scripts/fetch-pr-context.sh <pr> [owner/repo]` — Step 1 in one command: prints PR metadata, labels, and the full QA comment thread (newest last). - `references/root-cause-patterns.md` — catalog of recurring bug patterns (symptom → cause → detect → fix). **Read before tracing; append after.** - `references/qa-comment-template.md` — the Step 8 re-test comment template + rules. ## Workflow ```dot digraph fix_qa { rankdir=TB; "Read PR + QA comments" -> "Checkout branch"; "Checkout branch" -> "Trace root causes in code"; "Trace root causes in code" -> "Fix scope-by-scope"; "Fix scope-by-scope" -> "Lint / static analysis"; "Lint / static analysis" -> "Commit each fix separately"; "Commit each fix separately" -> "Push branch"; "Push branch" -> "Update PR labels"; "Update PR labels" -> "Post QA re-test comment"; } ``` ## Step 1 — Read PR and QA comments ```bash scripts/fetch-pr-context.sh <number> <owner/repo> ``` Or manually: ```bash gh pr view <number> --repo <owner/repo> \ --json title,body,author,baseRefName,headRefName,state,labels gh pr view <number> --repo <owner/repo> --json comments,reviews ``` Collect: - Which features QA says are broken (exact words) — read the **latest** QA comment; across re-fix rounds s