Skip to content
Skills Library
Programming · Testing

baguette

/baguette

Drive and inspect iOS simulators with the `baguette` CLI: taps, swipes, buttons, typing, screenshots, the accessibility tree, logs, and the conditions an app runs under (location, network, appearance, push, UserDefaults), without opening Xcode. Use when an agent must act on or verify a running simulator — a UI flow, smoke test or demo, checking a code change on screen — or when the user names `baguette`. Not for installing Xcode or merely opening Simulator.app.

Repository
baguette ↗
Licence
Apache-2.0
Last repository change
28.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
9
Scripts
0
HTML comments
0
URLs in SKILL.md
3
Deprecation

No signals detected. Repository changed on 28.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Drive and inspect iOS simulators with the `baguette` CLI: taps, swipes, buttons, typing, screenshots, the accessibility tree, logs, and the conditions an app runs under (location, network, appearance, push, UserDefaults), without opening Xcode. Use when an agent must act on or verify a running simulator — a UI flow, smoke test or demo, checking a code change on screen — or when the user names `baguette`. Not for installing Xcode or merely opening Simulator.app.

Original author description

Drive and inspect iOS simulators with the `baguette` CLI: taps, swipes, buttons, typing, screenshots, the accessibility tree, logs, and the conditions an app runs under (location, network, appearance, push, UserDefaults), without opening Xcode. Use when an agent must act on or verify a running simulator — a UI flow, smoke test or demo, checking a code change on screen — or when the user names `baguette`. Not for installing Xcode or merely opening Simulator.app.

How it works

  1. The loop
  2. Coordinates are device points (read this)
  3. What do you need to do?
  4. One-shot or streamed
  5. Limits to state, not discover
  6. A smoke test
  7. Pairing with Claude Code
  8. Install (only when missing)
Original SKILL.md headings · 112 lines, 779 words
SKILL.md preview
---
name: baguette
description: |
  Drive and inspect iOS simulators with the `baguette` CLI: taps, swipes,
  buttons, typing, screenshots, the accessibility tree, logs, and the
  conditions an app runs under (location, network, appearance, push,
  UserDefaults), without opening Xcode. Use when an agent must act on or verify a
  running simulator — a UI flow, smoke test or demo, checking a code change on
  screen — or when the user names `baguette`. Not for installing Xcode or
  merely opening Simulator.app.
---

# baguette — programmatic iOS simulator control

`baguette` is a macOS CLI that drives iOS simulators through Apple's private
`SimulatorHID` (the path Xcode uses internally): faster and more reliable
than `idb` / `AXe` / `simctl io` for input. Agents drive the CLI; a human who
wants to watch or play along should be pointed at `baguette serve` and
`http://localhost:8421/simulators/<udid>`.

## The loop

Almost every job is: get a device, act, look, repeat.

```bash
baguette list --json                                    # 1. a booted UDID
baguette boot --udid <UDID>                             #    (if none is running)
baguette describe-ui --udid <UDID> | jq .screen        # 2. its size in points
baguette tap --udid <UDID> --x 219 --y 478 --width 438 --height 954   # 3. act
baguette screenshot --udid <UDID> --output /tmp/frame.jpg             # 4. look
```

Then `Read /tmp/frame.jpg`. If taps answer `{"ok":true}` but nothing
happens, run `baguette heal --udid <UDID>` (Xcode 27's Device Hub took the
input surface; see `references/devices.md`).

## Coordinates are device points (read this)

Every `x` / `y` / `startX` / `endX` / `x1` / `cx` … is in **device points**,
the same units as the `width` / `height` passed with it. The centre of a
438×954 screen is `x:219, y:478`: not `0.5, 0.5` (normalized), not
`1206, 2622` (pixels). Take `width` / `height` from `describe-ui`'s outer
`screen` per device, and read it again after a rotation or a fold; its frames
come back in the same units, so an element's centre goes straight into a tap.
Not `chrome layout`: its `screen` is the bezel image's, not the device's points.

## What do you need to do?

Read only the reference for the job at hand.

| You want to… | Read | Commands |
|---|---|---|
| get a device booted, sized, rotated, folded; fix input that lands nowhere | `references/devices.md` | `list` `boot` `shutdown` `heal` `orientation` `hinge` |
| act like a user: touch, drag, press buttons, type, paste | `references/interact.md` | `tap` `double-tap` `swipe` `pinch` `pan` `input` `press` `type` `key` `paste` `clipboard` |
| check what happened: see it, find an element, read logs, record | `references/observe.md` | `screenshot` `describe-ui` `logs` `record` `stream` `render-3d` |
| set the conditions the app runs under | `references/environment.md` | `location` `motion` `network` `interface` `status-bar` `notify` `shake`, camera (WebSocket only) |
| put an app and its data in place, launch it | `references/apps.md` | `install` `add-media` `openurl` `schemes` `defaults`, `simctl launch` |

Two more, generated from the binary by `make docs` (never edit them here).
`references/commands.md` has every subcommand, flag and exit code; it's long,
so read one command's section, not the file:
`grep -A25 '^## baguette swipe' references/commands.md` (subcommands are
`### baguette location set`). `references/wire.md` has every JSON gesture for
`input` and the WebSocket.

## One-shot or streamed

One command per gesture is right for a handful of steps; each pays the HID
setup (~50–100 ms). For drags, choreography or many steps, open
`baguette input --udid <UDID>` once and write one JSON gesture per line
(`references/interact.md`). Either way `ok:true` means *sent*, not that the
screen reacted: verify with a screenshot.

## Limits to state, not discover

- `type` / `key` are US-ASCII keystrokes. Anything else (accents, CJK, emoji)
  goes through `baguette paste --text "…"`.
- `press --button siri` is refused: every known path crashes backboardd.
- `motion`, `network` and camera reach only apps launched after they're
  armed; relaunch the app once (a later `network set` or `clear` needs none).
- An idle screen may emit no frame, so `screenshot` times out; nudge it with
  a tap first.
- Simulators only: physical-device control isn't wired.

## A smoke test

```bash
#!/usr/bin/env bash
set -euo pipefail
UDID="$1"
read W H < <(baguette describe-ui --udid "$UDID" | jq -r '.screen | "\(.width) \(.height)"')

baguette press --udid "$UDID" --button home
sleep 0.4
baguette tap --udid "$UDID" --x $((W * 75 / 100)) --y $((H * 55 / 100)) --width "$W" --height "$H"
sleep 0.5
baguette screenshot --udid "$UDID" --output /tmp/settings.jpg
```

Resolve the size once and pass it to every gesture. Better than a guessed
position: find the element with `baguette describe-ui` and tap its centre.

## Pairing with Claude Code

When editing a SwiftUI app: build and run → `press --button home` and `tap`
to the changed screen → `screenshot` and `Read` it → confirm the pixels
match intent. To let the human follow along, start `baguette serve` and give
them `http://localhost:8421/simulators/<udid>`; it also takes keyboard
typing, drag-and-drop installs and the feature cards. `baguette plugin` and
`baguette bakery` extend that page (see `commands.md`).

Per-feature guides: `https://github.com/tddworks/baguette/blob/main/docs/features/<feature>/README.md`.

## Install (only when missing)

```bash
brew install baguette
baguette --version
```

Requires Xcode 26 or later on Apple Silicon. If `baguette` already works, skip
this; don't reinstall on every invocation.
Files in this package (9)
  • SKILL.md 6 KB
  • evals/evals.json 6 KB
  • references/apps.md 3 KB
  • references/commands.md 36 KB
  • references/devices.md 4 KB
  • references/environment.md 4 KB
  • references/interact.md 4 KB
  • references/observe.md 3 KB
  • references/wire.md 9 KB

Versions

The database has no other skills named baguette.

Database snapshot: 13.11.2026 · package version 5a4cdd4a2b92 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100baguette-test-app
    Test an iOS app the way a person uses it: read the simulator's screen, decide what's next, click, and check what happened, with the `baguette` CLI. Use when asked to test, QA, verify or walk through an app or a user flow on a simulator, check that a change works on screen, or…
  • 100ios-simulator-skill
    Build, test, and drive iOS apps in the Simulator with 30 token-efficient scripts. Use when asked to build or test an Xcode project, launch an app on a simulator, tap/type/swipe through its UI by accessibility label, take screenshots or visual diffs, audit accessibility, read…
  • 95app-implement-feature
    Guide for implementing features in baguette — a Swift CLI + WebSocket server that drives iOS simulators via private SimulatorKit. Use this skill when: (1) Adding a new gesture, button, keyboard surface, stream format, or device-chrome behaviour (anything that lands across Domain…
  • 95ios-simulator-skill
    Build and test Xcode projects; launch and inspect iOS Simulator apps, navigate by accessibility labels, capture screenshots and logs, and diagnose simulator issues. Use for authorized simulator lifecycle and UI testing on macOS. Requires Xcode, Python 3.12+ and idb for…
  • 90ce-test-xcode
    Test iOS apps in a simulator with XcodeBuildMCP. Use when iOS changes need simulator evidence before handoff.
  • 90xcode-simulator-testing
    Use when asked to run /xcode-simulator-testing with a scheme name or current to build and launch an iOS app in a simulator. Not for project regeneration: use ios-build-fix.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.