Back to list
tylermorganme

browser-testing

by tylermorganme

0🍴 0📅 Jan 16, 2026

SKILL.md


name: browser-testing description: | Browser automation for testing and verification. Use after building or modifying web UI to verify changes work. Uses Playwright's accessibility tree, not pixel-based input. LLM-friendly: no vision models needed, operates purely on structured data. Deterministic tool application avoids ambiguity common with screenshot-based approaches.

Triggers: testing localhost, verifying UI changes, checking if a feature works, taking screenshots, debugging console errors, testing form submission, end-to-end verification, "does it work", "let me check the browser", "test the app", browser automation, web testing.

Browser Testing

Browser automation using Playwright. Provides structured accessibility snapshots for deterministic interactions.

Quick Start

# Navigate and get snapshot
node scripts/browser.js browser_navigate '{"url": "http://localhost:3000"}'

# Snapshot returns element refs like [ref=e2], [ref=e3], etc.
# Use these refs for subsequent interactions
node scripts/browser.js browser_click '{"element": "Submit button", "ref": "e7"}'

Key Concept: Refs

The browser_navigate and other tools return an accessibility tree with element references:

- generic [ref=e2]:
  - heading "Example Domain" [level=1] [ref=e3]
  - paragraph [ref=e4]: This domain is for use in...
  - link "Learn more" [ref=e6] [cursor=pointer]

Use these refs (e3, e6, etc.) to target elements. Refs persist across the session.

Common Tools

ToolPurpose
browser_navigateOpen URL, returns snapshot
browser_snapshotGet current accessibility tree
browser_clickClick element by ref
browser_typeType into input by ref
browser_take_screenshotCapture image
browser_console_messagesGet console output
browser_closeEnd session

For full tool parameters, see references/tools.md.

Workflow

  1. browser_navigate to open page (returns snapshot with refs)
  2. Find ref for target element in snapshot
  3. Use ref with browser_click, browser_type, etc.
  4. Each action returns updated snapshot
  5. browser_close when done (or 30min idle timeout)

Setup

cd .claude/skills/browser-testing
npm run setup

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon