Agent Skills › langfuse/langfuse › frontend-browser-review

frontend-browser-review

GitHub

用于前端浏览器自动化审查的共享工作流,通过 Playwright 检查 UI、布局、样式及导航变更,确保用户可见功能的正确性并防止回归。

.agents/skills/frontend-browser-review/SKILL.md langfuse/langfuse

Trigger Scenarios

涉及 UI 行为、布局或样式的变更 需要浏览器自动化验证的前端功能

Install

npx skills add langfuse/langfuse --skill frontend-browser-review -g -y
More Options

Non-standard path

npx skills add https://github.com/langfuse/langfuse/tree/main/.agents/skills/frontend-browser-review -g -y

Use without installing

npx skills use langfuse/langfuse@frontend-browser-review

指定 Agent (Claude Code)

npx skills add langfuse/langfuse --skill frontend-browser-review -a claude-code -g -y

安装 repo 全部 skill

npx skills add langfuse/langfuse --all -g -y

预览 repo 内 skill

npx skills add langfuse/langfuse --list

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.md for web-specific entry points and test commands.
  • In Cursor Cloud, use built-in computer use. In local agent environments, use the workspace playwright MCP 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 views
  • pnpm run seed -- many-traces --count 100000 — list/filter performance
  • pnpm 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

  1. Use the existing Cursor Cloud Compose app when available. Otherwise start the app with pnpm run dev:web unless a local server is already running.
  2. Install Chromium with pnpm run playwright:install if Playwright has not been set up on the machine yet.
  3. 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.
  4. Exercise the main happy path affected by the change.
  5. 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
  6. If the page changed materially, inspect the resulting UI state and compare it against the intended behavior from the task or existing patterns.
  7. 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:

  1. What flow you reviewed
  2. Whether the primary flow worked
  3. Any visible regressions or follow-up risks
  4. If review was blocked, exactly what prevented browser verification
  5. 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.md and 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

Same Skill Collection

.agents/skills/add-model-price/SKILL.md
.agents/skills/agent-setup-maintenance/SKILL.md
.agents/skills/analyze-cloud-costs/SKILL.md
.agents/skills/backend-dev-guidelines/SKILL.md
.agents/skills/changelog-writing/SKILL.md
.agents/skills/clickhouse-best-practices/SKILL.md
.agents/skills/code-review/SKILL.md
.agents/skills/create-repo-agent/SKILL.md
.agents/skills/cursor-agents-workflow/SKILL.md
.agents/skills/datadog-query-recipes/SKILL.md
.agents/skills/debug-issue-with-datadog/SKILL.md
.agents/skills/frontend-large-feature-architecture/SKILL.md
.agents/skills/git-workflow/SKILL.md
.agents/skills/grill-me/SKILL.md
.agents/skills/housekeeping/SKILL.md
.agents/skills/incident-alert-tickets/SKILL.md
.agents/skills/infra-scaling/SKILL.md
.agents/skills/langfuse-codebase-navigator/SKILL.md
.agents/skills/langfuse-previews/SKILL.md
.agents/skills/linear-agent-writes/SKILL.md
.agents/skills/linear-bug-triage/SKILL.md
.agents/skills/linear-context-handover/SKILL.md
.agents/skills/pnpm-upgrade-package/SKILL.md
.agents/skills/posthog-instrumentation/SKILL.md
.agents/skills/react-component-cleaner/SKILL.md
.agents/skills/react-component-guidelines/SKILL.md
.agents/skills/refactor-react-effects/SKILL.md
.agents/skills/security-review/SKILL.md
.agents/skills/seed-test-data/SKILL.md
.agents/skills/sentry-instrumentation/SKILL.md
.agents/skills/skill-creator/SKILL.md
.agents/skills/turborepo/SKILL.md
.agents/skills/weekly-production-review/SKILL.md
web/.agents/skills/vercel-composition-patterns/SKILL.md
web/.agents/skills/vercel-react-best-practices/SKILL.md
.agents/skills/linear-work-rhythm/SKILL.md
.agents/skills/storybook/SKILL.md

Metadata

Files
0
Version
5b59af4
Hash
fd7bb51f
Indexed
2026-08-20 17:47

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-25 20:34
浙ICP备14020137号-1