macbox
Build, test, run, and tap through native iOS apps on a real remote Mac. Use for iOS build, test, and simulator work when this machine can't run Xcode, or when CLAUDE.md or AGENTS.md says to use macbox.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 1.6k
- Forks
- 491
01 前言 Front Matter
- name
- macbox
- description
- Build, test, run, and tap through native iOS apps on a real remote Mac. Use for iOS build, test, and simulator work when this machine can't run Xcode, or when CLAUDE.md or AGENTS.md says to use macbox.
03 SKILL.md 正文
macbox
macbox sends this folder to a real Mac, runs Xcode there, and streams the result back.
Each command is one-shot: no TTY, no prompts. The exit code is the answer.
If macbox is not installed or not logged in, follow https://api.macbox.build/guide/ first.
Commands
macbox build # build for the iOS simulator
macbox test # build, then run tests on a fresh simulator
macbox screenshot shot.png # launch the last build, wait 3 s, save a picture
macbox status # minutes left, your Mac, your last job
macbox logs [job] # follow a job again after a dropped connection
macbox cancel [job] # stop a job
macbox run # build, launch, keep it running; prints a live link
macbox ui describe # elements on screen, with ids and frames (points)
macbox ui tap --id X # or --label X, or x y
macbox ui type <text> | swipe x1 y1 x2 y2 | button home | screen out.png
macbox stop # end the running app
To check a flow works, run, then ui describe and act on what it shows; repeat.
Give the user the live link: they can watch and tap too.
Flags: --scheme, --workspace, --project, --device "iPhone 17 Pro",
--only-testing Target/Class/test, --wait 5, --build <id>, --include path,
--json, --dry-run. See macbox help.
Exit codes
0it worked.1the build or tests failed. Read the errors, fix the code, run again.2bad usage, or a problem on this machine.3macbox's side or the account (no credit, Mac offline). Don't retry in a loop; tell the user.
Rules
- The key may already be set (
MACBOX_API_KEYor~/.macbox/config): runmacbox statusbefore asking. Never ask for secrets in chat. - Not logged in? Run
macbox login: it prints a link for the user to sign in with GitHub, then exits. After they say they're done, runmacbox loginagain to finish. macbox testprintsPASS name/FAIL nameper test, plus failing log lines.macbox screenshotlaunches the last build (builds first if none);--wait 6for slow apps.- Use
--jsonfor NDJSON ending in a{"t":"result",...}line.
What gets sent
- Files git tracks (submodules too), new files git doesn't ignore, and
.xcconfigfiles. - Not sent:
.git,Pods,.build,DerivedData,node_modules,.env. Use--include pathfor those. - Pods, Swift packages, and XcodeGen projects are resolved on the Mac.
- No git history or tags on the Mac.
--dry-runlists what is sent.
Setup scripts
A step Xcode needs first (download frameworks, copy a template config) goes in
.macbox/setup (bash, repo root). It runs on the Mac before builds, again only when
it changes; its output stays there. Fetch big binaries here, don't --include them.
Limits
Native iOS, simulator only. No signing, no TestFlight.
Mac apps: build and test work (unsigned, for macOS); screenshot does not.
Private packages needing SSH keys or ~/.netrc don't work yet.
04 同仓库更多 Skills
worktable-review-with-annotations
Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.
worktable-find-and-synthesize-context
Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.
worktable-create-or-update-docs
Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.
worktable-create-or-manage-records
Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.
worktable-create-or-manage-interactive-html
Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.
worktable-collaborate-threads
Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.