/dev10x-coding:qa-scopefrom dev10x-coding
Analyzes a PR for QA needs by assessing regression risk, checking e2e coverage gaps, and creating Linear sub-tickets when manual testing or new e2e tests are required.
Ships in dev10x-coding. 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.
This skill follows references/task-orchestration.md patterns.
Create a task at invocation, mark completed when done:
REQUIRED: Create a task at invocation. Execute at startup:
TaskCreate(subject="Analyze PR for QA needs", activeForm="Analyzing QA scope")Mark completed when done: TaskUpdate(taskId, status="completed")
Analyzes a PR for QA needs by assessing regression risk, checking existing e2e test coverage in the project's e2e suite, identifying gaps, and creating QA sub-tickets in Linear when manual testing or new e2e scenarios are needed.
Use when:
/dev10x-coding:gh-pr-monitor triggers Phase 2.5 (automatic)Do NOT use for:
Required:
Available context:
$E2E_ROOT — the project's e2e test repository, resolved at Phase 3.0.
There is no fixed path: this skill ships with every project, and the
suite lives wherever that project keeps itAccept input as PR URL, PR number, or auto-detect from current branch. One call resolves all four values:
mcp__plugin_dev10x_cli__pr_detect(pr="<URL, bare number, or empty>")
It returns PR_NUMBER, REPO, PR_URL and BRANCH. Take BRANCH
from the response rather than from local git — in a multi-worktree
checkout the local branch is not necessarily the PR's head.
Parse ticket ID from branch name following username/TICKET-ID/[worktree/]description convention:
TICKET_ID=$(echo "$BRANCH" | grep -oP '[A-Z]+-\d+')
gh pr diff $PR_NUMBER # cli-friction: allow raw-gh-pr — no MCP diff wrapper exists; declared in allowed-tools
Identify changed modules by examining file paths in the diff. Map each changed
file to its bounded context (e.g., src/payments/ → payments, src/square_oauth/ → square_oauth).
Use Linear MCP to retrieve:
Store the Linear issue ID — it will be used as parent when creating the QA sub-ticket in Phase 5.1. Look up by the ticket identifier parsed in Step 1.2 (e.g. search for JIRA-5345 or PAY-133).
Before doing any risk assessment, check if QA work already exists:
list_issues to find sub-tickets with "QA" in the title under the parent ticketIf existing QA tickets cover the changed area AND unit tests are comprehensive, set the recommendation to "No new ticket needed" and skip to Phase 4 presentation.
Why? Recommending a new QA ticket without checking existing ones causes redundant work. Unit test coverage at 100% on a guard clause / defensive check (no UI impact) often makes a separate QA ticket unnecessary. Turn 16 of the PAY-58 pr:monitor session.
Classify the change into a risk level based on what was changed.
| Risk Level | Criteria | QA Action |
|---|---|---|
| Low | Config-only, docs, test-only, CI changes | No QA ticket needed |
| Medium | New scope/permission, refactoring with tests, admin changes | QA regression ticket |
| High | Payment flow changes, new features, DB migrations, external API changes | QA regression + e2e coverage ticket |
Evaluate each factor and aggregate:
| Factor | Risk Contribution |
|---|---|
Touches payments/ or money calculation code | +High |
| Modifies external API integrations (Square, Motor, PartsTech) | +High |
| Includes DB migrations | +Medium-High |
| Changes OAuth scopes or authentication | +Medium-High |
| Adds new user-facing feature | +High |
| Refactors existing code with full test coverage | +Medium |
| Modifies admin/config only | +Medium |
| Test-only or config-only changes | Low (stop here) |
| PR has 100% unit test coverage for new code | Reduces risk one level |
Resolve $E2E_ROOT before searching anything. In order:
e2e_root entry for this repo in the project's qa-scope config
(3-tier resolution, references/config-resolution.md)-e2e under the same parent
directory as the repo under reviewfeatures/ directory inside the repo under reviewWhen none of the three resolves, stop and say so. Report the coverage check as "not performed — no e2e suite found" and let risk stand on the Phase 2 assessment alone. Do NOT report "no existing coverage": a suite that was never searched and a suite with no matching scenarios produce the same empty result, and only one of them justifies filing a new-tests ticket.
When the project keeps a coverage map, look up the changed modules' feature
files, tags, and step definitions there rather than searching the whole
suite. references/e2e-coverage-map.md is a worked example from one
project, not a map of yours — a project's own map belongs at tier 1 or 2.
With no map, skip to 3.2.
Search the resolved suite for scenarios that exercise the changed code paths:
# Search feature files for relevant keywords
grep -r "keyword" "$E2E_ROOT/features/" --include="*.feature"
# Search step definitions for relevant steps
grep -r "keyword" "$E2E_ROOT/features/steps/" --include="*.py"
# Check page objects for relevant UI interactions
grep -r "keyword" "$E2E_ROOT/tests/pages/" --include="*.py"
Layouts differ — tests/pages/ in particular is a convention, not a
standard. A path that does not exist is a miss to work around, not
evidence of missing coverage.
Compare what the PR changes against what existing e2e tests cover:
Format and present the QA verdict to the user for approval before creating any tickets.
QA Assessment for PR #<number>
Risk: <Low | Medium | High>
Reason: <1-line summary of why this risk level>
Changed Modules:
- <module 1> (<risk contribution>)
- <module 2> (<risk contribution>)
E2E Coverage:
Existing: <what's already covered>
Gap: <what's missing>
Gap: <what's missing>
Recommendation: <No QA needed | QA regression ticket | QA regression + e2e ticket>
Regression Test Cases:
1. <test case>
2. <test case>
3. <test case>
New E2E Scenarios Needed:
1. <scenario description>
2. <scenario description>
Create QA sub-ticket? (y/n)
REQUIRED: Call AskUserQuestion (do NOT use plain text) to get
approval:
Before creating a new ticket, check if one already exists:
list_issues to find sub-tickets with "QA" in the
title under the parent ticketWhy? PAY-616 session found QA-202 (On Hold) covering the same domain. Creating a duplicate would be noisy and confusing.
Create the QA ticket as a sub-ticket of the PR's Linear ticket. Use the Linear
issue ID retrieved in Step 1.4 as the parent parameter. This links the QA
ticket to the feature ticket in Linear's hierarchy.
Ticket destination routing — choose based on user instruction:
| User says | Destination | How |
|---|---|---|
| (default, no instruction) | Linear QA team | team: "QA" (id: c89229e5-8aeb-4934-8575-aa9f18c22e99) |
| "JIRA team ticket" | Linear JIRA Sync team | team: "JIRA Sync" (id: 0c456d25-e332-4210-992e-65f668a5080e) — auto-syncs to Jira application |
| "JIRA ticket" (no "team") | Jira application directly | Use Jira REST API with credentials from MEMORY.md |
Use Linear MCP create_issue:
Team: <see routing table above>
Title: QA: <PR ticket title>
Parent: <PR's Linear issue ID from Step 1.4>
Description: <structured test plan — see format below>
## Context
PR: <PR URL>
Ticket: <parent ticket ID and title>
Risk: <level>
## Changed Areas
- <module>: <what changed>
## Regression Test Cases
- [ ] <test case 1>
- [ ] <test case 2>
- [ ] <test case 3>
## E2E Coverage Gaps
Existing coverage: <summary>
New scenarios needed:
- [ ] <scenario 1>
- [ ] <scenario 2>
## Related Resources
- <links to relevant admin pages, API docs, Square docs, etc.>
REQUIRED: Call AskUserQuestion (do NOT use plain text) to ask
who to assign. Offer the project's QA
assignee when its config names one, otherwise offer the tracker's own
candidates (team members already assigned to QA tickets) — never a
name hardcoded here, which belongs to one deployment's staffing and
not to every project the plugin ships to.
Output the created ticket ID and URL.
dev10x-coding:qa-scope
├── Uses: Linear MCP (ticket data, create sub-ticket)
├── Uses: GitHub CLI (PR diff, PR details)
├── Reads: $E2E_ROOT (e2e coverage check, resolved at Phase 3.0)
├── References: references/e2e-coverage-map.md (worked example)
├── Called by: pr:monitor (Phase 2.5)
└── Standalone: /qa-scope <PR URL or number>
/qa-scope https://github.com/example-org/app-pos/pull/1169
/qa-scope 1169
/qa-scope # auto-detect from current branch
Triggered automatically in Phase 2.5 when CI passes and PR has approval.
QA Assessment for PR #1169
Risk: Medium
Reason: Adds new Square OAuth scope (DEVICES_READ) — changes external API authorization
Changed Modules:
- square_oauth/ (OAuth scope change → Medium-High)
E2E Coverage:
Existing: square.feature covers invoice + payment link flows
Gap: No terminal device pairing/listing tests
Gap: No OAuth re-authorization flow tests
Recommendation: Create QA regression ticket
Regression Test Cases:
1. Verify existing Square OAuth authorization still works
2. Verify legacy token refresh includes new scope
3. Verify terminal checkout flow unaffected
4. Verify new OAuth authorization includes DEVICES_READ
New E2E Scenarios Needed:
1. OAuth re-authorization flow after scope change
2. Terminal device listing in POS settings
Create QA sub-ticket? (y/n)
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
qa-analysis, pr-review, e2e-coverage, regression-testing, linear-tickets
npx claudepluginhub dev10x-guru/dev10x-claude --plugin dev10x-coding40 skills in this plugin
/ci-reviewdev10x-coding:ci-reviewUse when a change to a Claude CI review prompt, args file, reviewer agent or CLI pin needs checking before it merges — so you read what the CI code review and PR hygiene check would post on a real PR, with nothing reaching GitHub unless you choose, after reading the report, to share it as one marked replica comment. TRIGGER when: "what would the CI review say", replaying the Claude CI review locally, verifying a review prompt or model change on a PR. DO NOT TRIGGER when: self-reviewing a branch with no PR (use dev10x-coding:review), or reviewing someone's PR and posting (use dev10x-coding:gh-pr-review).
/fanoutdev10x-coding:fanoutProcess multiple independent work items as a worktree-isolated swarm — each item runs the full dev10x-coding:work-on lifecycle inside its own background Agent with isolation="worktree" (under Herdr, its own Herdr workspace and agent). Honors dependencies, minimizes conflicts, auto-advances by default. TRIGGER when: 2+ independent work items need parallel processing (PRs, issues, tickets). DO NOT TRIGGER when: single task or sequential dependency chain (use dev10x-coding:work-on); already running as a swarm child (see recursive-fanout guard).