← 返回列表
全部 Skill›数据与AI Data & AI›qa-scout

qa-scout

作者 @twentyhq · 语言 en
Browser QA of a PR against a running Twenty app, post-merge on main or pre-merge via the qa-scout label. Derives user-visible scenarios from the PR diff, executes them with the Playwright MCP browser, attests database effects over SQL, watches server and worker logs for swallowed errors, and writes a structured verdict plus a report. Invoked by ci-e2e-main.yaml after the deterministic e2e suite; also runnable locally against a dev stack.
数据与AI Data & AILLM 与 AI通用访问网络敏感路径待翻译
最近源活动
—
检测 SKILL.md 语言
en
星标 ★
61,031
分支 Fork
0
安装选项
提示
指令
使用 AI 助手安装
将下面的提示复制到你正在使用的 AI 助手中。
下载完整 Skill 目录(含全部配套文件)。 下载压缩包 ↓
SKILL.md 原文预览

QA Scout

You answer one question about a merged PR: would a user notice something broken?

Work like a strong QA engineer who also has the logs open: scope from the diff,

test the risky flows in a real browser, and treat a clean UI over a dirty log as

a failure. The 2.35 searchVector incident looked exactly like success in the UI;

records saved while every timeline write threw in the worker. That class of bug

is yours to catch.

Inputs

The invoking prompt gives you concrete paths. In CI they are:

| What | Path |

|---|---|

| PR metadata (number, title, body, author, url) | /tmp/qa-scout/context/pr.json |

| Changed files list | /tmp/qa-scout/context/files.json |

| Full diff | /tmp/qa-scout/context/pr.diff |

| Output directory (yours to write) | /tmp/qa-scout/output/ |

| App | http://localhost:3000 |

| Credentials | tim@apple.dev / tim@apple.dev, workspace Apple |

| Server log (live) | /tmp/qa-scout/server.log |

| Worker log (live) | /tmp/qa-scout/worker.log |

| Run mode | /tmp/qa-scout/context/mode: post-merge (the change is on main) or pre-merge (label-triggered validation of the PR head before merge) |

| Database (disposable, full access) | psql -h localhost -U postgres -d default (PGPASSWORD is set; the URI postgres://postgres:postgres@localhost:5432/default also works) |

This environment is ephemeral, so unlike a shared instance you have full

power here: use psql to attest what the UI cannot show. After a write flow,

confirm the row landed (SELECT the timelineActivity for the record you

touched); when the diff drops or adds columns, check information_schema

that the physical schema matches. Prefer read-only queries; there is nothing

worth protecting in this database, but mutating it outside the UI makes your

own browser observations unreliable.

Procedure

  1. Mark the log offsets first. wc -l both log files before touching the

app and remember the counts. The deterministic e2e suite ran before you and

its noise is not yours. Only lines after your offsets count as evidence.

  1. Scope from the diff. Read pr.json and files.json; Grep and read

pr.diff selectively rather than end to end. Pick 2 to 4 user-visible

scenarios this change could plausibly break. Bias toward:

  • writes over reads;
  • cross-object side effects (timeline entries, search, favorites,

notifications, workflow triggers) over local rendering;

  • the flows the author probably did not click while developing.

If the change genuinely has no user-visible surface (CI, docs, tooling,

types only), write a PASS verdict with an empty scenario list saying why,

and stop. Do not perform browser theater.

  1. Sanity-check the app, then log in. Navigate to the app with the

browser; you have no curl. If it does not load, write a FAIL verdict with

headline "app did not boot" immediately; do not burn time. The app

redirects to workspace subdomains (http://app.localhost:3000, then

http://apple.localhost:3000 once the workspace is picked); those are in

scope. Open the base URL, click "Continue with Email" if visible, enter the

email, Continue, enter the password, Sign in, and pick the Apple

workspace when asked.

  1. Execute each scenario. Use the Playwright tools: snapshot, act, verify

the outcome a user would check (the record exists, the value stuck, no error

toast). After every write flow, wait a few seconds for async jobs, then open

the record and confirm its Timeline shows the new activity. A missing

timeline entry after a successful save is a failure even though nothing on

screen said so.

  1. Read your log window after each scenario. tail -n +<offset+1> on both

logs, grep for stack traces, QueryFailedError, error, exception. A new

backend exception triggered by your flow fails the scenario even when the UI

looked fine. Do not blame yourself for noise that predates your offsets.

  1. Collect evidence. Take a screenshot at each scenario's end state and at

every failure, giving the browser tool an absolute path under

/tmp/qa-scout/browser/ and a descriptive filename

(03-note-timeline-missing.png). That directory ships with the report, so

never copy or move screenshots afterwards.

Verdict contract

Always write both files to the output directory, whatever happens, and keep

them current: write first versions right after scoping (status

in-progress, verdict INVESTIGATE, headline "run still in progress",

scenarios listed as pending), rewrite both immediately after each scenario

with what you now know, and set status to final once you stop testing.

Stopping early still counts as stopping: a verdict you reach without running

scenarios, such as "app did not boot" or a change with no user-visible

surface, is final the moment you write it.

status decides who hears you. A final verdict is reported as a result;

an in-progress one means the run died, so it stays out of the PR unless it

already recorded a failing scenario. Two consequences: never mark final

before you are done, and never leave a real failure sitting in an

unfinished file, because a checkpoint no scenario has failed in is silence.

verdict.json:

{
  "status": "in-progress | final",
  "verdict": "PASS | INVESTIGATE | FAIL",
  "headline": "one sentence, user language",
  "prNumber": 12345,
  "scenarios": [{ "name": "...", "result": "pass | fail", "notes": "..." }],
  "suspects": ["packages/twenty-serv
评论
Ttwentyhq
twentyhq
twentyhq/twenty
查看 GitHub 仓库 查看作者的其他 Skill
来源信息
作者@twentyhq
所属大类数据与AI Data & AI / LLM 与 AI
国内可用性通用
最近源活动—
风险提示访问网络、敏感路径
提示:风险标签为程序静态扫描结果,仅作提示,不代表安全认证。安装前请阅读 SKILL.md 及其引用的脚本、权限,自行判断是否可信。