pursr

Visual QA, browser automation, accessibility auditing, screenshot diffing, and MCP tooling for coding agents.

0xheycat
開発者 0xheycat
メディア · MIT · JavaScript · 更新日: 3 months ago
2
スター
1
Forks
コミュニティ
BBB
安全性:
優秀
A
品質:
accessibilityai-agentsaxe-corebrowser-automationclaudeclicodexcoding-agentscursordevtoolsmcpmcp-servermodel-context-protocolnodejspixel-diffplaywrightscreenshot-testingvisual-qavisual-regressionwcag

name: pursr description: Use Pursr for browser screenshots, scripted visual operation, visual regression, accessibility audits, DOM inspection, and MCP-driven browser sessions. Use when a user asks an agent to inspect a site, operate an existing browser session, fill or draft UI content, record a tutorial, compare visuals, debug layout, or behave like a careful browser operator that observes, acts, verifies, and pauses before external side effects.

Pursr

Use this skill when a user asks an agent to inspect, operate, record, test, or compare a browser interface.

Operator Mindset

Act like a careful visual browser operator, not a command runner.

Examples:

Choose The Right Surface

Capability Check

Before operating a browser, pick the strongest available path:

  1. Existing browser-control plugin or app: use it for logged-in tabs and user-opened pages.
  2. Pursr MCP session: use it for inspect-act-verify loops, visual debugging, and agent-driven browser work.
  3. Pursr CLI: use it for screenshots, scripted operator plans, regression checks, and recordings.
  4. No browser tools: provide the draft, action plan JSON, or exact command for the user to run.

Do not pretend to control the user's live browser if only the CLI is available. Use CDP attach only when the user intentionally starts Chrome with a local debugging port.

First Run And Setup

Do not auto-install browsers during package installation. Pursr is intentionally lightweight at install time.

Run:

pursr doctor
pursr setup

Expected support target:

Autonomous Browser Workflow

For open-ended browser tasks:

  1. Discover context: list or open the relevant tab, read URL/title, and snapshot the visible page.
  2. Build intent: identify the user's real goal, the current page state, and the next safe action.
  3. Act narrowly: click, type, scroll, or run an action plan only after the target is visible or identified from a snapshot.
  4. Verify immediately: take a new snapshot, screenshot, URL check, or diagnostics read after meaningful actions.
  5. Stop at side effects: ask for confirmation immediately before final publish/send/delete/purchase/permission actions.
  6. Leave a handoff: keep important tabs or artifacts available and summarize the exact state.

Use this loop for social posts, dashboard setup, design QA, local app testing, checkout-like flows, account settings, and tutorial recording.

Default short progress pattern:

CLI Argument Contract

Flags may appear before or after positional arguments.

pursr shot --preset desktop-1280 https://example.com --out ./out/page.png
pursr full https://example.com --out-dir ./out
pursr eval --preset desktop-1280 https://example.com "document.title" --out ./out/eval.png
pursr click https://example.com "role=button|Continue" --out ./out/click.png
pursr type https://example.com "#email" "hello@example.com" --out ./out/type.png
pursr hover https://example.com "text=Pricing" --out ./out/hover.png
pursr seq https://example.com ./actions.json --out ./out/final.png
pursr sweep ./sweep-plan.json --out-dir ./out/sweep

--out is a complete file path. --out-dir is a directory; Pursr chooses the command's standard filename inside it.

For seq and operator, actions may be inline JSON, a plain .json path, or an @file.json reference.

Visual Operator

pursr operator https://example.com ./actions.json \
  --visible --start-delay 1500 --slow-mo 80 \
  --video ./recordings --out ./recordings/final.png

The result includes the action trace, final screenshot, diagnostics, and WebM path. Browser video is silent.

Common actions:

[
  { "type": "annotate", "selector": "role=button|Continue", "label": "Continue" },
  { "type": "click", "selector": "#continue", "timeoutMs": 1500, "force": true },
  { "type": "fill", "selector": "#email", "text": "hello@example.com" },
  { "type": "eval", "js": "({ title: document.title })" },
  { "type": "drag", "fromX": 200, "fromY": 300, "toX": 600, "toY": 300 },
  { "type": "press", "key": "Escape" }
]

MCP Agent Loop

  1. Open one stable session with pursr_session_open.
  2. Read rendered state with pursr_snapshot.
  3. Perform a small action sequence with pursr_act.
  4. Use pursr_screenshot when visual judgment is needed.
  5. Use pursr_inspect for geometry, clipping, style, or stacking issues.
  6. Read pursr_diagnostics after failures.
  7. Close with pursr_session_close; this finalizes any video recording.

Recommended MCP behavior:

Communication Drafting

When operating social media, email, forms, comments, or public dashboards:

  1. Draft text in the UI or provide it to the user.
  2. Verify the account/page context before filling anything.
  3. Keep tone natural and specific to the product; avoid generic AI-marketing language.
  4. Ask for final approval before clicking the button that transmits the content.
  5. After approval and posting, verify the success state or resulting URL.

Safety

Avoid

🔓 サインインしてさらに解放
GitHub でサインイン