All skills
aktsmm avatar

/browser-max-automation

@2e6b12a
by yamapanaktsmm/agent-skills26 stars
4

Visible browser automation using Playwright MCP, CLI, and CDP without interrupting the user's foreground work. Use for navigation, forms, screenshots, durable file downloads, repeatable browser workflows, existing-session reuse, or troubleshooting CDP / iframe / modal / file chooser / passkey (WebAuthn) issues.

Use this Skill: https://skilld.dev/gh/aktsmm/agent-skills/browser-max-automation

This session only. Nothing lands on disk.

referencesinstructionsunsaved-form-tabs.md

≈551 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Unsaved Editor / Draft Tab Safety

Qiita、CMS、SPA admin など 未保存 form を持つタブを壊さない作法。

原則

  • 既に目的の editor / draft タブが開いているなら、そのタブを優先して再利用する
  • 新しい draft が必要でも、既存タブを別 URL へ飛ばさず、新しいタブを開く
  • dialog.accept() で beforeunload を強制吸収する設計を通常フローにしない。race で失敗しやすい
  • file upload の前に、現在タブが本当に editor 本体かを URL と title で確認する
  • upload 専用の一時 editor を作った場合は、その exact URL / ID をログに残す。下流の保存・公開・画像表示を確認してからその ID だけ削除し、無題や最新時刻だけで対象を推測しない
  • dirty な form / SPA では page.reload()、location.reload()、API 捕捉目的の reload trigger を使わない
  • まず保存・キャンセル・画面上の status 読み取りで clean にする
  • If a leave-site confirmation appears, pause page mutations. Cancel/Stay may be automated only after the browser process, selected-tab address, exact warning and button uniquely match the owned task. Otherwise request manual Cancel/Stay. Never automatically accept Leave or discard unknown edits.
  • A native beforeunload prompt can block the whole browser window while CDP returns No dialog is showing; opening another tab does not dismiss it. Use the scoped native recovery procedure, verify dismissal and same-target readback, then use a clean work tab without navigating the dirty original. Cancel preserves unsaved form values and does not establish that they were saved.

典型ケース

  • Qiita 記事 editor で投稿前に画像 upload を挟む(タブを動かさない)
  • CMS で記事一覧 → 新規作成 → upload(一覧タブと editor タブを分離)
  • SPA admin で「保存していません」ダイアログを跨ぐ全自動化(やらない)

このパターンは Qiita に限らず、未保存フォームを持つ管理画面 全般で効く。

Source: SKILL.md on GitHub

1 warning4mo4 checks · Risk SAFE
  • Gen Agent Trust Hub4mo

    This skill provides instructions and code for advanced browser automation using Playwright and Chrome DevTools Protocol (CDP). It includes patterns for handling complex web interfaces such as iframes, modals, and virtual scrolls. Security analysis identified a surface for indirect prompt injection common to browser automation tools, as the skill ingests and acts upon untrusted data from external websites.

  • Socket4mo

    No alerts

  • Snyk4mo

    Risk: MEDIUM · 1 issue

  • Runlayer6mo

    1/2 files flagged

Signed by skilld at 2e6b12a. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 18 hours ago.

Activeupdated 2 days ago
argument-hint
自動化したい URL、操作内容、使いたいモード
user-invocable
true
metadata
{
  "author": "yamapan (https://github.com/aktsmm)"
}

README badge

README badge for aktsmm/agent-skills/browser-max-automation