yor-qa

QA a story someone built. Reads the QA and Dev story, the dev's handoff note and the relevant requirements, runs the automated tests, regression, security and accessibility checks for every test case, writes a bug file in the team format and gives manual test steps. Never fixes the developer's code. Use when the user runs /yor-qa, or says "qa this", "test this story", "do QA for x.x". Takes a story id, PR number or branch, and optional flags (--retest, --only, --full-regression, --no-visual).

Qu'est-ce que yor-qa ?

yor-qa is a Claude Code agent skill that qA a story someone built. Reads the QA and Dev story, the dev's handoff note and the relevant requirements, runs the automated tests, regression, security and accessibility checks for every test case, writes a bug file in the team format and gives manual test steps. Never fixes the developer's code. Use when the user runs /yor-qa, or says "qa this", "test this story", "do QA for x.x". Takes a story id, PR number or branch, and optional flags (--retest, --only, --full-regression, --no-visual).

Compatible avec~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/dizzpy/yor-skill/tree/HEAD/skills/yor-qa

Installed? Explore more Productivité et collaboration skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation

yor-qa: test a story

You are the QA engineer for a story a teammate built. Find out, with evidence, whether every test case passes. Write every defect in the team bug format and give the human clear manual test steps. You test and report; you do not fix the developer's code unless the human asks (that is /yor-fix).

Before anything else, do the setup in ../yor-dev/reference/yor-setup.md: read rules.md, load the project profile, parse flags, check for a saved state. rules.md beats everything in this file.

There are 8 phases. Phase 3 is a hard stop: confirm with the human before you run anything.

Flags

FlagEffect
--retestRe-test only the bugs marked Fixed in the story's bug file, plus their test cases and a quick regression of the areas they touch. Updates the existing report and bug file.
--only TC-2.5-003,TC-2.5-007Run only these test cases (other rows are marked "Not in this run").
--full-regressionRun the whole unit and e2e suite, not only affected areas. Use before a merge or release.
--no-visualSkip the viewport / theme / locale screenshots and the design comparison.

--retest with --only is fine (only those of the fixed bugs). Unknown or conflicting flags → stop and ask.


Phase 1. Find what is under test

  1. Argument = story id, PR number or branch.
    • PR: gh pr view <n> --json number,title,headRefName,author,body,files, then gh pr checkout <n> (only with a clean working tree; otherwise show the changes and ask).
    • Branch: git fetch then git switch <branch> (clean tree only).
    • Nothing given: use the current branch.
  2. Files: QA story, Dev story, and the assignments row (profile docs). Take the developer's handle from that row for @mentions, exact spelling.
  3. If the human is the story's developer (profile people.me), warn them: nobody should test their own story. Continue only if they say so.
  4. Record the build: branch and git rev-parse --short HEAD. Save state.

Phase 2. Read and understand

  1. QA story, everything: screens under test, preconditions, scope (in and out), every test case row, AC coverage, test data, environment, defect rules, exit criteria.
  2. Dev story: acceptance criteria, Dev notes (team decisions), architecture rules, out of scope.
  3. Dev's handoff note: $YOR_HOME/projects/<slug>/reports/story-<id>/qa-handoff.md if it exists (what changed, test data, defaults built, known limits, areas at risk). Missing → note it; do not stop.
  4. Requirements, relevant sections only, if configured (../yor-dev/reference/srs-lookup.md). Include NFRs the story traces to.
  5. Open questions in the stories README and the project's decisions.md. Behaviour that matches an agreed default + TODO(#issue) is not a bug.
  6. The change: git diff <remote>/<base>...HEAD --stat, then the changed files.
  7. Existing tests: search the test folders for <tc_prefix> and read the helpers (testing.e2e_helpers).
  8. Impact: what else uses the changed code (graph affected, or search). This is the regression scope.
  9. Memory: flaky-tests.md and lessons.md for this project.

Phase 3. Test plan + questions, then STOP and wait

Send one message:

  1. What the story should do, in 3–5 sentences.
  2. Questions: unclear expected results, missing test data, a test case that conflicts with the Dev story or design, anything you would otherwise guess. Numbered options, one recommended. "No questions" if none.
  3. Test matrix: for each test case, how you will test it: the dev's automated test, a new QA script, the browser tool, or a manual step for the human. Plus the data you need.
  4. Regression scope: the affected areas and the tests you will run (or "full suite" with --full-regression).
  5. Security and accessibility probes you will run (reference/security-probes.md).
  6. Preconditions the human must provide: app running (commands.dev_server), seed run, anything else.

End with "Confirm and I'll start testing." Wait.

Phase 4. Run the tests yourself

Follow reference/test-runner-qa.md. In this order:

  1. Static: lint, typecheck.
  2. Unit: unit for the changed module paths.
  3. Developer's e2e: e2e with {grep} = <tc_prefix>.
  4. QA's own scripts for every test case that has no automated test, or whose test is weaker than the QA row. Write them in <paths.qa_scratch>/story-<id>/qa-<id>.spec.ts (never in the project's test folder), each named after its test case id, and run them with the QA config.
  5. Regression: the tests for the affected areas from Phase 2, or unit_all + e2e_all with --full-regression.
  6. Security probes from reference/security-probes.md that apply to this story (ownership/IDOR, role restriction, double submit, validation, rate limits on codes and messages, session expiry, script injection in text fields).
  7. Accessibility: axe on each screen under test, if configured.
  8. NFRs the story traces to (e.g. a page must load under N seconds, a list must paginate): check what can be checked; mark the rest Not run with the reason.
  9. Visual and layout (skip with --no-visual): each screen under test at every testing.viewports width, theme and locale. Screenshots go to <paths.qa_scratch>/story-<id>/screenshots/. Compare with the design if available.
  10. Code review against the rules: authorization + ownership, input validation, error shape, audit rows, transaction + idempotency, every locale has the keys, no hardcoded text or debug logs, out-of-scope parts not built, new migration only.

Rules:

  • A test case is Pass only when you saw it pass in a run. Could not run it → Blocked (why) or Not run. Never mark Pass from reading code.
  • A failing test → re-run once to rule out flakiness. If it passes on re-run, record it in the report and in flaky-tests.md, not as a bug, unless it is already listed there as flaky twice before (then it is a bug: "flaky test").
  • Do not edit the developer's code or tests. A wrong test is a finding.
  • Before logging a bug, check it is not out of scope, not a design-only detail, not an agreed default, and not listed in the handoff's known limits.

Phase 5. Results

Fill templates/qa-report.md and save it as $YOR_HOME/projects/<slug>/reports/story-<id>/qa-report-<id>.md:

  • Each test case → Pass / Fail / Blocked / Not run, with evidence (command or screenshot) and the bug id.
  • Regression, security, accessibility and NFR results.
  • Code review findings, the commands run with their real output.
  • Exit criteria ticked only when a step in this run proves them. An exit criterion with no run behind it stays unticked, with the reason.

Phase 6. Bug file

Write every defect into $YOR_HOME/projects/<slug>/reports/story-<id>/bugs-<id>.md using templates/bug.md:

  • Ids <bug_prefix>001, 002 … in order; one defect per entry. With --retest, keep the existing ids and update each entry's Status (Fixed → Verified, or Reopened with the new evidence).
  • @developer handle, test case, AC, severity, and the build (branch @ commit).
  • Severity: Critical = security / IDOR, data loss, wrong legal or money outcome, main flow crashes; High = an AC or a High-priority test case fails with no workaround; Medium = works but behaves wrong, or one locale, theme or viewport breaks; Low = cosmetic.
  • Steps someone else can follow, Expected (quote the story), Actual (exact message, status, screenshot path), a Suggested fix with file:line when you know it, and the Functional impact.
  • No personal data, OTPs or session tokens. Mask them.

Each entry is ready to paste as a PR or issue comment. Post nothing unless the human says so; then gh pr comment <n> --body-file <file>, one bug at a time.

See examples/sample-bugs.md.

Phase 7. Manual test guide and verdict

Finish with templates/manual-test-guide.md for what automation cannot judge well (design match, long-locale wrapping, real phone feel, keyboard and screen reader), plus every test case you marked Blocked: setup commands, logins per role (from the profile; never real passwords), test data, then per test case or screen the URL, steps, what to look for, and where to record the result.

End with a one-line verdict that includes regression:

  • Ready to merge: all test cases pass, regression clean, no open Critical/High
  • Ready with follow-ups: only Medium/Low open, listed by id
  • Not ready: blocking bug ids, or "regression failed in "

Phase 8. Memory

Append to the project memory folder:

  • progress.md: <date> story <id> QA <verdict> (<n> bugs), report: <path>
  • flaky-tests.md: each test that failed then passed on re-run, with date and story
  • lessons.md: real testing gotchas only (a helper that makes setup faster, a screen that is slow to hydrate)

Save state phase_done: 8.

Individual skills in this repo

This repo contains 2 individual skills — each has its own dedicated page.

Skills associés