Chrome DevTools MCPを使用したWebアプリのデバッグ支援スキル。ブラウザ操作、コンソールログ監視、ネットワークリクエスト分析、パフォーマンス計測を行う。 使用タイミング: (1) Webアプリの動作確認・デバッグ (2) UIの自動操作テスト (3) ネットワークエラーの調査 (4) コンソールエラーの確認 (5) パフォーマンス問題の診断 (6) フォーム入力の自動化 (7) スクリーンショット取得
/plugin marketplace add CAPHTECH/claude-marketplace/plugin install webapp-dev-plugin@caphtech-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
references/network-debugging.mdreferences/performance-analysis.mdreferences/ui-debugging.mdreferences/use-cases.mdChrome DevTools MCPを使用してWebアプリをデバッグするためのスキル。
1. ページ準備 → 2. スナップショット取得 → 3. 操作実行 → 4. 結果確認
# ページ一覧取得
list_pages()
# 新規ページ作成
new_page(url: "https://example.com")
# ページ選択
select_page(pageIdx: 0)
# ナビゲーション
navigate_page(type: "url", url: "https://example.com")
navigate_page(type: "reload")
navigate_page(type: "back")
# まずスナップショットでuid取得
take_snapshot()
# クリック
click(uid: "button-submit")
# テキスト入力
fill(uid: "input-email", value: "user@example.com")
# 複数フォーム一括入力
fill_form(elements: [
{uid: "input-name", value: "山田太郎"},
{uid: "input-email", value: "taro@example.com"}
])
# キー入力
press_key(key: "Enter")
press_key(key: "Control+A")
# コンソールログ確認
list_console_messages()
list_console_messages(types: ["error", "warn"])
# ネットワークリクエスト確認
list_network_requests()
list_network_requests(resourceTypes: ["xhr", "fetch"])
get_network_request(reqid: 123)
# スクリーンショット
take_screenshot()
take_screenshot(fullPage: true)
# トレース開始(ページリロード付き)
performance_start_trace(reload: true, autoStop: true)
# 手動停止
performance_stop_trace()
# インサイト分析
performance_analyze_insight(insightSetId: "...", insightName: "LCPBreakdown")
| シナリオ | プロンプト例 |
|---|---|
| コード変更の検証 | "localhost:3000の変更を確認して" |
| エラー診断 | "ログインフォーム送信時のエラーを分析" |
| E2Eテスト | "サインアップ→入力→送信を試して失敗理由を教えて" |
| レイアウト修正 | "ヘッダーのオーバーフロー要素を修正して" |
| パフォーマンス監査 | "このページのLCPをチェックして" |
詳細な活用例: references/use-cases.md
詳細な手順は以下を参照:
take_snapshot()を実行take_snapshot()を使用(軽量・uid取得可能)wait_for(text: "期待するテキスト")で待機list_console_messages(types: ["error"])でエラーチェック| 問題 | 解決策 |
|---|---|
| uidが見つからない | take_snapshot(verbose: true)で詳細情報取得 |
| 要素が操作できない | wait_for()で要素の出現を待機 |
| ダイアログが出る | handle_dialog(action: "accept")で処理 |
| ネットワークエラー | list_network_requests()でステータス確認 |
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.