agentleFS
goliajpgoliajp/smix/llms.txt

smix

llms.txt1 starsChanged 2 months agoApache-2.0View on GitHub

smix is a UI test runner for iOS and Android, built as a Claude Code sub-product. Tests are authored in maestro-compatible yaml (or the Rust / TypeScript / Swift / Kotlin SDKs) and driven through an accessibility-first sensing stack — a11y tree, Vision OCR, then a local-claude AI-assertion tier. Simulators, emulators and physical devices are all addressable; a physical one must be registered by hand first, wiping it needs a second per-device opt-in, and a verb a phone has no…

  • Installs packages
  • In this repositoryOne other file it gives its agents.

The file

We split this llms.txt into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Sensing is a11y-first, then OCR, then AI: No multi-provider VLM abstraction — the AI tier is a local claude CLI.

    line 108

≈ “Common” is an estimate: at least 1 in 5 of the 1,484 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
llms.txt
# smix

> smix is a UI test runner for iOS and Android, built as a Claude Code sub-product. Tests are authored in maestro-compatible yaml (or the Rust / TypeScript / Swift / Kotlin SDKs) and driven through an accessibility-first sensing stack — a11y tree, Vision OCR, then a local-`claude` AI-assertion tier. Simulators, emulators and physical devices are all addressable; a physical one must be registered by hand first, wiping it needs a second per-device opt-in, and a verb a phone has no equivalent for errors rather than quietly doing nothing. Failures are AI-readable: every miss carries visible elements and suggested fixes.

This file is generated by `scripts/dev/gen-llms.py` from `smix_verbs::VERB_TABLE`, the `Selector` enum, and the workspace version. Do not edit by hand — the ship gate regenerates and diffs it.

## Verbs

The canonical yaml verb table (53 entries). Each verb carries the maestro-surface name test authors know and the smix-canonical form.

| maestro | smix | category | arg shape |
| --- | --- | --- | --- |
| `tapOn` | `tap` | Tap | Selector |
| `doubleTapOn` | `doubleTap` | Tap | Selector |
| `longPressOn` | `longPress` | Tap | Selector |
| `repeatTap` | `repeatTap` | Tap | Mapping |
| `inputText` | `fill` | Input | BareString |
| `eraseText` | `clear` | Input | Integer |
| `pasteText` | `pasteText` | Input | None |
| `setClipboard` | `setClipboard` | Input | BareString |
| `copyTextFrom` | `copyTextFrom` | Input | Selector |
| `assertVisible` | `expect` | Assert | Selector |
| `assertNotVisible` | `expectNotVisible` | Assert | Selector |
| `extendedWaitUntil` | `expect` | Assert | Mapping |
| `assertTrue` | `assertTrue` | Assert | BareString |
| `assertScreenshot` | `assertScreenshot` | Assert | Mapping |
| `rememberBounds` | `rememberBounds` | Assert | Mapping |
| `assertBoundsUnchanged` | `assertBoundsUnchanged` | Assert | Mapping |
| `neverVisible` | `neverVisible` | Assert | Mapping |
| `assertWithAI` | `assertCondition` | Assert | BareString |
| `extractTextWithAI` | `extractWithAI` | Assert | Mapping |
| `runFlow` | `runFlow` | ControlFlow | Path |
| `retry` | `retry` | ControlFlow | Mapping |
| `repeat` | `repeat` | ControlFlow | Mapping |
| `pressKey` | `pressKey` | ControlFlow | BareString |
| `back` | `pressKey` | ControlFlow | None |
| `launchApp` | `launchApp` | Lifecycle | Mapping |
| `stopApp` | `terminate` | Lifecycle | None |
| `killApp` | `terminate` | Lifecycle | BareString |
| `clearState` | `reset` | Lifecycle | None |
| `clearKeychain` | `resetKeychain` | Lifecycle | None |
| `takeScreenshot` | `takeScreenshot` | Media | BareString |
| `startRecording` | `startRecording` | Media | BareString |
| `stopRecording` | `stopRecording` | Media | None |
| `addMedia` | `addMedia` | Media | Mapping |
| `scroll` | `scroll` | Gesture | None |
| `scrollUntilVisible` | `scroll` | Gesture | Mapping |
| `swipe` | `swipe` | Gesture | Mapping |
| `hideKeyboard` | `hideKeyboard` | Gesture | None |
| `openLink` | `openUrl` | Device | BareString |
| `setLocation` | `setLocation` | Device | Mapping |
| `travel` | `travel` | Device | Mapping |
| `clearLocation` | `clearLocation` | Device | None |
| `setPermissions` | `setPermissions` | Device | Mapping |
| `setOrientation` | `setOrientation` | Device | BareString |
| `webview_eval` | `webviewEval` | SmixNative | BareString |
| `webViewEval` | `webviewEval` | SmixNative | BareString |
| `webviewEval` | `webviewEval` | SmixNative | BareString |
| `fixture` | `fixture` | SmixNative | Mapping |
| `expect` | `expect` | SmixNative | Mapping |
| `waitForAnimationToEnd` | `waitForAnimationToEnd` | Utility | None |
| `clearAppData` | `clearAppData` | Lifecycle | Mapping |
| `resetAppData` | `resetAppData` | Lifecycle | Mapping |
| `clearUserDefaults` | `clearUserDefaults` | Lifecycle | Mapping |
| `expectLogClean` | `expectLogClean` | Assert | None |

## Selectors

The `Selector` taxonomy (11 variants) — the target language for every find / tap / assert. The base forms resolve on the a11y tree; the later layers add locale text, Vision OCR, anchor-relative coordinates, a raw normalized point, and a first-hit fallback chain. See `docs/ai-guide/03-selectors.md`.

- **Text** — `{ text: 'hello' | /^hi/, ...modifiers }`
- **Id** — `{ id: 'btn-xyz', ...modifiers }`
- **Label** — `{ label: 'Settings', ...modifiers }`
- **Role** — `{ role: 'button', name?: pattern, ...modifiers }`
- **Focused** — `{ focused: true }` — no modifiers (focus is runtime-resolved).
- **Anchor** — `{ anchor: { ...spatial keys }, ...indexModifiers }`
- **LocalizedText** — `{ localized_text: { en: "Submit", ja: "送信", es: "Enviar" }, ...modifiers }`
- **OcrText** — `{ ocr_text: "Submit", locales: ["en"], ...modifiers }` — sense
- **AnchorRelative** — `{ anchored: { anchor: <selector>, dx: -0.15, dy: 0 } }` — sense
- **Point** — `{ point: [0.5, 0.9] }` — sense layer L7 (last-resort within a
- **Fallback** — `{ fallback: [<selector1>, <selector2>, ...] }` — sense layer L7.

## Install

```bash
# Rust CLI + SDK
cargo install smix-cli --locked

# TypeScript / Node / Bun
npm install @goliapkg/smix

# Swift Package Manager
# add https://github.com/goliajp/smix (product: SmixSDK, from: "12.1.0")

# Gradle / Maven (Kotlin / Java) — current release:
# implementation("jp.golia.smix:smix-sdk:12.1.0")
```

Prerequisites: macOS with Xcode + Simulator (iOS); Android SDK with an emulator image (Android).

## MCP

smix exposes the simulator to an agent over MCP — launch, look, tap, type, assert, with no yaml in between. Bring the runner up first (`smix runner up <udid> --bundle <id>`); the MCP server talks to the runner, it does not start it. Full setup + client JSON config: `docs/ai-guide/11-mcp.md`.

## Iron rules

- **Simulator only.** Any physical-device code path is rejected by construction.
- **Sensing is a11y-first, then OCR, then AI.** No multi-provider VLM abstraction — the AI tier is a local `claude` CLI.
- **No coordinates or xpath in the selector surface.** The one escape hatch is `App::tap_at_coord(nx, ny)` — a normalized-0..1 tap wired directly to the native event chain, not a Selector.
- **No bare `sleep` verb.**
- **Failures must be AI-readable** — every failure carries visible elements and suggestions.

## Guides

- [Quickstart](docs/ai-guide/01-quickstart.md): first flow, first run
- [YAML reference](docs/ai-guide/02-yaml-reference.md): the full verb grammar
- [Selectors](docs/ai-guide/03-selectors.md): the target taxonomy in depth
- [Actions](docs/ai-guide/04-actions.md): tap / fill / scroll / OCR fallback semantics
- [CLI](docs/ai-guide/05-cli.md): `smix run`, `smix runner`, `smix diagnostic`
- [Fixtures](docs/ai-guide/06-fixtures.md): the host-app fixture contract
- [Errors](docs/ai-guide/07-errors.md): the AI-readable failure format
- [Cookbook](docs/ai-guide/08-cookbook.md): recipes for common flows
- [Sessions](docs/ai-guide/09-sessions.md): session lifecycle across the runner
- [AI assertions](docs/ai-guide/10-ai-assertions.md): the fenced `assertWithAI` tier
- [MCP](docs/ai-guide/11-mcp.md): drive the simulator over MCP
- [Wire format](docs/ai-guide/wire-format.md): the runner wire schema
- [ABI stability](docs/ai-guide/abi-stability.md): the FFI + wire compatibility contract
- [Verb parity](docs/ai-guide/verb-parity.md): maestro ↔ smix ↔ platform coverage

## Upgrading

- [To 4.0](docs/migrating-to-4.md): device records and leases moved to the machine; `smix sim migrate` and `smix lease migrate` copy the old ones over. Two Rust signatures changed.
- [To 3.0](docs/migrating-to-3.md): `fill` replaces the field it names, and two other behaviours changed.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.