Agent Skillspingdotgg/t3code › ios-simulator-browser

ios-simulator-browser

GitHub

在 Apple Silicon macOS 上将 iOS 模拟器画面流式传输至 Agent 浏览器,供用户实时观察验证。结合 XcodeBuildMCP 进行语义化 UI 操作与截图,确保测试过程可视化且安全隔离。

.agents/skills/ios-simulator-browser/SKILL.md pingdotgg/t3code

Trigger Scenarios

需要实时查看 iOS 模拟器运行状态 执行 iOS 应用自动化测试并需视觉反馈 验证 iOS 应用界面交互效果

Install

npx skills add pingdotgg/t3code --skill ios-simulator-browser -g -y
More Options

Non-standard path

npx skills add https://github.com/pingdotgg/t3code/tree/main/.agents/skills/ios-simulator-browser -g -y

Use without installing

npx skills use pingdotgg/t3code@ios-simulator-browser

指定 Agent (Claude Code)

npx skills add pingdotgg/t3code --skill ios-simulator-browser -a claude-code -g -y

安装 repo 全部 skill

npx skills add pingdotgg/t3code --all -g -y

预览 repo 内 skill

npx skills add pingdotgg/t3code --list

SKILL.md

Frontmatter
{
    "name": "ios-simulator-browser",
    "description": "Stream an explicit iOS Simulator through pinned serve-sim into the T3 Code in-app browser or another agent browser. Use on Apple Silicon macOS when the user should watch simulator verification live or when browser-visible simulator evidence is needed."
}

iOS Simulator Browser

Use serve-sim as the shared visual feed for an iOS Simulator. Use ios-debugger-agent and XcodeBuildMCP semantic UI tools to drive the app; do not treat browser-canvas coordinates as a substitute for missing app accessibility.

Confirm availability

serve-sim 0.1.45 requires Apple Silicon macOS, Xcode command-line tools, and Node.js 20 or newer. If the host is unsupported, continue with XcodeBuildMCP screenshots and report that live streaming was unavailable.

When running inside T3 Code, use its product-native browser MCP to open the stream. Other agent hosts may use their own browser or preview surface.

Keep serve-sim on its default 127.0.0.1 binding. Do not expose its preview to a LAN or tunnel unless the user explicitly requests that access and the network is trusted; the preview includes a token-gated shell-execution route.

Start one owned stream

  1. Obtain the exact simulator UDID from the iOS build or launch workflow.

  2. Check whether an existing serve-sim stream for that UDID belongs to another task. Reuse it only when explicitly shared; never kill another task's stream.

  3. Otherwise, clear only a stale stream for that UDID and start the pinned version with scoped cleanup:

    SIMULATOR_ID=<simulator-udid>
    cleanup_serve_sim() {
      npx --yes serve-sim@0.1.45 --kill "$SIMULATOR_ID" >/dev/null 2>&1 || true
    }
    trap cleanup_serve_sim EXIT INT TERM HUP
    cleanup_serve_sim
    npx --yes serve-sim@0.1.45 "$SIMULATOR_ID"
    
  4. Keep the terminal alive and open the exact local URL printed by serve-sim in the agent's browser.

  5. Verify that a live simulator frame renders. A loaded wrapper page is not sufficient evidence.

Observe while driving semantically

  • Let the user watch the serve-sim stream while XcodeBuildMCP performs snapshot_ui, semantic taps, typing, gestures, and screenshots.
  • Keep the browser and Xcode tooling pinned to the same simulator UDID.
  • Do not switch to generic desktop automation or browser-canvas clicking merely because the stream is visible.

If the in-app browser explicitly reports that previews are unavailable, do not install unrelated browser automation. Continue through XcodeBuildMCP, capture a simulator screenshot, report the unavailable live stream, and clean up the owned serve-sim process.

Finish

Stop the long-running terminal and wait for its cleanup trap to finish. If it disappeared without cleanup, run npx --yes serve-sim@0.1.45 --kill <simulator-udid> for that exact simulator. Never run an unscoped --kill.

Upstream

Adapted from OpenAI's build-ios-apps plugin version 0.1.2 (ios-simulator-browser, MIT). It invokes serve-sim 0.1.45 under its Apache-2.0 license without vendoring the package.

Version History

  • ece0508 Current 2026-07-24 22:03

Same Skill Collection

.agents/skills/ios-debugger-agent/SKILL.md
.agents/skills/test-t3-app/SKILL.md
.agents/skills/test-t3-mobile/SKILL.md
.repos/effect-smol/.agents/skills/grill-me/SKILL.md
.repos/effect-smol/.agents/skills/jsdocs/SKILL.md
.repos/effect-smol/.agents/skills/scratchpad/SKILL.md

Metadata

Files
0
Version
f2d5fc9
Hash
197a3dd4
Indexed
2026-07-24 22:03

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 08:59
浙ICP备14020137号-1 $Гость$