qa-plan
Installation
SKILL.md
QA Plan Drafter
!IMPORTANT: Draft and iterate in chat. Publish only after explicit user approval.
Step 0: Resolve the PR
Parse $ARGUMENTS. First, strip any trailing publish flag (--file, --github, --linear) into PUBLISH_TARGET (default: unset — draft only). The remainder, if any, is the PR reference.
- PR ref given (number or URL) → use it directly.
- No PR ref → detect from current branch:
gh pr list --head "$(git branch --show-current)" --state open --json number,url,title,headRefName,baseRefName --limit 5- Exactly one result → use it.
- Zero results → abort: "No open PR found for branch. Pass a PR number (e.g.
/qa-plan 12363)." - More than one → list them and ask the user which to use.
Echo the resolved PR as #<n> — <title> — <url> so the user can confirm.