/qa-flow:scan-regression-candidatesfrom qa-flow
Scans a QA scratch root folder for manual test scripts, evidence, and logs, then scores and ranks candidates worth converting into automated regression tests. Filters out probes, one-offs, and already-covered flows. Read-only; produces a ranked backlog report.
Ships in qa-flow. 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; scripts run unread.
Months of manual QA leave hundreds of throwaway scripts, evidence folders and logs in the scratch root. Some of them describe flows the team re-tests by hand every release, or bugs that came back after being fixed — those are worth a permanent regression test. Most are probes, one-off checks and investigations that would only add noise to a suite.
This skill reads the scratch root (never writes to it), groups what it finds into scenarios, scores
each with the same criteria promote-to-regression uses, checks the committed suite for existing
coverage, and returns a short ranked backlog. It does not write tests: the user picks candidates,
and promote-to-regression promotes them one at a time.
This skill is a router. Main conversation: resolve the inputs below (ask only for what you cannot
infer), dispatch one scanner subagent (deep tier — it is judgement over many weak signals), then
show its report and ask which candidates to promote. Without subagents, run Steps 1–4 yourself.
Inputs to resolve before dispatching:
_local/ in the current project. Several are fine (web and mobile).testDir), to
check coverage. Without it, every candidate is marked "coverage not checked".sc-?\d{5},
PROJ-\d+). Infer it from a listing of the scripts folder; the default catches ABC-123 and
sc123. If the prefix is optional in practice (_manual-1042-…), also pass an id range
(--id-range 1000-1999) so record ids, timestamps and ports in logs are not read as tickets.--since).<scratch root>/regression-candidates/<date>.md, a new folder — or any
folder outside the scratch root the user prefers. That is the only thing this skill writes;
everything already in the scratch root is read-only. Other tools may still be writing into the
scratch root while you scan: note the inventory's timestamp in the report.Scanner brief:
Read <absolute path>/scan-regression-candidates/SKILL.md and run Steps 1–4. Read-only on the scratch
root and the suite. Scratch root: <path>. Suite: <path>. Ticket pattern: <regex>. Window: <…>.
Write the report to <output path>. Do not ask anything; return the report's path and its summary.
Run the bundled script from the project root:
node <this skill's dir>/scripts/inventory.mjs <scratch root> --ticket "<regex>" [--id-range <min>-<max>] [--since <date>] --top 120 --out <scratch root>/regression-candidates/inventory.json
Groups are keyed by the ticket number, so two projects whose keys share a number (ABC-12,
XYZ-12) merge — pass a stricter --ticket when a scratch root mixes projects. Free text it keeps
(test titles, step names) is redacted (emails, phones, tokens, long numbers) and paths are collapsed
to routes; review the inventory before sharing it anyway.
It groups scripts, evidence folders, logs and reports by ticket — taken from any path component,
so scripts/ABC-1042-retest/recon.spec.ts belongs to #1042 — or by name stem, and records per group:
dates and active days, number of specs vs. probe scripts, evidence folders, verdicts found in
manual-test's saved results (_local/reports/), reports, comment drafts and ledgers — counted once
per file, with the group's latest_verdict (value, date, file, reviewed) and
latest_reviewed_verdict — a saved result's reviewer_verdict is the reviewed one — so "a later
PASS after the FAIL" can be read off directly — test titles, test.step names, visited paths (origin and query
string removed, ids collapsed), expect count and red flags (hard waits, force clicks). It never
reads folders named secrets, state, .auth, worktrees, node_modules, test-results,
playwright-report*, allure-*, nor files whose name suggests credentials or browser state — and it
extracts no values from scripts beyond titles, step names and paths.
Dates. A date in the path wins over the file's modification time; dates_from_names says how
many of a group's dates came from names. File times are unreliable after bulk copies or touches —
when most dates are mtimes and many groups share the same day, do not trust active_days as
recurrence; count distinct re-test runs (retest / pass-2 folders, dated evidence) instead.
Look for a tracker export in the scratch root (a JSON / CSV of stories with titles, types and
workflow states). With no tracker access, it is the best answer to "what is this ticket" and "was the
bug fixed": a bug in a done/completed state plus a later PASS re-test is a fixed bug.
Privacy rule for the rest of the scan: you may open specs, reports and run notes to understand a
group, but never open storageState/auth files, .env*, token files, or anything under the skipped
folders, and never copy credentials, tokens, emails or personal data into the report.
Work from the inventory, not from a full read of the folder. For each group that is not obviously noise (see below), read just enough to answer:
PASS, a bug found (and was it fixed and re-tested?), or only probes.Fold groups that test the same flow (same paths and outcome across tickets) into one candidate.
Obvious noise — count by category, do not analyse one by one:
lib, config, global-setup);BLOCKED / INCONCLUSIVE / PO-DECISION only);Runs older than saved reviews. Scratch roots that predate <scratch root>/reports/ have no
reviewer sign-off. Treat a run as reviewed when there is a reviewer-style artefact (a review file, a
second-pass verdict) or the ticket moved past QA in the tracker or its export — and mark it
review: inferred in the report. A PASS with neither stays MAYBE.
Recurrence vs. bug re-tests. Re-tests of a bug count toward bug history, not recurrence; recurrence is feature passes, release / regression sweeps and other tickets exercising the same flow.
An open question on one step only. Drop that step from the candidate (which can stay PROMOTE)
and list it as its own MAYBE with the question.
--top cuts. The inventory lists dropped_ticket_groups: if any look relevant, re-run with a
higher --top instead of ignoring them.
Score each remaining candidate with
../promote-to-regression/references/promotion-criteria.md
(installed next to this skill; if it is missing, stop and say so — do not improvise a rubric):
value V/7 · cost C/7, one line per non-zero criterion, then PROMOTE / MAYBE / SKIP.
Be strict. The point of the report is a short list the user can trust. A backlog of 40 "PROMOTE"
items is a failed scan: if more than ~10 survive, raise the bar (higher value first, then lower cost)
and move the rest to MAYBE with a reason.
Write the report (English, Markdown) with:
PROMOTE / MAYBE.PROMOTE.Return to the orchestrator: the report path and a ≤ 10-line summary.
Show the summary and the PROMOTE list, and ask which candidates (if any) to promote. For each one
the user picks, run promote-to-regression with that candidate — one at a time; it has its own gates
before anything is written to the suite or committed.
regression-candidates/ report folder (or the output path the user gave).MAYBE ("needs the AC").What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
5 skills in this plugin
/create-test-plan-scenariosTurn a task/ticket into a structured, professional QA test plan — a checklist of atomic, executable scenarios — and (optionally) post it back to your issue tracker. Use whenever the user asks to "create a test plan", "list test scenarios", "criar cenários de teste", "QA checklist for TICKET-XXXX", or otherwise wants a ticket turned into a verifiable QA plan. Works for any story type (UI, API, mobile, infra). Always runs a self-review pass before writing anything back./file-bug-ticketFile a bug (or feature/chore) ticket in your issue tracker via its REST API with a terse, budgeted description, attached screenshot evidence, owner/priority/placement filled in, and a verification GET before reporting done. Use whenever the user asks to "file a bug", "open a ticket", "criar um card", "abrir um bug", "report this to the tracker", or when manual-test hands over findings to file. Tracker-agnostic (Jira, Linear, GitHub Issues, Shortcut, ...)./manual-testExecute exploratory/manual QA against a web app, driven by either a ticket's test plan or a single ad-hoc scenario the user describes. Use whenever the user asks to "run a manual test", "fazer um teste manual", "execute this scenario", "validate this ticket manually", "manual test for TICKET-XXXX", or otherwise wants the agent to step through a behavior in the real app and report pass/fail with evidence. Resolves context with the user, delegates execution to an executor subagent, has the evidence checked by an independent reviewer, and only then (with approval) writes back to the tracker./promote-to-regressionTurn ONE reviewed manual QA run (a throwaway Playwright script + its report and evidence) into a committed regression spec in the project's e2e suite — only if the scenario is strong enough to earn a permanent place, rewritten in the suite's own conventions, proven stable and proven able to fail, and independently reviewed before anything is committed. Use whenever the user asks to "promote this test", "promover para regressão", "turn this manual test into an automated one", "add this scenario to the suite", "automatizar esse cenário", or picks a candidate from scan-regression-candidates. Never commits or opens a merge request without the user's explicit OK.npx claudepluginhub qamarcos/claude-qa-flow --plugin qa-flowOther plugins' skills for the same job