iOS SimulatorをAIで操作してデバッグ・検証。ビルド→起動→UI操作→スクショ→分析のループ。 使用タイミング: (1) UIの動作確認が必要な時、(2) 「Simulatorで確認して」「スクショ撮って」、 (3) バグの再現・調査時、(4) UI実装の検証時、(5) アクセシビリティの確認時 前提条件: ios-simulator MCPサーバーが有効化されていること(apple-platform-plugin導入で自動設定)
AI-powered iOS Simulator debugging. Automatically builds, launches, and performs UI operations with screenshot analysis for bug reproduction and UI verification. Requires ios-simulator MCP server.
/plugin marketplace add CAPHTECH/claude-marketplace/plugin install apple-platform-plugin@caphtech-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
iOS SimulatorをAIで操作し、ビルド→起動→操作→スクショ→分析のデバッグループを実行する。
brew tap facebook/fb && brew install idb-companionapple-platform-pluginを導入すると、.mcp.jsonによりios-simulator MCPサーバーが自動で有効化される。
以下をユーザーに確認:
対象アプリ
検証内容
Simulator設定
# 1. Simulatorを開く(MCPツール使用可能になったら)
# → open_simulator ツールを使用
# 2. アプリをビルド
xcodebuild -workspace App.xcworkspace \
-scheme App \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 15' \
-derivedDataPath ./build \
build
# 3. アプリをインストール
# → install_app ツールで ./build/Build/Products/Debug-iphonesimulator/App.app をインストール
# 4. アプリを起動
# → launch_app ツールで Bundle ID を指定して起動
現状把握 → 操作 → 結果確認 → 分析 → 次のアクション
↑ ↓
└──────────── 繰り返し ←───────────────┘
| ツール | 説明 | 使用例 |
|---|---|---|
open_simulator | Simulatorアプリを起動 | 最初に実行 |
get_booted_sim_id | 起動中のSimulator IDを取得 | 状態確認 |
install_app | .app/.ipaをインストール | ビルド後 |
launch_app | Bundle IDでアプリ起動 | インストール後 |
| ツール | 説明 | 使用例 |
|---|---|---|
ui_describe_all | 画面全体のアクセシビリティ要素を取得 | 現状把握 |
ui_describe_point | 特定座標の要素情報を取得 | 要素特定 |
ui_view | 圧縮スクリーンショット取得 | クイック確認 |
screenshot | フルスクリーンショット保存 | 証跡保存 |
| ツール | 説明 | パラメータ |
|---|---|---|
ui_tap | タップ | x, y座標 |
ui_type | テキスト入力 | 入力文字列 |
ui_swipe | スワイプ | 開始/終了座標、duration |
| ツール | 説明 |
|---|---|
record_video | 動画録画開始(H.264/HEVC) |
stop_recording | 録画停止 |
1. ui_describe_all で現在画面を把握
2. screenshot で初期状態を保存
3. ui_tap でボタンをタップ
4. ui_describe_all で遷移後の画面を確認
5. screenshot で結果を保存
6. 期待と比較して分析
1. ui_describe_all でフォーム要素を特定
2. ui_tap でテキストフィールドをタップ
3. ui_type でテキスト入力
4. ui_tap で送信ボタンをタップ
5. ui_describe_all で結果を確認
1. screenshot で現在の表示を保存
2. ui_swipe で下にスクロール
3. screenshot でスクロール後を保存
4. 必要に応じて繰り返し
1. record_video で録画開始
2. 一連の操作を実行
3. stop_recording で録画停止
4. 動画で再現手順を確認
ui_describe_all の結果から以下をチェック:
# Simulatorをリセット
xcrun simctl shutdown all
xcrun simctl erase all
# IDBをインストール
brew tap facebook/fb
brew install idb-companion
# パスを確認
which idb
# 署名を確認
codesign -dv --verbose=4 App.app
# Simulatorに直接インストール
xcrun simctl install booted App.app
スクリーンショット・動画のデフォルト保存先: ~/Downloads
環境変数で変更可能:
export IOS_SIMULATOR_MCP_DEFAULT_OUTPUT_DIR=/path/to/output
ui_describe_allで画面状態を確認screenshotで記録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.