Skill

From Microck/ordinary-claude-skills · View interactive version

Skill is an AI agent skill from the GitHub repository Microck/ordinary-claude-skills. 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.

How to use this skill

Skill file

iOS Simulator Skill

Build, test, and automate iOS applications using accessibility-driven navigation and structured data instead of pixel coordinates.

Quick Start

# 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 "user@example.com"

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
  1. log_monitor.py - Real-time log monitoring with intelligent filtering

Navigation & Interaction (5 scripts)

  1. screen_mapper.py - Analyze current screen and list interactive elements
  1. navigator.py - Find and interact with elements semantically
  1. gesture.py - Perform swipes, scrolls, pinches, and complex gestures
  1. keyboard.py - Text input and hardware button control
  1. app_launcher.py - App lifecycle management

Testing & Analysis (5 scripts)

  1. accessibility_audit.py - Check WCAG compliance on current screen
  1. visual_diff.py - Compare two screenshots for visual changes
  1. test_recorder.py - Automatically document test execution
  1. app_state_capture.py - Create comprehensive debugging snapshots
  1. sim_health_check.sh - Verify environment is properly configured

Advanced Testing & Permissions (4 scripts)

  1. clipboard.py - Manage simulator clipboard for paste testing
  1. status_bar.py - Override simulator status bar appearance
  1. push_notification.py - Send simulated push notifications
  1. privacy_manager.py - Grant, revoke, and reset app permissions

Device Lifecycle Management (5 scripts)

  1. simctl_boot.py - Boot simulators with optional readiness verification
  1. simctl_shutdown.py - Gracefully shutdown simulators
  1. simctl_create.py - Create simulators dynamically
  1. simctl_delete.py - Permanently delete simulators
  1. simctl_erase.py - Factory reset simulators without deletion

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

Documentation

Key Design Principles

Semantic Navigation: Find elements by meaning (text, type, ID) not pixel coordinates. Survives UI changes.

Token Efficiency: Concise default output (3-5 lines) with optional verbose and JSON modes for detailed results.

Accessibility-First: Built on standard accessibility APIs for reliability and compatibility.

Zero Configuration: Works immediately on any macOS with Xcode. No setup required.

Structured Data: Scripts output JSON or formatted text, not raw logs. Easy to parse and integrate.

Auto-Learning: Build system remembers your device preference. Configuration stored per-project.


Use these scripts directly or let Claude Code invoke them automatically when your request matches the skill description.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.