agentleFS
ltatarevltatarev/skills/skills/verify/SKILL.md

verify

Skill0 starsChanged 4 months agoMITView on GitHub

Build, launch and drive a React Native app on the iOS simulator to observe a change end-to-end. Use when verifying a code change actually works at runtime and not just in tests, when the user asks to run the app, take a screenshot, or check something on device, or when a bug can only be confirmed by driving the UI. Covers idb-based tapping, why synthetic clicks fail, where console output actually goes, and simulator gotchas.

  • Installs packages

175 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use build-fix, lazy and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • diego-tobalinaSkill

    build-fix

    Fix build and compilation errors systematically. Run when build fails.

    Also in 8 projects that use this

  • vasuag09Skill

    lazy

    Build the minimum that actually works — question whether the task needs to exist (YAGNI), reach for stdlib before custom code, native platform features before dependencies, one line before fifty. A persistent generation-reduction bias for the Implement phase. Use when the user says "be lazy", "lazy mode", "minimal", "simplest solution", "do less", "yagni", or complains about over-engineering, bloat, boilerplate, or needless dependencies. Levels: lite, full (default), ultra. Off: "stop lazy" / "normal mode".

    Also in 3 projects that use this

  • TheKREATORSSkill

    instinct-export

    Export instincts from project/global scope to a file

    Also in 3 projects that use this

  • TheKREATORSSkill

    instinct-import

    Import instincts from file or URL into project/global scope

    Also in 3 projects that use this

  • qtzx06Skill

    eval

    Evaluate trained YOLO model accuracy with mAP metrics and per-class error analysis. Identifies failure cases for targeted improvement. Use after training.

    Also in 7 projects that use this

  • vltingSkill

    scope

    Interactive planning + orchestration. Approval-gated workflow covering saga→epic→task hierarchy via progressive scoping.

    Also in 6 projects that use this

  • +2 more from TheKREATORS

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 153 edited versions we read keep these.

  • 0

    Distinctive

    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:

    Use idb, which taps the device directly in device points:

    line 42

“Common” is measured: kept by at least 6 in 10 of the 153 edited versions of this file we could read. “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
SKILL.md

Verifying on the iOS simulator

Static checks and unit tests do not prove a UI change works. This skill is the procedure for actually driving the app and observing it.

Build and launch

npx react-native run-ios --simulator='iPhone 17 Pro Max'

Cold builds take a few minutes (longer on a fresh pod install). After a JS-only change no rebuild is needed — Metro serves a fresh bundle on relaunch:

xcrun simctl terminate booted <bundle-id>
xcrun simctl launch booted <bundle-id>

Get the bundle id from the Xcode project or app.json rather than guessing.

Driving the UI — use idb, not synthetic clicks

Do not drive the simulator with AppleScript click at or cliclick. Both post mouse events that the Simulator delivers unreliably: they land at the wrong coordinates, get swallowed by the window's pointer capture ("Press esc to stop capture" in the title bar), and succeed only intermittently. This costs a lot of time and produces confusing evidence — you cannot tell a failed tap from a bug.

Use idb, which taps the device directly in device points:

brew install facebook/fb/idb-companion
/usr/bin/python3 -m venv idbenv && ./idbenv/bin/pip install fb-idb  # needs py3.9; fb-idb breaks on 3.14
idb_companion --udid <UDID> &                                       # note the grpc port it prints
./idbenv/bin/idb connect localhost <port>
./idbenv/bin/idb ui tap <x> <y>

Coordinates. A screenshot from xcrun simctl io booted screenshot is in pixels, not device points. On a 3x device (e.g. iPhone 17 Pro Max, 1320×2868 px ↔ 440×956 pt) divide screenshot pixels by 3 to get the tap target. Confirm the device's scale factor before converting.

A Switch needs a real press, not an instantaneous tap:

./idbenv/bin/idb ui tap --duration 0.12 <x> <y>

Observing what the app did

console.log and the app's logger go to Metro, not to the system log — so xcrun simctl spawn booted log stream will not show them.

To capture runtime state in a screenshot, temporarily Alert.alert(...) the value from the code path under test, drive the flow, screenshot, then remove the instrumentation. Alerts queue, so N calls means N dismissals.

For state-shaped questions, a Redux devtools bridge (Reactotron or similar, if the repo wires one in dev) is usually faster than adding log lines.

Gotchas

  • The simulator's clock follows the host, so anything scheduled days out cannot be waited for. Read back the OS's own pending state instead (e.g. notifee.getTriggerNotifications()) — that is the real store of record.
  • Apps that gate startup on a migration or backfill show a loading screen on the first launch after a schema bump, before anything renders. Do not mistake that for a hang.
  • A stale Metro bundler serves the old bundle. If a JS change does not appear, restart Metro before doubting the code.

Definition of done

  • The change was observed running, not inferred from tests.
  • Evidence captured (screenshot, or the specific observed behavior described).
  • All temporary instrumentation (Alert.alert, log lines, debug flags) removed from the diff.
  • Static checks still pass afterwards — see validate-change.

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.