jpskill.com
🛠️ 開発・MCP コミュニティ

mcp-playwright

Angular UIの動作検証やデバッグにおいて、ブラウザ操作による検証、スクリーンショット撮影、ログ取得を行うSkill。

📜 元の英語説明(参考)

Use the Playwright MCP server (@playwright/mcp) for browser-driven verification, screenshots, console logs, and UI flow validation; use when debugging or validating Angular UI behavior beyond unit tests.

🇯🇵 日本人クリエイター向け解説

一言でいうと

Angular UIの動作検証やデバッグにおいて、ブラウザ操作による検証、スクリーンショット撮影、ログ取得を行うSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-17
取得日時
2026-05-17
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

[Skill 名] mcp-playwright

MCP スキル: Playwright MCP (UI 検証)

概要

デバッグおよび検証中にブラウザ自動化タスク(ナビゲーション、スクリーンショット、DOM チェック)を実行するために、.vscode/mcp.jsonmicrosoft/playwright-mcp として構成された MCP サーバーを使用します。

前提条件

  • .vscode/mcp.jsonmicrosoft/playwright-mcp が含まれていることを確認してください。
  • ローカルでテストしている場合は、アプリが実行中であることを確認してください(通常は pnpm run start)。

運用ルール

  • 堅牢なセレクターを優先してください: data-testid、ARIA ロール/ラベル。
  • 脆い CSS セレクターや深い DOM 結合は避けてください。
  • リグレッションの証拠をキャプチャしてください: スクリーンショット + コンソールエラー。

典型的なワークフロー

  1. ルートの簡易チェック
  • URL に移動し、主要な見出し/ランドマークが表示されていることをアサートします。
  1. リグレッションのキャプチャ
  • 単一画面の変更について、変更前/変更後のスクリーンショットを撮ります。
  1. コンソール衛生
  • ページのブラウザコンソールエラー/警告を収集します。
  1. アクセシビリティのスポットチェック
  • 重要なコントロールのキーボードフォーカス順序を検証します。

プロンプトテンプレート

  • "Open <url> and verify <expected UI>. Collect console errors and take a full-page screenshot."
  • "Run a quick flow: <steps>. Use role-based selectors and fail fast with screenshots on error."

関連リポジトリガイダンス

  • テストの構成とセレクターのルールについては、.github/skills/e2e-playwright を参照してください。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

MCP Skill: Playwright MCP (UI Verification)

Scope

Use the MCP server configured as microsoft/playwright-mcp in .vscode/mcp.json to run browser automation tasks (navigation, screenshots, DOM checks) during debugging and validation.

Preconditions

  • Ensure .vscode/mcp.json contains microsoft/playwright-mcp.
  • Ensure the app is running (typically pnpm run start) if you are testing locally.

Operating Rules

  • Prefer resilient selectors: data-testid, ARIA roles/labels.
  • Avoid brittle CSS selectors and deep DOM coupling.
  • Capture evidence for regressions: screenshots + console errors.

Typical Workflows

  1. Smoke check a route
  • Navigate to a URL and assert primary heading/landmark is visible.
  1. Regression capture
  • Take before/after screenshots for a single screen change.
  1. Console hygiene
  • Collect browser console errors/warnings for a page.
  1. Accessibility spot-check
  • Verify keyboard focus order for critical controls.

Prompt Templates

  • "Open <url> and verify <expected UI>. Collect console errors and take a full-page screenshot."
  • "Run a quick flow: <steps>. Use role-based selectors and fail fast with screenshots on error."

Related Repo Guidance

  • See .github/skills/e2e-playwright for test organization and selector rules.