qa-shared
Skill19 starsChanged 6 months agoMITView on GitHub
The QA contract shared by web and mobile autonomous testing — the verify loop, artifact conventions, failure-analysis format, and credential/payment safety rules. Auto-applies alongside web-qa or mobile-qa; read it before running any E2E scenario, writing a QA report, or explaining a test failure, so a browser run and a device run are held to the same standard.
- Reads credentials
In this repository14 other files it gives its agents.
- automation-firstSkill
- clean-code-typescriptSkill
- code-splittingSkill
- final-responseSkill
- gauge-improvementsSkill
- karpathy-guidelinesSkill
- mobile-qaSkill
- orchestrationSkill
- requirement-intelligenceSkill
- root-cause-analysisSkill
- technical-writingSkill
- ui-ux-pro-maxSkill
- web-design-guidelinesSkill
- web-qaSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Never run scenarios on a red preflight.
- Very specific: line 26
Derive selectors, never invent them: Read the real accessibility tree first — browser_snapshot (web) or ui --json (mobile).
- Distinctive: line 56
Every capture prints its absolute path on stdout so an agent can cite it.
- Very specific: line 93
Check the app repo's .gitignore covers the artifacts root and .env.qa before the first run.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
QA — the shared contract
One QA engineer, two surfaces. web-qa drives a browser, mobile-qa drives a device; the loop,
the evidence rules, the artifact layout, the report format and the safety rules below are identical
for both. Platform skills own only what is genuinely platform-specific (selectors, control plane).
The autonomous loop (both surfaces)
doctor → build/deploy → launch → read the accessibility tree → act → assert
└── FAIL → capture evidence → rank root cause → fix or file → re-run via cdt-verify → repeat- Preflight.
cdt-web-qa doctor/cdt-mobile-qa doctor. Any FAIL → fix or report BLOCKER. Never run scenarios on a red preflight; every downstream failure is noise. - Automation-first. Build/serve/deploy the app under test through the repo's own automation —
Makefile target first, then package scripts,
scripts/, docs/CI. Never improvise. A Makefile target that fails → STOP and report. (skill:automation-first) - Fresh state per scenario. Mobile:
reset <pkg>. Web: a fresh browser context (new storage state). Shared state between scenarios is the #1 source of phantom failures. - Derive selectors, never invent them. Read the real accessibility tree first —
browser_snapshot(web) orui --json(mobile). A selector taken from source is a guess; one from the tree is a fact. - Execute + assert per the platform's
references/scenarios.md. - On failure, capture before you reason. Then state a ranked root cause (below).
- Fix or file, then re-run the same command through
cdt-verify -- <cmd>. Only acdt-verifyexit code is evidence. Evidence recorded before your last edit is stale and does not count. - Bounded. Same command + same failure signature twice → stuck loop: escalate to the
Bug Council (
/cdt:bug-council); do not attempt a third identical patch. Hard capCDT_MAX_ITERATIONS(default 5). Hitting it is not permission to claim success — reportDEFERRED/BLOCKERwith what is still red.
This is skills/orchestration/SKILL.md STEP 3b applied to a UI. Same vocabulary, same gate.
Two layers — both required, on both surfaces
| Layer | Web | Mobile | Lifetime |
| Exploratory — reproduce, poke, explore | Playwright MCP | mobile MCP / cdt-mobile-qa | this session |
| Regression — prove it stays fixed | Playwright spec in qa-web/ | Appium spec in qa/ | forever |
Every confirmed bug ends as a durable test, not a screenshot. A screenshot proves it broke once; a committed spec proves it stops breaking. Exploration finds the bug; the harness is the deliverable.
Artifacts — one layout for both
<repo>/.claude/qa/<platform>/<runid>/ platform = web | mobileOverride with CDT_QA_ARTIFACTS. The artifacts root ignores itself (a .gitignore containing *
is written when the directory is created), because captures carry session tokens, OTPs and PII.
Every capture prints its absolute path on stdout so an agent can cite it.
Failure analysis — the required format (both surfaces)
"The login test failed" is not a report. Every failure carries:
| Field | Content |
| Where | the exact selector or assertion that failed, and the step number |
| State | the accessibility tree / DOM snapshot at the moment of failure, not a later one |
| Logs | browser console + failed network requests (web) · logcat window (mobile) |
| Cause | ranked: app bug / test bug / env or flake — with the evidence for the top pick |
| Artifacts | screenshot, video, and (web) trace paths |
Flake triage: re-run the failing step once. Passing on retry is a flake finding, not a pass — report it as flaky with the suspected timing cause. "It passed the second time" never closes a ticket.
Apply root-cause-analysis. For genuinely hard diagnosis, convene the Bug Council rather than guessing.
Reporting
Per skills/orchestration/SKILL.md: a gate table (scenario → pass/fail) with fenced output for
failures, artifact paths, tests added, and a BLOCKER for anything unverified. If a scenario could not
run (no device, no browser, no sandbox creds, no build), say exactly that — never a soft "looks fine".
Security & safety (non-negotiable, identical on both surfaces)
| Rule | Why |
Never hardcode credentials in a test, config or spec. Read from env / a gitignored .env.qa. | A committed test password is a committed password. |
| Never run payment flows against production or a live processor. Sandbox / test-mode keys only. | Real money, real chargebacks. |
| Only production payment creds available → refuse and report. Do not "just test carefully". | There is no careful version of charging a real card. |
| Never commit artifacts — screenshots, video, traces, logs. The artifacts root must be gitignored. | They contain PII, session tokens and OTPs. |
| Video and traces are captured automatically on failure — a failed login or payment test therefore records the credential or card entry by default. | This makes the never-paste-artifacts rule more load-bearing, not less. |
| Scrub tokens before pasting any log into a report or PR. | Console logs and logcat leak Authorization: headers and refresh tokens routinely. |
| Never point a destructive suite at production. Confirm the target URL / device before CRUD or payment scenarios. | A QA delete against prod data is unrecoverable. |
Check the app repo's .gitignore covers the artifacts root and .env.qa before the first run.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

