本文へ移動
cccskills
無料GitHub で公開

browser-automation

Playwright-based browser automation patterns for autonomous web interaction

インストール方法を見る

含まれるファイル(2)

  • SKILL.md4.0 KB
  • HAND.toml8.9 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Browser Automation Skill

Playwright CSS Selector Reference

Basic Selectors

SelectorDescriptionExample
#idBy ID#checkout-btn
.classBy class.add-to-cart
tagBy elementbutton, input
[attr=val]By attribute[data-testid="submit"]
tag.classCombinedbutton.primary

Form Selectors

SelectorUse Case
input[type="email"]Email fields
input[type="password"]Password fields
input[type="search"]Search boxes
input[name="q"]Google/search query
textareaMulti-line text areas
select[name="country"]Dropdown menus
input[type="checkbox"]Checkboxes
input[type="radio"]Radio buttons
button[type="submit"]Submit buttons

Navigation Selectors

SelectorUse Case
a[href*="cart"]Cart links
a[href*="checkout"]Checkout links
a[href*="login"]Login links
nav aNavigation menu links
.breadcrumb aBreadcrumb links
[role="navigation"] aARIA nav links

E-commerce Selectors

SelectorUse Case
.product-price, [data-price]Product prices
.add-to-cart, #add-to-cartAdd to cart buttons
.cart-total, .order-totalCart total
.quantity, input[name="quantity"]Quantity selectors
.checkout-btn, #checkoutCheckout buttons

Common Workflows

Product Search & Purchase

1. browser_navigate → store homepage
2. browser_type → search box with product name
3. browser_click → search button or press Enter
4. browser_read_page → scan results
5. browser_click → desired product
6. browser_read_page → verify product details & price
7. browser_click → "Add to Cart"
8. browser_navigate → cart page
9. browser_read_page → verify cart contents & total
10. STOP → Report to user, wait for approval
11. browser_click → "Proceed to Checkout" (only after approval)

Account Login

1. browser_navigate → login page
2. browser_type → email/username field
3. browser_type → password field
4. browser_click → login/submit button
5. browser_read_page → verify successful login

Form Submission

1. browser_navigate → form page
2. browser_read_page → understand form structure
3. browser_type → fill each field sequentially
4. browser_click → checkboxes/radio buttons as needed
5. browser_screenshot → visual verification before submit
6. browser_click → submit button
7. browser_read_page → verify confirmation

Price Comparison

1. For each store:
   a. browser_navigate → store URL
   b. browser_type → search query
   c. browser_read_page → extract prices
   d. memory_store → save price data
2. memory_recall → compare all prices
3. Report findings to user

Error Recovery Strategies

ErrorRecovery
Element not foundTry alternative selector, use visible text, scroll page
Page timeoutRetry navigation, check URL
Login requiredInform user, ask for credentials
CAPTCHACannot solve — inform user
Pop-up/modalClick dismiss/close button first
Cookie consentClick "Accept" or dismiss banner
Rate limitedWait 30s, retry
Wrong pageUse browser_read_page to verify, navigate back

Security Checklist

  • Verify domain before entering credentials
  • Never store passwords in memory_store
  • Check for HTTPS before submitting sensitive data
  • Report suspicious redirects to user
  • Never auto-approve financial transactions
  • Warn about phishing indicators (misspelled domains, unusual URLs)

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

ansible

無料

Ansible automation expert for playbooks, roles, inventories, and infrastructure management

日本語の概要は準備中です。原文の説明を表示しています。

RightNow-AI/openfang1.8万2026年7月2日 更新

API testing expert for curl, REST, GraphQL, authentication, and debugging

日本語の概要は準備中です。原文の説明を表示しています。

RightNow-AI/openfang1.8万2026年7月2日 更新

aws

無料

AWS cloud services expert for EC2, S3, Lambda, IAM, and AWS CLI

日本語の概要は準備中です。原文の説明を表示しています。

RightNow-AI/openfang1.8万2026年7月2日 更新

azure

無料

Microsoft Azure expert for az CLI, AKS, App Service, and cloud infrastructure

日本語の概要は準備中です。原文の説明を表示しています。

RightNow-AI/openfang1.8万2026年7月2日 更新

ci-cd

無料

CI/CD pipeline expert for GitHub Actions, GitLab CI, Jenkins, and deployment automation

日本語の概要は準備中です。原文の説明を表示しています。

RightNow-AI/openfang1.8万2026年7月2日 更新

Expert knowledge for AI video clipping — yt-dlp downloading, whisper transcription, SRT generation, and ffmpeg processing

日本語の概要は準備中です。原文の説明を表示しています。

RightNow-AI/openfang1.8万2026年7月2日 更新

RightNow-AI のスキルをすべて見る

このスキルの問題を報告する