serve-sim
GitHub用于在终端中控制 iOS 模拟器,包括构建、启动应用、提供浏览器流以及执行点击、输入、旋转等交互操作,无需打开 Xcode。
Trigger Scenarios
Install
npx skills add openchamber/openchamber --skill serve-sim -g -y
SKILL.md
Frontmatter
{
"name": "serve-sim",
"description": "Use when working with the OpenChamber iOS Simulator app without opening Xcode - boot\/install\/launch the Capacitor iOS app, start a browser stream, tap\/type\/gesture\/rotate, inspect accessibility, or hand a simulator URL to the user."
}
serve-sim
Scripted Workflow
Run the discrete scripts from the repository root:
-
Build the simulator app:
bun run mobile:build:ios:simulator -
Boot if needed, install, and launch:
bun run mobile:sim:run -
Start the detached browser stream:
bun run mobile:sim:serveSurface the returned JSON
url; it is the only authoritative stream address. -
Stop helpers when finished unless the user asks to keep them running:
bun run mobile:sim:kill
Completion means the app launched, the returned stream URL was surfaced, and requested interactions were verified.
Manual Controls
- Tap normalized coordinates:
bunx serve-sim tap 0.5 0.5 - Type focused text:
bunx serve-sim type "hello" - Hardware home:
bunx serve-sim button home - Rotate:
bunx serve-sim rotate portrait - List streams:
bunx serve-sim --list -q - Accessibility tree:
curl http://localhost:3100/ax
Run direct CLI commands from packages/mobile. serve-sim is installed in that package and is absent from the root node_modules/.bin.
Coordinates are normalized 0..1, not pixels. Prefer tap for simple taps; do not emulate taps using separate gesture begin/end commands because that can register as long press.
If accessibility lookup cannot identify a target, report the missing target instead of guessing coordinates.
Preconditions
- macOS host.
- Xcode installed; use
DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developerifxcode-selectpoints at CommandLineTools. - Node 18+.
- At least one simulator can be booted with
xcrun simctl.
Version History
-
6cd8058
Current 2026-11-03 06:04
文档重构:消除重复内容,修复矛盾规则,精简上下文以优化 Agent 加载效率。
-
2db90f7
2026-08-20 04:55
优化了 Agent 技能指导说明;此前版本新增了单命令移动模拟器开发循环及更新文档。
- 74b1bd8 2026-07-25 10:37


