Agent Skillslangwatch/langwatch › browser-pair

browser-pair

GitHub

用于协作式 UI 开发,启动可见的 Chromium 浏览器,通过快照和实时交互接收用户反馈,编辑代码并刷新验证 UI 修复效果。

.claude/skills/browser-pair/SKILL.md langwatch/langwatch

Trigger Scenarios

用户要求 'browser pair' 或 'paired browser' 用户希望进行带实时视觉反馈的 UI 迭代

Install

npx skills add langwatch/langwatch --skill browser-pair -g -y
More Options

Non-standard path

npx skills add https://github.com/langwatch/langwatch/tree/main/.claude/skills/browser-pair -g -y

Use without installing

npx skills use langwatch/langwatch@browser-pair

指定 Agent (Claude Code)

npx skills add langwatch/langwatch --skill browser-pair -a claude-code -g -y

安装 repo 全部 skill

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

预览 repo 内 skill

npx skills add langwatch/langwatch --list

SKILL.md

Frontmatter
{
    "name": "browser-pair",
    "description": "Collaborative headed browser session for UI work. Launch Playwright Chromium visible to the user, handle auth, then interactively drive the browser while the user watches and gives real-time visual feedback. Edit code and refresh to verify fixes live. Use when the user says 'browser pair', 'paired browser', 'let's look at this together', 'open chromium', or wants to iterate on UI with live visual feedback.",
    "argument-hint": "[url-or-port] [page-or-feature]",
    "user-invocable": true
}

Browser Pair — Collaborative UI Session

Open a headed Chromium browser the user can see, then drive it interactively. The user watches, gives visual feedback, you make code changes and verify live. This is pair programming for UI.

Key difference from /browser-test: This is interactive and headed. You wait for user direction between actions. You edit code when they spot issues, then refresh to verify.

Setup

Parse $ARGUMENTS for:

  • URL or port (optional): full URL or just a port number (e.g. 5560 becomes http://localhost:5560)
  • Page (optional): where to navigate after login (e.g. "agents page", "run plans")

If not provided, check for .dev-port file or ask the user.

Tools

Use only mcp__playwright-headed__* tools. Never use mcp__playwright__* (headless). The user must see the browser.

Key tools:

  • mcp__playwright-headed__browser_navigate — go to a URL
  • mcp__playwright-headed__browser_snapshot — read page state (preferred over screenshots)
  • mcp__playwright-headed__browser_click — click elements by ref
  • mcp__playwright-headed__browser_type — type into inputs by ref
  • mcp__playwright-headed__browser_take_screenshot — only when user asks to capture something

Workflow

Step 0: Track Progress

Before starting, create a task for each step below using TaskCreate. Chain sequential steps with addBlockedBy. As you work, update each task's status to in_progress when starting it and completed when done.

1. Launch and authenticate

Navigate to the app URL. Take a snapshot to see the page state.

If you land on a login/signup page:

  1. Check dev/scripts/verify-browser-test.js in the project for test credentials
  2. Register or sign in with those credentials
  3. Complete any onboarding flow (pick quick defaults)
  4. Navigate to the main app

2. Navigate to the requested page

If the user specified a page, navigate there. Otherwise, take a snapshot and tell the user where you are.

3. Interactive loop

This is the core. Repeat:

  1. Snapshot the current page
  2. Report what's visible in 1-2 sentences — don't dump the full tree
  3. Wait for the user's direction

When the user gives feedback:

  • Navigation: "go to X" — navigate and snapshot
  • UI issue: "the fonts don't match" — read the relevant component code, edit it, tell the user to refresh (or navigate away and back)
  • Interaction: "click the button" — click it and snapshot the result
  • Verification: "does it look right now?" — snapshot and describe

4. Code changes

When editing code based on visual feedback:

  1. Read the component file first
  2. Make the edit
  3. Tell the user the change is saved — Next.js hot reload should pick it up
  4. Navigate or refresh to verify: mcp__playwright-headed__browser_navigate to the same URL

Final Check

Run TaskList. If any task is not completed, go back and finish it now.

Rules

  • Always use browser_snapshot for state awareness, not screenshots
  • Keep reports concise — the user can see the browser, they don't need a full description
  • Don't take autonomous actions — wait for the user between steps
  • When making code edits, describe the change briefly so the user knows what to look for
  • If the app isn't running, tell the user and suggest make dev or the relevant start command

Version History

  • 12615f1 Current 2026-08-20 10:00

Same Skill Collection

.claude/skills/browser-test/SKILL.md
.claude/skills/code-review/SKILL.md
.claude/skills/feature-map/SKILL.md
.claude/skills/haven-setup/SKILL.md
.claude/skills/langwatch-kanban/SKILL.md
plugins/langwatch/skills/langwatch/SKILL.md
services/langy-agent/skills/github/SKILL.md
skills/_compiled/native/agent-best-practices/SKILL.md
skills/_compiled/native/agent-performance/SKILL.md
skills/_compiled/native/connect-agent/SKILL.md
skills/_compiled/native/datasets/SKILL.md
skills/_compiled/native/debug-instrumentation/SKILL.md
skills/_compiled/native/debug-with-langwatch/SKILL.md
skills/_compiled/native/eval-triage/SKILL.md
skills/_compiled/native/evaluate-multimodal/SKILL.md
skills/_compiled/native/evaluations/SKILL.md
skills/_compiled/native/experiments/SKILL.md
skills/_compiled/native/generate-rag-dataset/SKILL.md
skills/_compiled/native/github/SKILL.md
skills/_compiled/native/level-up/SKILL.md
skills/_compiled/native/online-evaluations/SKILL.md
skills/_compiled/native/prompts/SKILL.md
skills/_compiled/native/scenarios/SKILL.md
skills/_compiled/native/setup-lw/SKILL.md
skills/_compiled/native/test-cli-usability/SKILL.md
skills/_compiled/native/test-compliance/SKILL.md
skills/_compiled/native/tracing/SKILL.md

Metadata

Files
0
Version
12615f1
Hash
38c3b213
Indexed
2026-08-20 10:00

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-22 05:37
浙ICP备14020137号-1 $お客様$