ios-simulator-skill
21 production-ready scripts for iOS app testing, building, and automation. Provides semantic UI navigation, build automation, accessibility testing, and simulator lifecycle management. Optimized for AI agents with minimal token output.
What this skill does
# iOS Simulator Skill Build, test, and automate iOS applications using accessibility-driven navigation and structured data instead of pixel coordinates. ## Quick Start ```bash # 1. Check environment bash scripts/sim_health_check.sh # 2. Launch app python scripts/app_launcher.py --launch com.example.app # 3. Map screen to see elements python scripts/screen_mapper.py # 4. Tap button python scripts/navigator.py --find-text "Login" --tap # 5. Enter text python scripts/navigator.py --find-type TextField --enter-text "[email protected]" ``` All scripts support `--help` for detailed options and `--json` for machine-readable output. ## 21 Production Scripts ### Build & Development (2 scripts) 1. **build_and_test.py** - Build Xcode projects, run tests, parse results with progressive disclosure - Build with live result streaming - Parse errors and warnings from xcresult bundles - Retrieve detailed build logs on demand - Options: `--project`, `--scheme`, `--clean`, `--test`, `--verbose`, `--json` 2. **log_monitor.py** - Real-time log monitoring with intelligent filtering - Stream logs or capture by duration - Filter by severity (error/warning/info/debug) - Deduplicate repeated messages - Options: `--app`, `--severity`, `--follow`, `--duration`, `--output`, `--json` ### Navigation & Interaction (5 scripts) 3. **screen_mapper.py** - Analyze current screen and list interactive elements - Element type breakdown - Interactive button list - Text field status - Options: `--verbose`, `--hints`, `--json` 4. **navigator.py** - Find and interact with elements semantically - Find by text (fuzzy matching) - Find by element type - Find by accessibility ID - Enter text or tap elements - Options: `--find-text`, `--find-type`, `--find-id`, `--tap`, `--enter-text`, `--json` 5. **gesture.py** - Perform swipes, scrolls, pinches, and complex gestures - Directional swipes (up/down/left/right) - Multi-swipe scrolling - Pinch zoom - Long press - Pull to refresh - Options: `--swipe`, `--scroll`, `--pinch`, `--long-press`, `--refresh`, `--json` 6. **keyboard.py** - Text input and hardware button control - Type text (fast or slow) - Special keys (return, delete, tab, space, arrows) - Hardware buttons (home, lock, volume, screenshot) - Key combinations - Options: `--type`, `--key`, `--button`, `--slow`, `--clear`, `--dismiss`, `--json` 7. **app_launcher.py** - App lifecycle management - Launch apps by bundle ID - Terminate apps - Install/uninstall from .app bundles - Deep link navigation - List installed apps - Check app state - Options: `--launch`, `--terminate`, `--install`, `--uninstall`, `--open-url`, `--list`, `--state`, `--json` ### Testing & Analysis (5 scripts) 8. **accessibility_audit.py** - Check WCAG compliance on current screen - Critical issues (missing labels, empty buttons, no alt text) - Warnings (missing hints, small touch targets) - Info (missing IDs, deep nesting) - Options: `--verbose`, `--output`, `--json` 9. **visual_diff.py** - Compare two screenshots for visual changes - Pixel-by-pixel comparison - Threshold-based pass/fail - Generate diff images - Options: `--threshold`, `--output`, `--details`, `--json` 10. **test_recorder.py** - Automatically document test execution - Capture screenshots and accessibility trees per step - Generate markdown reports with timing data - Options: `--test-name`, `--output`, `--verbose`, `--json` 11. **app_state_capture.py** - Create comprehensive debugging snapshots - Screenshot, UI hierarchy, app logs, device info - Markdown summary for bug reports - Options: `--app-bundle-id`, `--output`, `--log-lines`, `--json` 12. **sim_health_check.sh** - Verify environment is properly configured - Check macOS, Xcode, simctl, IDB, Python - List available and booted simulators - Verify Python packages (Pillow) ### Advanced Testing & Permissions (4 scripts) 13. **clipboard.py** - Manage simulator clipboard for paste testing - Copy text to clipboard - Test paste flows without manual entry - Options: `--copy`, `--test-name`, `--expected`, `--json` 14. **status_bar.py** - Override simulator status bar appearance - Presets: clean (9:41, 100% battery), testing (11:11, 50%), low-battery (20%), airplane (offline) - Custom time, network, battery, WiFi settings - Options: `--preset`, `--time`, `--data-network`, `--battery-level`, `--clear`, `--json` 15. **push_notification.py** - Send simulated push notifications - Simple mode (title + body + badge) - Custom JSON payloads - Test notification handling and deep links - Options: `--bundle-id`, `--title`, `--body`, `--badge`, `--payload`, `--json` 16. **privacy_manager.py** - Grant, revoke, and reset app permissions - 13 supported services (camera, microphone, location, contacts, photos, calendar, health, etc.) - Batch operations (comma-separated services) - Audit trail with test scenario tracking - Options: `--bundle-id`, `--grant`, `--revoke`, `--reset`, `--list`, `--json` ### Device Lifecycle Management (5 scripts) 17. **simctl_boot.py** - Boot simulators with optional readiness verification - Boot by UDID or device name - Wait for device ready with timeout - Batch boot operations (--all, --type) - Performance timing - Options: `--udid`, `--name`, `--wait-ready`, `--timeout`, `--all`, `--type`, `--json` 18. **simctl_shutdown.py** - Gracefully shutdown simulators - Shutdown by UDID or device name - Optional verification of shutdown completion - Batch shutdown operations - Options: `--udid`, `--name`, `--verify`, `--timeout`, `--all`, `--type`, `--json` 19. **simctl_create.py** - Create simulators dynamically - Create by device type and iOS version - List available device types and runtimes - Custom device naming - Returns UDID for CI/CD integration - Options: `--device`, `--runtime`, `--name`, `--list-devices`, `--list-runtimes`, `--json` 20. **simctl_delete.py** - Permanently delete simulators - Delete by UDID or device name - Safety confirmation by default (skip with --yes) - Batch delete operations - Smart deletion (--old N to keep N per device type) - Options: `--udid`, `--name`, `--yes`, `--all`, `--type`, `--old`, `--json` 21. **simctl_erase.py** - Factory reset simulators without deletion - Preserve device UUID (faster than delete+create) - Erase all, by type, or booted simulators - Optional verification - Options: `--udid`, `--name`, `--verify`, `--timeout`, `--all`, `--type`, `--booted`, `--json` ## Common Patterns **Auto-UDID Detection**: Most scripts auto-detect the booted simulator if --udid is not provided. **Device Name Resolution**: Use device names (e.g., "iPhone 16 Pro") instead of UDIDs - scripts resolve automatically. **Batch Operations**: Many scripts support `--all` for all simulators or `--type iPhone` for device type filtering. **Output Formats**: Default is concise human-readable output. Use `--json` for machine-readable output in CI/CD. **Help**: All scripts support `--help` for detailed options and examples. ## Typical Workflow 1. Verify environment: `bash scripts/sim_health_check.sh` 2. Launch app: `python scripts/app_launcher.py --launch com.example.app` 3. Analyze screen: `python scripts/screen_mapper.py` 4. Interact: `python scripts/navigator.py --find-text "Button" --tap` 5. Verify: `python scripts/accessibility_audit.py` 6. Debug if needed: `python scripts/app_state_capture.py --app-bundle-id com.example.app` ## Requirements - macOS 12+ - Xcode Command Line Tools - Python 3 - IDB (optional, for interactive features) ## Documentation - **SKILL.md** (this file) - Script reference and quick start - **README.md** - Installation and examples - **CLAUDE.md** - Architecture and implementation details - **references/** - Deep docu
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.