← Back to list

playwright
by idjoo
⭐ 1🍴 0📅 Jan 24, 2026
SKILL.md
name: playwright description: Automate browser interactions with Playwright MCP. Use for web scraping, form filling, testing, or any browser-based automation tasks. compatibility: opencode metadata: workflow: browser-automation
What I do
- Automate browser interactions for web scraping and testing
- Fill forms, click buttons, and navigate pages
- Capture screenshots and page state
- Handle authentication and session persistence
When to use me
Use this when you need to interact with web pages, automate browser-based tasks, fill forms, scrape content, or test web applications.
Tool Preference
Prefer playwright_browser_run_code for batch operations - it executes multiple Playwright operations in a single call, reducing round-trips.
// Good: Single call for multiple operations
await page.goto('https://example.com');
await page.fill('#email', 'user@test.com');
await page.fill('#password', 'secret');
await page.click('button[type="submit"]');
// Avoid: Multiple individual tool calls
// playwright_browser_navigate -> playwright_browser_type -> playwright_browser_click
When to Use Individual Tools
- Snapshot needed: Use
playwright_browser_snapshotto read page state for decision-making - Dynamic interaction: When next action depends on page response
- Debugging: Step-by-step execution for troubleshooting
Screenshot Rule
After any screen-modifying action, call playwright_browser_take_screenshot:
filename: "latest.png" # ALWAYS use this unless user specifies another name
Screen-Changing Tools
These tools modify the visible page and require screenshots:
playwright_browser_navigate,playwright_browser_click,playwright_browser_typeplaywright_browser_fill_form,playwright_browser_select_option,playwright_browser_press_keyplaywright_browser_handle_dialog,playwright_browser_file_uploadplaywright_browser_tabs(select/new),playwright_browser_run_code
Common Patterns
# Batch operation with screenshot
playwright_browser_run_code(code) -> playwright_browser_take_screenshot(filename: "latest.png")
# Individual operation with screenshot
playwright_browser_click(element, ref) -> playwright_browser_take_screenshot(filename: "latest.png")
Best Practices
- Use snapshots for state: Call
playwright_browser_snapshotto understand current page state - Batch when possible: Combine multiple actions in
playwright_browser_run_code - Screenshot after changes: Always capture visual state after modifications
- Handle errors gracefully: Check for element existence before interacting
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+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