serve-sim
Skill by EvanBacon
Controls and streams a running iOS, iPad, or Apple Watch Simulator through the npx serve-sim CLI. Built for agents that need to tap, swipe, rotate, or read the accessibility tree during app testing.
Install serve-sim
Built from the published package, never by AI.
git clone --depth 1 https://github.com/EvanBacon/serve-sim /tmp/serve-sim && mkdir -p ~/.claude/skills && cp -r /tmp/serve-sim/skills/serve-sim ~/.claude/skills/serve-simRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/EvanBacon/serve-sim /tmp/serve-sim && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/serve-sim/skills/serve-sim ~/.gemini/antigravity-cli/skills/serve-simAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
serve-sim is an agent skill that teaches an assistant to drive an Apple Simulator with the serve-sim CLI. It covers taps, gestures, hardware buttons, rotation, memory warnings, CoreAnimation debug overlays, camera injection, and app permissions. The CLI spawns a Swift helper that captures the simulator framebuffer with simctl io and serves it as an MJPEG stream with a binary WebSocket input channel, plus a React preview UI.
The skill also covers accessibility snapshots with element refs, waiting for the screen to settle, recording, and an opt-in rolling frame buffer. Coordinates are normalized from 0 to 1. It is written for agents working on macOS with Xcode command line tools and Node.js, and it lists exact commands and known gotchas. It suits developers and QA agents doing UI automation and previews on Apple simulators.
Written from the project's SKILL.md and checked against it.
What it can do
- tapSends a single tap at normalized coordinates, or on an accessibility element ref.
- gestureRuns multi-step drags and swipes over one WebSocket with begin, move, and end events.
- buttonPresses hardware buttons such as home, lock, siri, and app_switcher.
- rotateRotates the device to portrait or landscape orientations.
- ax --refsReturns a compact accessibility snapshot of visible elements with @eN refs.
- cameraInjects a file, webcam, or placeholder camera feed into a specific app on macOS 14+.
- permissionsGrants, revokes, resets, or lists app privacy permissions, including push notifications.
- recordRecords the simulator screen to MP4 with an index sidecar and inspects frames offline.
What you need
- macOS host, since serve-sim only runs on macOS
- Xcode command line tools
- Node.js 20 or newer
- macOS 14 or newer, for the camera subcommand only
- A booted simulator for most subcommands
Try asking
- Find the login button on the simulator and tap it.
- Rotate the simulator to landscape and open the preview URL.
- Grant camera permission to com.example.app on the booted simulator.
Good to know
- Only runs on macOS.
- The camera subcommand requires macOS 14 or newer.
- repair-input restarts SpringBoard and closes running apps, so it is for explicit use only.
- Not for Android emulators or real iOS hardware devices.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/serve-sim/SKILL.md, skills/serve-sim/scripts/check-prereqs.sh, skills/serve-sim/scripts/ensure-running.sh. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
README.md5 KB -
SKILL.md15 KB -
evals/evals.json6 KB -
references/agent-guide.md9 KB -
references/buttons-rotation.md4 KB
Show all 13 files
-
references/ca-debug.md2 KB -
references/camera.md5 KB -
references/endpoints.md7 KB -
references/gestures.md5 KB -
references/permissions.md4 KB -
references/workflows.md11 KB -
scripts/check-prereqs.sh2 KB -
scripts/ensure-running.sh1 KB
Alternatives to serve-sim
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
serve-sim: common questions
Does serve-sim work with Android emulators?
No. The source says Android emulators should use adb shell tooling instead.
Why does a tap sometimes register as a long press?
Separate gesture calls for begin and end can have enough latency between them to be read as a long press. The source says to use serve-sim tap for single taps.
How does the simulator stream reach a browser?
The helper captures the framebuffer with simctl io and exposes it as an MJPEG stream, and serve-sim serves a React preview UI on top. The stream stays alive until serve-sim --kill is run.
How do I install serve-sim?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is serve-sim free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is serve-sim safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to serve-sim?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
