/playwright-kit:playwright-kit-opsfrom playwright-kit
Run the playwright_kit scripts: init, page-role classification, a11y / CWV scans. Use when running one directly(playwright_kitのスクリプトを実行・a11yスキャン).
Ships in playwright-kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
playwright_kit のスクリプト群を実行してテスト環境のセットアップ・テスト実行・エビデンス管理を行う。
| スクリプト | 用途 | カテゴリ |
|---|---|---|
scripts/init_project.sh | 利用者プロジェクトに scenario-test ランタイムを埋め込む | セットアップ |
scripts/init_project.bat | 同 (Windows) | セットアップ |
scripts/classify_page_role.py | URL の a11y tree + パターンから page role を自動推定 | テスト計画 |
scripts/record_scenario.py | Playwright codegen で操作を記録しテストコード化 | テスト計画 |
scripts/run_a11y_scan.py | axe-core による単発 accessibility スキャン | 品質 |
scripts/check_cwv.py | Core Web Vitals (LCP/CLS/TTFB) 単発計測 | 品質 |
scripts/*.py の標準出力は 1 つの JSON である。経過や注意は標準エラーへ書く。
--output を取るスクリプトは、結果の本体をそのファイルへ書き、標準出力には書き出し先と件数の要約を返す。
record_scenario.py は --output を付けないとき codegen が出すコードを標準出力へ流す。
init_project.sh / init_project.bat は人が読む経過を出す。
| スクリプト | 0 | 1 | 2 |
|---|---|---|---|
init_project.sh / .bat | 初期化した (dry-run を含む) | 引数の誤り・必要なコマンドが無い | — |
classify_page_role.py | 分類した (開けなかった URL は要素の error に入る) | — | 引数の誤り |
record_scenario.py | codegen の終了コードをそのまま返す | 同左 | playwright CLI が無い・起動できない |
run_a11y_scan.py | 走査した | --fail-on-violations で違反が 1 件以上 | 引数の誤り |
check_cwv.py | 計測した | --fail-on-poor で poor が 1 件以上 | 引数の誤り |
計画と作成の工程のスクリプトは各 Skill に置く: playwright-planning/scripts/plan_skeleton.py (計画書の雛形)、
playwright-authoring/scripts/lint_scenario.py (構文木での検査) と app_ready.sh (起動の確認)。
終了コードは各 Skill の SKILL.md に書く。
# SKILL_DIR はこの skill のパス
./scripts/init_project.sh /path/to/your-app
# ディレクトリ名をカスタマイズ
./scripts/init_project.sh /path/to/your-app --runtime-dir e2e
# Windows
scripts\init_project.bat C:\path\to\your-app
→ your-app/scenario-test/ に all-in-one ランタイムが作成され、Skill 非依存で動作する。
cd /path/to/your-app
./scenario-test/run.sh # 全テスト
./scenario-test/run.sh -k test_admin # フィルタ
./scenario-test/run.sh --pwk-overlay # 字幕 + カーソル付き動画
# page role を自動推定
python scripts/classify_page_role.py --url https://example.com/products
# Playwright codegen で操作を記録
python scripts/record_scenario.py https://example.com/login
# axe-core 単発スキャン
python scripts/run_a11y_scan.py --url https://example.com
# Core Web Vitals 単発計測
python scripts/check_cwv.py --url https://example.com
playwright_kit Python パッケージ本体・templates・tests はこの skill ディレクトリ内に配置されている。
/playwright-kit:playwright-planning — テスト計画 (方法論 + チェックリスト + ワークフロー全体像)/playwright-kit:playwright-authoring — スクリプト作成と実行 (テストコード / エビデンス / ブラウザ接続)/playwright-kit:playwright-evidence — 証跡とレポート (report.md と reports// のエビデンス)playwright_kit/__init__.py (opens in a new tab)playwright_kit/accessibility.py (opens in a new tab)playwright_kit/body_check.py (opens in a new tab)playwright_kit/config.py (opens in a new tab)playwright_kit/fixtures/__init__.py (opens in a new tab)playwright_kit/fixtures/accessibility.py (opens in a new tab)playwright_kit/fixtures/auth.py (opens in a new tab)playwright_kit/fixtures/body_check.py (opens in a new tab)playwright_kit/fixtures/evidence.py (opens in a new tab)playwright_kit/fixtures/web_vitals.py (opens in a new tab)playwright_kit/overlay.py (opens in a new tab)playwright_kit/pytest_plugin.py (opens in a new tab)playwright_kit/pytest_report.py (opens in a new tab)playwright_kit/video.py (opens in a new tab)playwright_kit/web_vitals.py (opens in a new tab)pyproject.toml (opens in a new tab)scripts/check_cwv.py (opens in a new tab)scripts/classify_page_role.py (opens in a new tab)scripts/init_project.bat (opens in a new tab)scripts/init_project.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
4 skills in this plugin
/playwright-authoringWrite Playwright E2E scripts and run them with video / trace evidence. Use when writing or running E2E tests, or checking a page over CDP(playwright codegen・ブラウザ動作確認)./playwright-evidenceGenerate the Playwright test report and collect its evidence files under reports/{run-id}/. Use when summarizing or sharing E2E results(テスト報告書・エビデンス・trace・動画)./playwright-planningPlan Playwright E2E tests: judge the page role, then pick checklists and techniques. Use when designing E2E test cases(テスト計画書・テスト観点・page role 分類).npx claudepluginhub devbasex/ai-plugins --plugin playwright-kit