/toycrane-skills:expo-dev-loopfrom toycrane-skills
Verifies Expo/React Native changes on iOS/Android simulators or devices using agent-device. Classifies changes as Metro fast path or native rebuild, then confirms behavior with runtime evidence.
Ships in toycrane-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill requires project-knowledge. Before doing any work, confirm it is
installed. When it is missing, stop and report it with its install command,
npx skills@latest add toy-crane/skills --skill project-knowledge, using the
project's package manager runner where it pins one.
Prove the changed behavior in the running app. Static inspection, type checks, unit tests, and a successful bundle support the result but do not replace device verification.
Inspect the request, current diff, Expo config, and package manifest. Identify the intended flow, platform, device, and observable result. When the request does not require both platforms, use one available representative local target and state that coverage; never infer iOS and Android parity from one run.
Use the installed CLI's version-matched guidance instead of remembered command shapes:
agent-device help workflow
agent-device help react-native
If agent-device is unavailable, report that runtime verification is blocked
and give npm install -g agent-device@latest as the setup command.
Classify the whole change before launching the app:
agent-device metro reload when a full JS reload is
needed.expo run:ios or expo run:android through the project's own package
manager, install the resulting development build, and relaunch it. npx
aborts with EBADDEVENGINES where package.json pins another package
manager through devEngines.Use the native path for a mixed change or when native impact remains uncertain. Both paths run on a development build of the project, so the classification decides whether that build must be rebuilt rather than which client to use. Expo Go is a fixed prebuilt shell whose native surface belongs to Expo rather than to this project, so a result observed there is about a different binary than the one being shipped; build a development build instead. Preserve the project's managed or checked-in native workflow rather than regenerating native directories as an incidental verification step.
Keep three gates separate and report the first one that fails:
Use narrow readiness checks in the ordinary loop. Run agent-device doctor
only when the user asks for setup diagnosis or a failed readiness check suggests
an unhealthy device, app, development server, or runner.
Choose the least destructive state profile that proves the behavior:
agent-device 0.20.10 or newer, whose device claims reject foreign local
mutations; earlier releases advertise claims without enforcing them. Acquire
the exact target through the loop's final named session with
agent-device open, confirm agent-device device status names that session
and workspace, and keep the claim through reset, boot, reinstall, Metro
reconnection, and observation. If the claim cannot be acquired or held
across the selected reset mechanism, stop before reset. Address only that
target, never all devices. After reset, re-establish any allowed backend
fixture before observation.Never erase a physical, user-owned, shared, or otherwise unowned target. When a fresh-device check has no eligible virtual target, report the runtime-readiness blocker. When a usable target exists but its required state cannot safely be established, report the known-initial-state blocker. Do not substitute destructive app or backend actions. Treat a stateful backend as a separate affected surface: use only the project's deterministic local or test preparation path, and never infer backend state from a ready client or destructively reset a remote service under ordinary verification authority.
Keep state-changing device commands serial within one session. Open the actual
installed app identifier or development-client URL reported by the running
tools; do not invent one. A URL target rejects --relaunch, so open the app id
when startup or clean process state matters, then capture the initial
interactive snapshot.
Point the client at this project's own dev server rather than a default port
another checkout may already hold. Pass the port as a session runtime hint with
--metro-port, and confirm the loaded bundle belongs to this project: a
development build left pointing at a stale URL loads another project's bundle
and reports that project's source paths as if they were this one's.
When Expo MCP local capabilities are already available, use its Router sitemap,
current Expo documentation, or short app-log collection as framework-side
context. Treat them as optional discovery and diagnostics; agent-device
remains the device-side proof.
Exercise the smallest complete user flow affected by the edit and check four layers:
press, fill, scroll, back, and other
appropriate commands using --settle; verify the named outcome with an
exact wait, is, get, or find assertion. A screenshot alone does not
prove a behavioral expectation.Use refs from the latest snapshot or settled diff. A state-changing command invalidates earlier refs; refresh the snapshot or use a stable id, label, role, or testID before the next action. Prefer semantic selectors and use coordinates only when the accessibility surface cannot expose the target, recording that limitation with visual evidence.
Collect evidence proportional to the claim: a screenshot for visual output,
focused logs for runtime behavior, network output for request behavior,
performance artifacts for performance claims, and a recorded .ad replay for
a flow worth keeping as a regression check.
When a workaround such as clearing a cache or rebuilding leaves its root cause
open, or you observe an out-of-scope defect with evidence, record it at the
moment of discovery through the project-knowledge skill, handing it the
symptom, observed evidence, suspected cause, what was tried, and a proposed
next step, and keep the docs/follow-ups/<slug>.md path it reports for the
handoff. Reporting it only in conversation loses it.
Finish only when the selected runtime contains the current change, the exact user-visible expectation passes, relevant runtime errors are absent during the reproduction, and every platform claim has device evidence. Report the target, state profile, readiness evidence, prepared and preserved state boundaries, flow, assertions, and artifact paths, separating observed results from remaining inference or unverified coverage.
If verification is blocked, name the app, platform, session, failed gate, and
the exact next command or user action needed. Close the agent-device session
when finished. Leave a healthy Metro server running for the next edit loop
unless the user requested cleanup; in CI, release the device with
agent-device close --shutdown.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
expo, react-native, mobile-development, device-testing, development-loop
npx claudepluginhub toy-crane/skills --plugin toycrane-skillsOther plugins' skills for the same job
28 skills in this plugin
/add-env-keyGet a key the user must issue or supply, such as an API key, token, or password, into the project's .env file without the value passing through chat or the model's context. Opens the vendor's issuance page, collects the value through the secret-env mod's input pane when the session has it, and otherwise opens the file in the user's editor with the key line ready. Use when work needs such a key that the project does not have yet, or when the user asks to add, set, or put an API key or token into .env./add-stack-contextAudit and establish current agent context for the technologies that define a project's stack. Use when setting up a project for agent work, after selecting or adding a framework, library, developer tool, or hosted service, or when entering an existing project whose agent context has not been audited./