Agent Skills
› Developing-Gamer/agent-sim
› agent-sim
agent-sim
GitHub在Linux上通过agent-sim CLI驱动iOS模拟器,用于测试、演示或调试iOS应用。支持安装ipa、截图分析、自动化点击输入及等待操作,适用于需要模拟iOS环境的场景。
Trigger Scenarios
需要在Linux环境下运行或测试iOS应用
需要复现iOS Bug或查看iOS屏幕状态
需要对iOS应用进行自动化交互演示
Install
npx skills add Developing-Gamer/agent-sim --skill agent-sim -g -y
SKILL.md
Frontmatter
{
"name": "agent-sim",
"description": "Test and drive iOS apps in an iOS simulator on a Linux machine with the agent-sim CLI. Use when asked to run, test, check or demo an iOS app (.ipa or simulator .app), reproduce an iOS bug, or look at an iOS screen, and the machine is Linux with agent-sim installed."
}
agent-sim
agent-sim runs Apple's iOS simulator runtime on Linux (through x86Sim) and drives it from the command line.
Every command takes --device NAME (default p, or $AGENT_SIM_DEVICE).
The loop
agent-sim status: is a phone running? If not,agent-sim up(15-40 s).agent-sim install path/to/App.ipa(or a simulator.app, a.tar.gzor.zipholding one such as an EAS Build artifact, or an http(s) URL of any of these), thenagent-sim launch <bundle id>(add--env KEY=VALUEand-- -arg valueto pass environment variables and launch arguments).agent-sim appslists installed apps and their bundle ids.agent-sim snapshot: read the screen. One element per line:@e4 button "Sign in" id="login.submit" (201,640): reference, role, label, value/id, center point.- Act:
agent-sim tap @e4(reference from the last snapshot),agent-sim tap "Sign in"(text),agent-sim tap 201 640(screen points)agent-sim type "me@example.com": tap the field first;\npresses Returnagent-sim scroll down(shows what is below),agent-sim swipe x1 y1 x2 y2agent-sim press homeagent-sim open https://example.comor a deep link
agent-sim wait "Welcome" --timeout 20instead of sleeping;--gonewaits for something to disappear.- Snapshot again after every action: references change when the screen does.
Tips
- Prefer
snapshotoverscreenshot; usescreenshot -o screen.pngto check visual details or to show a human. - System alerts (permission prompts) appear first in the snapshot; answer them with
tap "Allow"ortap "Don't Allow". - A tap on an element that does not react: check it is not
disabledin the snapshot, or scroll it into view. - App Store downloads are encrypted and cannot be installed; use an Ad Hoc / Development export or a simulator build.
- To give an app documents to open,
agent-sim files push report.pdf --to Inboxcopies them into the Files app's On My iPhone (files ls,files rmto check and clean up); then pick them in the app's document picker. agent-sim pool takehands out an already booted phone when several agents share a machine; give it back withagent-sim pool release NAME.- As an MCP server (
agent-sim mcp) the same commands are tools, and actions return the next snapshot.
Version History
- 4367fa8 Current 2026-11-27 13:00
- 95e3667 2026-11-25 18:05


