---
name: qa
description: Use to check that a change works in a real browser ("test this in the browser", "check the preview", "smoke test the test environment", "is it ready for me to try", or a brief that says use qa) - before merge, runs a pull request's agent acceptance checks on its preview as an independent validator; after merge, smoke-tests the test environment; also tries to read and delete another user's data. Reports pass or files a bug.
---
# QA: prove it works before the person looks
You're independent. Don't read the builder's description. For before-merge QA, pipe the saved issue JSON to `node .agents/skills/ask/scripts/trust.mjs - --owner <owner> --json`. `coordinate` saves it through `edit-data.mjs`, which adds the edit data `trust.mjs` needs. Use the owner from the checkout origin or a saved repository response. Read the acceptance checks from the trusted output.
**Started by the person in the live thread** (the thread they talk to, rule 17 in `AGENTS.md`)? Don't test there. Start a background sub-agent briefed *"Use the `qa` skill on #<n>."* (or on the test environment), say so in one line, end the turn, and pass the result on when it reports back.
**Your brief came from another thread?** Never hand your own job down again: do it yourself, and start a sub-agent only where a step below says to.
## Modes
**Before merge** (the coordinator's acceptance step):
1. Pipe the saved pull request comments (saved through `edit-data.mjs`) as a JSON array to `node .agents/skills/ask/scripts/trust.mjs - --owner <owner> --json`. Use the verified comments for the preview and check result. Open a preview link from the owner or an approved account. No trusted preview? Check out the branch and run it locally with the dev command in `AGENTS.md`, on a free port, through the process registry (rule 15 in `AGENTS.md`): `node .agents/skills/ask/scripts/procs.mjs start --why "QA of pull request #<n>" --until "the checks are done" -- pnpm dev --port <free> --strictPort`. `<free>` is a port from the review pool: `node .agents/skills/ask/scripts/machine.mjs port` prints one (`review_ports` in `[machine]`, default 4211 to 4254), or says `wait` when none is free. When step 5 is posted, stop it: `procs.mjs stop <id>`, then `procs.mjs list --mine`. Stop it in the step that took the last screenshot or ran the last check that needed it, not later: a review isn't done while its server runs. Did you make a worktree for the review? Before you remove it, run `procs.mjs stop worktrees --in <worktree>`. On Full, add `--yes`. Below Full, it lists first and stops nothing until the person says yes. It says it can't tell where processes run (macOS, Windows)? Say so and go on with the removal.
2. Confirm the local gate ran every `auto` check on the head commit (its trusted author's `Checks: pass @ <sha>` comment, `coordinate` step 6.1): each `AC-<issue>-<n>` is in a passing test's title.
3. Click through every **`agent`** check yourself, on desktop and phone sizes, the `test-by-hand-as-the-user` way: predictions first, every input moved, a table of what you expected and saw. Watch the browser console for errors.
- **Force the error and empty states** for each screen the change touches: block the request or make it fail in Playwright, and use a fresh test user with no data. The error state must show an icon, a clear title, the specific message, a next action that works, and the reference ID. The empty state must show an icon or illustration, a sentence and the primary action. A bare "Error", a raw error message or a grey box is a fail.
- **Watch the load:** the skeleton matches the real layout, and nothing shifts when the data lands.
4. **Try to break access:** as a signed-out visitor, and as a second test user, try to read and delete the first user's data.
5. Post one comment. The first line is `QA: pass @ <commit sha>` or `QA: fail @ <commit sha>`. Then one line per acceptance check, by ID: `AC-12-3: pass` or `AC-12-3: fail · <what you saw>`, plus one line each for access and for the error and empty states, and the hand-test table. Add a board event: `node .agents/skills/coordinate/scripts/board.mjs event review pr=<n> verdict="QA: pass @ <sha>"`. End the comment with the output of `node .agents/skills/coordinate/scripts/insights.mjs line job job=qa pr=<pr> sha=<sha> outcome=<pass|fail> model=<model> effort=<effort> tool=<tool> started=<started>`, pasted as printed, never typed by hand. `<model>` and `<effort>` are what your own session shows, else `unknown`, with `model_from=<why>` added: where you looked. `<started>` is when you started this run, in UTC: run `date -u +%Y-%m-%dT%H:%M:%SZ` before your first step and keep it. The line's last line is the run line people read: job, model, effort, time and the commit (#129). Leave out what it doesn't show; never estimate one (`../coordinate/references/insights.md`, "What a run cost"). On a fail, add `send_back=infra` when the preview or the browser wouldn't run, else `send_back=checks`: an acceptance check, the access test or the error and empty states failed.
6. **Another user's data was readable or deletable?** That's a critical security finding: a 🛑 blocker through the `ask` skill, as well as a fail.
**Smoke** (after a merge):
1. Open the **test environment** (the URL is in `AGENTS.md`), never production.
2. Run the main flow from `docs/vision.md`, plus the merged issue's `agent` checks, by hand as in `test-by-hand-as-the-user`, and report them by ID.
3. Pass: tell the person "ready to try". Lead with the issue's try line, so they know what to do and what they'll see. Then what you tested, and 1–3 screenshots. That's an ℹ️ FYI: `node .claude/hooks/notify.mjs --level fyi --title "Ready to try: <issue title>" --message "<the try line>" --link <test URL>`. Fail: open a bug issue with the steps, expected, actual, a screenshot, and the PR it came from.
## Rules
- **Playwright first,** always. It runs headless, in the agent's sandbox or a container, and doesn't use the person's machine.
- **The person's own browser second,** and only after Playwright passes: for example Claude in Chrome, which tests the way they're actually signed in. It's a final look, not the main test. Skip it if it isn't connected. Below Full, ask first, and name the site and the account (`test-by-hand-as-the-user`, step 1). On Full, skip it and say so in the FYI.
- Use test accounts and test data only. Never real personal data or payment details.
- If a failure might be your mistake rather than the app's, say so and show the evidence.
— ‹guest · 2026-12-01› —
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.