/playwright-kit:playwright-planningfrom playwright-kit
Plan Playwright E2E tests: judge the page role, then pick checklists and techniques. Use when designing E2E test cases(テスト計画書・テスト観点・page role 分類).
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.
HTSM / ISTQB / FEW HICCUPPS に基づいて E2E テストシナリオを計画する。 本 Skill は E2E ワークフローの入口であり、全体像の提示と計画フェーズの実行を担う。
[1] テスト計画 /playwright-kit:playwright-planning ← 本 Skill
│ 対象 URL → page role 判定 → チェックリスト → テスト技法確定
▼
[2] スクリプト作成と実行 /playwright-kit:playwright-authoring
│ テンプレート → 実装 → 再現可能性レビュー → 実行 + エビデンス収集
│ ※ スクリプトが完成するまでテスト実行に進まない
▼
[3] 証跡とレポート /playwright-kit:playwright-evidence
│ reports/<run-id>/report.md 生成 → エビデンスの共有
▼
[任意] 実行環境の運用 /playwright-kit:playwright-kit-ops
init_project / 単発スキャン (任意タイミング)
/playwright-kit:playwright-kit-ops で ./scripts/init_project.sh /path/to/your-app を実行scenario-test/scenario.config.yamlscenario-test/tests/test_*.py (→ /playwright-kit:playwright-authoring)./scenario-test/run.sh./scenario-test/run.sh --pwk-no-video→ your-app/scenario-test/ は ndf plugin 非依存。単体で完結する。
[A] 対象 URL を渡される
│
[B] page role を判定 → scripts/classify_page_role.py --url <URL>
▼
[C] 計画書の雛形を作る → scripts/plan_skeleton.py --role <role> --data-types <型…> --output plan.md
│ チェックリストの観点 ID と §11 の必須技法が並ぶ。判定の欄は空
│ (分類の上位 2 件の差が小さいと exit 1。role は人が決めて --role で渡す)
▼
[D] 雛形の判定の欄を埋める 全観点を「適用」or「不適用 (理由付き)」で判定し、
│ 必須技法を当てる観点 ID を書く
▼
[E] pytest テストを書く → templates/test_<role>.py.template を起点に
▼
[F] スクリプト作成と実行へ → /playwright-kit:playwright-authoring
テスト計画が完了するまでスクリプト作成には進まない。
| role | 説明 | 例 |
|---|---|---|
| lp | ランディングページ | トップ、LP |
| list | 一覧ページ | 商品一覧、記事一覧 |
| item | 詳細ページ | 商品詳細、記事詳細 |
| edit | 編集ページ | プロフィール編集 |
| form | 申込・入力フォーム | 会員登録、問い合わせ |
| search | 検索ページ | サイト内検索 |
| dashboard | ダッシュボード | 管理画面トップ |
| auth | 認証ページ | ログイン、パスワードリセット |
| cart-checkout | カート・決済 | ショッピングカート |
| modal-wizard | モーダル・ウィザード | ステップ型入力 |
playwright-planning/docs/checklists/ 配下に role 別チェックリストがある。
checklist-common.md が全 role 共通項目 (accessibility / Core Web Vitals / セキュリティ / i18n) で、
残りは上表の role 名に対応する checklist-{role}.md である。
playwright-planning/docs/ 配下:
| ファイル | 内容 |
|---|---|
README.md | 方法論ドキュメント全体の索引と利用フロー |
01-methodology.md | HTSM / FEW HICCUPPS / ISO 29119-3 の概要 |
02-page-roles.md | page role 分類の詳細定義 |
03-test-techniques.md | テスト技法 (EP/BVA/Decision Table/Pairwise) + role 必須マッピング |
04-playwright-mapping.md | Playwright API → role / 観点 マッピング |
05-bug-report.md | 不具合報告書の仕様 (ISO 29119-3 + FEW HICCUPPS oracle) |
06-pytest-playwright.md | pytest-playwright fixture / CLI option と NDF 拡張の対応 |
スクリプトの実行は /playwright-kit:playwright-kit-ops を参照。計画フェーズで使う主なコマンド:
# page role を自動推定
python scripts/classify_page_role.py --url <URL> --output classifications.json
# Playwright codegen で操作を記録 → テストコードに変換
python scripts/record_scenario.py <URL>
上記は
playwright-kit-ops/ディレクトリ内での実行を想定。
計画書の雛形はこの Skill の scripts/plan_skeleton.py で作る (この Skill のディレクトリ内で実行する)。
# role を決めて渡す
python scripts/plan_skeleton.py --role form --data-types 数値 ファイル --output plan.md
# 分類の結果から role を決める。上位 2 件の差が --margin (既定 0.5) 未満なら exit 1
python scripts/plan_skeleton.py --classification classifications.json --url <URL> --output plan.md
--data-types に渡せる値は docs/03-test-techniques.md §11 の表のデータ型 (数値 / 文字列 / 日付 / URL/path / ファイル / 金額 / クエリ / 認証情報 / 状態を持つ操作 / 多次元組合せ / 仕様で主張あり / IDOR/CSRF/XSS リスク)candidates に返す)、2 = 引数・入力の誤り用語 (accessibility, web vitals, LCP, CLS, TTFB, HAR, trace, overlay, body_check, page role, pwk) は
docs/README.md の「用語」節、および playwright_kit ランタイムの README (playwright-kit-ops/templates/runtime-README.md) を参照。
/playwright-kit:playwright-authoring — スクリプト作成と実行 (次フェーズ)/playwright-kit:playwright-evidence — 証跡とレポート/playwright-kit:playwright-kit-ops — 実行環境の運用 (init_project / スキャン / アップロード)docs/01-methodology.md (opens in a new tab)docs/02-page-roles.md (opens in a new tab)docs/03-test-techniques.md (opens in a new tab)docs/04-playwright-mapping.md (opens in a new tab)docs/05-bug-report.md (opens in a new tab)docs/06-pytest-playwright.md (opens in a new tab)docs/README.md (opens in a new tab)docs/checklists/checklist-auth.md (opens in a new tab)docs/checklists/checklist-cart-checkout.md (opens in a new tab)docs/checklists/checklist-common.md (opens in a new tab)docs/checklists/checklist-dashboard.md (opens in a new tab)docs/checklists/checklist-edit.md (opens in a new tab)docs/checklists/checklist-form.md (opens in a new tab)docs/checklists/checklist-item.md (opens in a new tab)docs/checklists/checklist-list.md (opens in a new tab)docs/checklists/checklist-lp.md (opens in a new tab)docs/checklists/checklist-modal-wizard.md (opens in a new tab)docs/checklists/checklist-search.md (opens in a new tab)scripts/plan_skeleton.py (opens in a new tab)tests/test_plan_skeleton.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub devbasex/ai-plugins --plugin playwright-kit4 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-kit-opsRun the playwright_kit scripts: init, page-role classification, a11y / CWV scans. Use when running one directly(playwright_kitのスクリプトを実行・a11yスキャン).Other plugins' skills for the same job