Qa changes

From OpenHands/extensions · View interactive version

Qa changes is an AI agent skill from the GitHub repository OpenHands/extensions. This skill should be used when the user asks to "QA a pull request", "test PR changes", "verify a PR works", "functionally test changes", or when an automated workflow triggers QA validation of code changes. Provides a structured methodology for setting up the environment, exercising changed behavio

How to use this skill

Skill file

QA Changes

Validate pull request changes by actually running the code — not just reading it. The goal is to verify that new behavior works as the PR claims, existing behavior is not broken, and the repository remains healthy after the change.

The bar is high: test the way a thorough human QA engineer would. If the PR changes a web UI, spin up the server and verify it in a real browser. If it changes a CLI, run the CLI with real inputs. Do not settle for "the tests pass" — actually use the software.

Core Methodology

QA proceeds in four phases. Complete each phase in order. If a phase fails, report the failure and stop.

Phase 1: Understand the Change

Read the PR diff, title, and description. Identify the goal of this PR — this is the single most important thing to understand before proceeding. A PR might fix a bug, add a feature, refactor code, improve performance, update documentation, or something else entirely. Check:

  1. The PR description "Why" / "Summary" section — what is the author trying to accomplish?
  2. Linked issues — if the PR references an issue, read it. But note: the PR may address the issue differently than expected, or only partially. The PR description is the real specification for what this PR intends to deliver.
  3. The PR title — often summarizes the intent (e.g., "fix: X not working when Y", "feat: add Z capability", "refactor: consolidate duplicated X logic").

Then classify every changed file:

For each change, identify the entry point — the concrete way a user would interact with it (CLI command, API endpoint, UI page, function call). This drives what to exercise in Phase 3.

Finally, form a clear hypothesis: "This PR should [achieve stated goal] by [approach taken in the diff]." Phase 3 will test that hypothesis.

Phase 2: Set Up the Environment

Bootstrap the repository so the project builds and runs successfully.

  1. Read the repo's bootstrap instructions. Check AGENTS.md, README.md, Makefile, package.json, pyproject.toml, Cargo.toml, or equivalent. Always prefer the project's own documented setup commands.
  2. Install dependencies. Use the project's dependency manager (uv sync, npm install, pip install -r requirements.txt, bundle install, cargo build, etc.).
  3. Build the project if a build step is required (compile, transpile, bundle).
  4. Note CI status. Glance at the PR's CI checks and note whether they pass or fail. Do NOT re-run the test suite yourself — that is CI's job, not yours. Your job starts in Phase 3.

If setup fails, report the failure with the exact error output and stop.

Phase 3: Exercise the Changed Behavior

This is the most important phase. Actually use the software the way a real user would to verify the change works as the PR claims. This is what distinguishes QA from CI (which runs tests) and code review (which reads code).

Do NOT:

DO:

Start by verifying the PR achieves its stated goal. Use the hypothesis from Phase 1. For example:

"Tests pass" is not a QA finding. The question is: does the software actually do what the PR says it does?

For frontend / UI changes:

Capture visual evidence (frontend PRs only):

If the PR has frontend work, run the affected screens from the branch's final

state and record what a reviewer would otherwise have to imagine from the diff.

The goal: the change can be reviewed by observation, not by reading code.

  1. Screenshot each relevant state of every affected screen - whichever

apply: empty, loading, error, and populated. Skip states the screen

genuinely cannot reach.

  1. Record the key interaction end to end - the main flow the PR changes,

driven the way a user would. Prefer a GIF: GitHub renders a GIF inline from

an image link, but only links a video file.

  1. Where behavior changes, capture before/after - the same state or

interaction on the base branch and on the PR branch, so the delta is

visible.

  1. Attach it to the report. Embed the images and GIF in the QA report so

they render inline, and label each one (screen and state, or before/after).

Do not push commits to the PR branch to host media: that changes the head

you are verifying, and the shipped QA workflow has read-only access to

repository contents. If you cannot upload media where the report is posted,

save the files where the run keeps its artifacts, say where to find them,

and describe in text what each capture shows. In the qa-changes GitHub

Action that is $GITHUB_WORKSPACE/output/, the parent of the PR checkout

you work in, which the action uploads as the openhands-qa-changes-logs

artifact; a relative output/ inside the checkout is not uploaded.

Keep it proportional: capture the screens the PR actually touches, not the whole

app. If you cannot render a screen (missing data, an unreachable state, no

browser), say so in the report rather than faking it.

For CLI changes:

For API / backend changes:

For bug fixes — use a before/after comparison:

  1. Reproduce the bug without the fix. Check out the base branch (or revert the PR's changes) and run a concrete command or code path that triggers the reported failure. Show the exact command and its output.
  2. Interpret the baseline result. Explain what the output means — e.g., "This confirms the bug exists: the resolver cannot find the package because the lockfile's cutoff date is too old."
  3. Apply the PR's changes. Check out the PR branch, apply the patch, or set the environment variable — whatever the fix entails.
  4. Re-run the same verification. Run the same command or exercise the same code path with the fix in place. Show the exact command and its output.
  5. Interpret the result. Explain what the new output means — e.g., "The resolver now finds the package, confirming the fix works."
  6. Check for side effects. Confirm the fix does not break related functionality.

For library / SDK changes:

For refactors:

For configuration / CI / docs:

Always show your work with a before/after narrative. For every verification, the report must include: (a) the exact command you ran, (b) the actual output you observed, and (c) your interpretation of that output. For bug fixes and behavioral changes, demonstrate BOTH the broken/old state AND the fixed/new state so the reviewer can see the delta. Present this evidence inside collapsible <details> blocks — the core deliverable is the verdict and summary, not raw logs.

Knowing When to Give Up

Some verification approaches will fail due to environment constraints, missing system dependencies, or tooling limitations. That is expected.

The rule: if the same general approach fails after three materially different attempts, stop trying that approach. For example, if three different Playwright configurations all fail to connect to the dev server, do not try a fourth Playwright variation. Switch to a fundamentally different approach (e.g., curl + manual HTML inspection instead of browser automation). If two fundamentally different approaches both fail, give up on that specific verification and say so in the report.

When giving up on a verification:

Do not silently skip verification. An honest "I could not verify X because Y" is far more valuable than a false "everything works."

Phase 4: Report Results

Post a structured report as a PR review using the GitHub API. Keep the report scannable. A reviewer should grasp the verdict and key results in under 10 seconds. Put lengthy evidence (logs, code snippets, full command output) inside collapsible <details> blocks so the top-level report stays compact.

Report format
## {verdict_emoji} QA Report: {VERDICT}

{One-sentence summary of what was verified and the outcome.}

### Does this PR achieve its stated goal?

{Direct answer: Yes / Partially / No.}
{2-3 sentences explaining WHY, referencing specific evidence from
exercising the software. For bug fixes: is the bug actually fixed?
For features: does the new capability work end-to-end? For refactors:
is the restructuring achieved without changing behavior? Be specific
about what the goal was and whether the changes deliver on it.}

| Phase | Result |
|-------|--------|
| Environment Setup | {emoji} {one-line status} |
| CI Status | {emoji} {one-line note from CI checks, e.g. "all green" or "2 checks failing"} |
| Functional Verification | {emoji} {one-line status} |

<details><summary>Functional Verification</summary>

{Structure each verification as a before/after narrative:

### Test N: {Description}

**Step 1 — Reproduce / establish baseline (without the fix):**
Ran `{exact command}`:

{actual output}

This shows {interpretation — what the output means, e.g. "the bug
exists because..."}.

**Step 2 — Apply the PR's changes:**
{What was done — e.g. checked out the PR branch, set env var, etc.}

**Step 3 — Re-run with the fix in place:**
Ran `{same or equivalent command}`:

{actual output}

This shows {interpretation — e.g. "the fix works because the error
is gone and the expected result appears"}.

Repeat for each changed behavior. For non-bug-fix changes
(features, refactors), the baseline step may simply describe the
prior state rather than reproducing a failure.}

</details>

<details><summary>Visual Evidence</summary>

{Frontend PRs only. Embed the screenshots (per screen and state: empty,
loading, error, populated) and the GIF of the key interaction so they
render inline, or say where the captures are stored if they could not be
uploaded. Where behavior changed, show before/after. Label each clearly.
Omit this section entirely for non-frontend PRs.}

</details>

<details><summary>Unable to Verify</summary>

{What could not be verified, what was attempted, and suggested
AGENTS.md guidance. Omit this section entirely if everything
was verified.}

</details>

### Issues Found

{List concrete problems, or "None." if clean.}

- 🔴 **Blocker**: ...
- 🟠 **Issue**: ...
- 🟡 **Minor**: ...
Formatting rules
Verdict values

Key Principles

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.