frontend-browser-review
GitHub用于前端浏览器自动化审查的共享工作流,通过 Playwright 检查 UI、布局、样式及导航变更,确保用户可见功能的正确性并防止回归。
Trigger Scenarios
Install
npx skills add langfuse/langfuse --skill frontend-browser-review -g -y
SKILL.md
Frontmatter
{
"name": "frontend-browser-review",
"description": "Shared workflow for browser-based review of user-visible frontend changes in Langfuse.\nUse when a change affects UI behavior, layout, styling, navigation, or browser-visible\nregressions and should be checked with available browser automation before signoff."
}
Frontend Browser Review
Use this skill when a change affects what users see or do in the browser.
Start Here
- Read
../../../web/AGENTS.mdfor web-specific entry points and test commands. - In Cursor Cloud, use built-in computer use. In local agent environments, use
the workspace
playwrightMCP server from the shared agent setup.
When To Use It
Drive a browser when the outcome is uncertain:
- Changes to navigation or page flows, or anything carrying state across steps
- Layout or responsive behavior that could reflow in a way you cannot predict
- Bug fixes where the failure mode is visible in the browser
- Final signoff for a substantial piece of user-visible work
When To Offer Instead
A small, self-contained visual change you are confident in does not need an
automated pass. Spacing, a colour token, a label, an icon swap: say what you
changed, hand over the exact URL — a local port or the pull request's
pr-<N>.preview.langfuse.com — and let the developer take the two-second look.
It is faster for them than waiting while you confirm something you already know,
and a screenshot in the pull request still carries the proof.
Two conditions. Be explicit — name what you did not check and why, so the choice is visible and they can overrule it. And do it while they are there: offering is a handoff, not a way of ending your turn. If nobody is around to look, and the change is user-visible, check it yourself.
Prefill Test Data First
Most flows are only reviewable against meaningful data. Before opening the
browser, seed what the flow needs with the seed CLI (see the
seed-test-data skill for the need→command table):
pnpm run seed -- trace-tree --observations 5000 --v4— complex observation trees (v3 + v4 events)pnpm run seed -- long-session --traces 300— heavy session viewspnpm run seed -- many-traces --count 100000— list/filter performancepnpm run seed -- doctor— when the stack misbehaves
Every run prints UI deep links — open those instead of navigating manually. Do not hand-write seed scripts or raw ClickHouse inserts.
Review Loop
- Use the existing Cursor Cloud Compose app when available. Otherwise start
the app with
pnpm run dev:webunless a local server is already running. - Install Chromium with
pnpm run playwright:installif Playwright has not been set up on the machine yet. - Open the primary changed flow with Cursor computer use or the Playwright MCP server, using seed-CLI deep links when the flow needs seeded data.
- Exercise the main happy path affected by the change.
- Check for obvious visual regressions:
- broken layout or spacing
- banner overlap or viewport anchoring issues
- missing loading, empty, or error states
- broken responsive behavior on narrow widths
- If the page changed materially, inspect the resulting UI state and compare it against the intended behavior from the task or existing patterns.
- If a Playwright MCP session fails, inspect
/tmp/playwright-mcp. In Cursor Cloud, inspect the run's browser artifacts and Compose logs.
Output Expectations
Report:
- What flow you reviewed
- Whether the primary flow worked
- Any visible regressions or follow-up risks
- If review was blocked, exactly what prevented browser verification
- For a human handoff, the preview or sandbox URL plus exact click-path steps, and proof of the fix posted on the GitHub PR (screenshot, short video, or before/after) — not a long agent-only writeup and not only in chat
Scope Notes
- This skill complements, not replaces, targeted tests and linting.
- For implementation details, stay in
web/AGENTS.mdand package-local skills. - Use this as the browser-signoff workflow, not as a generic frontend coding guide.
Version History
-
5b59af4
Current 2026-09-23 09:06
优化验证策略,区分高风险不确定变更与低风险已知视觉变更,引入比例原则和手动交接机制,避免对微小改动进行过度自动化测试。
-
f6e56cb
2026-08-29 05:19
新增在GitHub PR上提交截图和视频作为审查证明的要求。
- f7e3c26 2026-08-20 17:47


