Ask me what skills you need
What are you building?
Tell me what you're working on and I'll find the best agent skills for you.
端末から実ブラウザを自動操作する必要がある作業に使います。`playwright-cli` もしくは同梱のラッパースクリプト経由で、画面遷移、フォーム入力、スナップショット取得、スクリーンショット撮影、データ抽出、UI フローのデバッグを行います。
playwright-cli を使って、端末から実ブラウザを操作します。CLI がグローバルインストールされていなくても動くよう、同梱のラッパースクリプトを優先してください。
このスキルは CLI ベースの自動操作を前提にします。ユーザーがテストファイルを明示的に求めない限り、@playwright/test へ切り替えないでください。
コマンドを提案する前に、npx が利用可能か確認します(ラッパーが依存しています)。
command -v npx >/dev/null 2>&1
利用できない場合は、そこで止めて Node.js/npm(npx を含む)のインストールをユーザーに依頼します。次の手順をそのまま案内してください。
# Node/npm が入っているか確認
node --version
npm --version
# もし無ければ Node.js/npm を入れ、その後:
npm install -g @playwright/cli@latest
playwright-cli --help
npx が使えるなら、そのままラッパースクリプトを利用します。playwright-cli のグローバルインストールは任意です。
export CODEX_HOME="${CODEX_HOME:-$HOME/.codex}"
export PWCLI="$CODEX_HOME/skills/playwright/scripts/playwright_cli.sh"
ユーザー単位でインストールしたスキルは $CODEX_HOME/skills 配下に置かれます(デフォルトは ~/.codex/skills)。
ラッパースクリプトを使います。
"$PWCLI" open https://playwright.dev --headed
"$PWCLI" snapshot
"$PWCLI" click e15
"$PWCLI" type "Playwright"
"$PWCLI" press Enter
"$PWCLI" screenshot
ユーザーがグローバルインストールを望むなら、こちらでも構いません。
npm install -g @playwright/cli@latest
playwright-cli --help
npx skills add yuki-yano/dotfiles --skill playwrightHow clear and easy to understand the SKILL.md instructions are, rated from 1 to 5.
Clear and well structured, with only minor parts that might need a second read.
How directly an agent can act on the SKILL.md instructions, rated from 1 to 5.
Highly actionable with clear, concrete steps that an agent can follow directly.