run-simulator
Build, install, launch, and screenshot an iOS app in the Simulator to verify a change visually. Use when the user wants to run the app, see a change live, screenshot the running app, or confirm a UI fix actually works (not just that it compiles).
What this skill does
# Run in Simulator
Launches the **actual app** in the iOS Simulator and drives it far enough to see
what a user would see. Building proves the code compiles; this skill proves it
*runs*. The payoff is a screenshot of the live app that you read back to confirm
the change — a blank or crashed frame is a failure, not a pass.
This skill is generic. Nothing about a specific app is hardcoded — the scheme,
simulator, product path, and bundle id are all discovered at runtime.
## When This Skill Activates
Use this skill when the user:
- Asks to "run", "launch", or "open" the app in the simulator
- Wants to *see* a change working, not just compile it
- Asks for a screenshot of the running app
- Wants to verify a UI fix visually before committing or pushing
- Says "does this actually work?" about a view/flow they just changed
Do **not** use it for unit/UI test runs (`xcodebuild test`) — that's a different
goal. This is about meeting the app as a user would.
## Process
Run the steps in order. Each step's output feeds the next, so don't hardcode
values a previous step can discover.
### 1. Discover the project and scheme
Prefer a workspace over a bare project when both exist (CocoaPods/SPM setups
often require the workspace):
```bash
# Find the container
ls *.xcworkspace 2>/dev/null || ls *.xcodeproj 2>/dev/null
# List schemes (use -workspace X.xcworkspace OR -project X.xcodeproj)
xcodebuild -list -project <App>.xcodeproj 2>/dev/null
```
Pick the app scheme (usually matches the app name). If several schemes look
plausible and none clearly matches, **ask the user** which to run rather than
guessing.
### 2. Pick a simulator destination
**Never hardcode a device name** — the named device may not exist on this Mac
(e.g. assuming "iPhone 16" when only "iPhone 17 Pro" is installed fails with
*"Unable to find a device matching the provided destination specifier"*). List
what's actually available and prefer one already booted:
```bash
# Already-booted sim, if any (fastest — skip the boot wait)
xcrun simctl list devices booted
# Otherwise, available iPhones to choose from
xcrun simctl list devices available | grep -i iphone
```
Choose a booted device if present; otherwise pick a recent iPhone from the
available list and remember its name for the destination string.
### 3. Build for the simulator
```bash
xcodebuild build \
-project <App>.xcodeproj \
-scheme <Scheme> \
-destination 'platform=iOS Simulator,name=<SimName>' \
2>&1 | tail -5
```
- Read the tail for `** BUILD SUCCEEDED **`. Note that `-quiet` *suppresses*
that success line, so either drop `-quiet` for the confirming run or grep for
`error:` explicitly.
- On failure, surface the `error:` lines — don't proceed to install a stale or
nonexistent build.
### 4. Resolve the built `.app` and its bundle id
Don't guess the DerivedData path — ask the build system for it:
```bash
# Product directory + name from the resolved build settings
eval $(xcodebuild -project <App>.xcodeproj -scheme <Scheme> \
-destination 'platform=iOS Simulator,name=<SimName>' \
-showBuildSettings 2>/dev/null \
| awk -F' = ' '/ TARGET_BUILD_DIR =/{print "DIR=\""$2"\""} / FULL_PRODUCT_NAME =/{print "NAME=\""$2"\""}')
APP="$DIR/$NAME"
echo "APP: $APP"
# Bundle id straight from the built Info.plist
BID=$(/usr/libexec/PlistBuddy -c "Print :CFBundleIdentifier" "$APP/Info.plist")
echo "Bundle id: $BID"
```
### 5. Boot, install, launch
```bash
SIM="<SimName>"
xcrun simctl boot "$SIM" 2>/dev/null # no-op if already booted
open -a Simulator # bring the window forward
xcrun simctl bootstatus "$SIM" -b # block until fully booted
xcrun simctl install "$SIM" "$APP"
xcrun simctl launch "$SIM" "$BID"
```
`simctl launch` prints `<bundleid>: <pid>` on success. A non-zero exit or an
error string here means the app failed to start — investigate before
screenshotting.
### 6. Screenshot and verify (and drive if needed)
```bash
xcrun simctl io "$SIM" screenshot /tmp/sim-shot.png
```
Then **Read `/tmp/sim-shot.png`** and actually look at it:
- Blank/white frame, a crash dialog, or the launch screen stuck → failure.
- The expected screen → success; describe what confirms the change.
If the change lives behind navigation, drive there before judging. Tap by point
or describe to the user what to navigate to:
```bash
# Tap a point (x y in points) — useful for hitting a known tab/button
xcrun simctl io "$SIM" tap <x> <y> # (where supported)
# Re-screenshot after each interaction
xcrun simctl io "$SIM" screenshot /tmp/sim-shot-2.png
```
For deep links, `xcrun simctl openurl "$SIM" "<scheme>://<path>"`. If precise
tapping isn't available, take the screenshot at the landing screen and tell the
user the exact taps to reach the target view.
## Output Format
Report, concisely:
1. **What ran** — scheme, simulator name/OS, bundle id.
2. **Build result** — succeeded / failed (with the error tail if failed).
3. **Launch result** — pid on success, or the failure reason.
4. **What the screenshot shows** — the screen reached and whether it confirms
the change. Embed/Read the screenshot so the user sees it too.
5. **Anything the user must do** — e.g. taps needed to reach a gated screen.
## Reliability Notes (common failure modes)
- **Wrong device name** → "Unable to find a device matching the destination."
Always list available sims (step 2) instead of assuming a model number.
- **`-quiet` hides success** → it removes `** BUILD SUCCEEDED **`; grep for
`error:` or run the verifying build without `-quiet`.
- **Stale install** → if behavior looks unchanged, `xcrun simctl uninstall
"$SIM" "$BID"` then reinstall; or `xcrun simctl shutdown "$SIM" && xcrun
simctl erase "$SIM"` for a clean slate (destroys sim data — confirm first).
- **Workspace vs project** → if the build complains about missing packages/pods,
re-run with `-workspace <App>.xcworkspace` instead of `-project`.
- **First boot is slow** → `simctl bootstatus -b` blocks correctly; a fixed
`sleep` does not and races the install.
- **Launch screen "stuck"** → on a cold sim the app may still be initializing;
re-screenshot after a short wait before declaring failure.
## References
- `xcrun simctl help` — full simulator control surface (boot, install, launch,
io, openurl, spawn).
- `man xcodebuild` — `build`, `-list`, `-showBuildSettings`, `-destination`.
- Apple: Running your app in Simulator —
https://developer.apple.com/documentation/xcode/running-your-app-in-the-simulator-or-on-a-device
Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.