[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71EC0R08K32RHHRK5596N4G":3,"skill-same:01M71EC0R08K32RHHRK5596N4G":87},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":65,"commitSha":66,"skillDirectory":67,"forksCount":14,"repositoryHtmlUrl":68,"repositoryHomepageUrl":6,"ownerHtmlUrl":69,"ownerBlogUrl":70,"ownerDescription":71,"updatedAt":72,"install":73,"resources":86},"01M71EC0R08K32RHHRK5596N4G","maestro-mobile-testing",null,"Maestro mobile E2E testing patterns for React Native\u002FExpo apps: YAML test flows, testID selectors, adaptive auth state, optimistic update verification, GraalJS scripting, cross-platform stability, CI\u002FCD integration, Maestro Cloud, and MCP server integration","patinaproject\u002Fskills","patinaproject","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F229996889?v=4","01M71E58JKTDNY1138WYZK44TR","Patina Project","01M71E58K5GH4K16MV6A8BQ6NZ",1,"MIT","https:\u002F\u002Fgithub.com\u002Fpatinaproject\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fmaestro-mobile-testing\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"maestro mobile testing","maestro","mobile testing","mobile","testing","ci","mobile e2e","apps","react-native","react native","write","server","authentication","update","run","e2e tests","react","components","writing","MCP","2026-11-10 10:12:30",false,"---\nname: maestro-mobile-testing\ndescription: \"Maestro mobile E2E testing patterns for React Native\u002FExpo apps: YAML test flows, testID selectors, adaptive auth state, optimistic update verification, GraalJS scripting, cross-platform stability, CI\u002FCD integration, Maestro Cloud, and MCP server integration\"\nversion: 1.1.0\ncategory: toolchain\nauthor: tovimx\nlicense: MIT\nprogressive_disclosure:\n  entry_point:\n    summary: \"Write reliable Maestro mobile E2E tests with declarative YAML flows, testID selectors, auth-aware adaptive patterns, and optimistic update verification\"\n    when_to_use: \"When writing mobile E2E tests, debugging flaky flows, testing authentication, verifying optimistic updates, capturing screenshots, or setting up Maestro CI for React Native\u002FExpo apps\"\n    quick_start: \"1. Install Maestro CLI 2. Add testID props to components 3. Write YAML flows with testID selectors 4. Use auth-loaded pre-flight pattern 5. Start mock API server for backend-dependent tests 6. Run with maestro test\"\n  token_estimate:\n    entry: 150\n    full: 9000\ncontext_limit: 900\ntags:\n  - react-native\n  - expo\n  - testing\n  - maestro\n  - e2e\n  - mobile\n  - ios\n  - android\n  - yaml\n  - ci-cd\n  - mcp\nrequires_tools: []\n---\n\n# Maestro Mobile E2E Testing\n\n## Overview\n\nMaestro is a declarative YAML-based mobile E2E testing framework. It provides automatic waiting, built-in retry logic, and fast execution without boilerplate. It's more stable than Detox or Appium for React Native apps.\n\n### Key Features\n\n- **Declarative YAML** — no imperative test code, just steps\n- **Automatic waiting** — no manual `sleep()` or flaky waits\n- **Built-in retry** — reduces test flakiness\n- **Fast execution** — runs quickly without setup overhead\n- **Maestro Studio** — interactive test builder (`maestro studio`)\n- **Sub-flows** — reusable YAML sequences for DRY tests\n- **JavaScript scripting** — GraalJS runtime for HTTP calls and data manipulation\n- **Maestro Cloud** — real device testing in CI without local simulators\n\n## Quick Start\n\n### Install\n\n```bash\ncurl -Ls \"https:\u002F\u002Fget.maestro.mobile.dev\" | bash\nbrew install openjdk@17\nexport JAVA_HOME=\u002Fopt\u002Fhomebrew\u002Fopt\u002Fopenjdk@17\u002Flibexec\u002Fopenjdk.jdk\u002FContents\u002FHome\n```\n\n### Minimal test\n\n```yaml\nappId: com.myapp\n---\n- launchApp\n- tapOn:\n    id: \"my-button\"\n- assertVisible: \"Expected Text\"\n```\n\n### Run\n\n```bash\nmaestro test .maestro\u002Fsmoke-test.yaml\nmaestro test --debug .maestro\u002Fsmoke-test.yaml  # step through\nmaestro studio                                  # interactive builder\n```\n\n---\n\n## Core Patterns\n\n### 1. Selector Strategy: testID vs Text\n\nChoose your selector approach based on project context. Both are valid — the right choice depends on whether your app is localized and your team's testing philosophy.\n\n| Context | Recommended Selector | Rationale |\n|---------|---------------------|-----------|\n| **Multi-language \u002F i18n** | `id:` (testID) | Stable across translations |\n| **Single language** | Text labels | Human-readable, self-documenting tests |\n| **Agent-maintained tests** | Either — ask the developer | Readability matters less for AI-maintained flows |\n| **System dialogs** | Text (always) | No testID possible on native alerts |\n\n```yaml\n# testID selector — stable across translations\n- tapOn:\n    id: \"submit-button\"\n\n# Text selector — human-readable, self-documenting\n- tapOn: \"Submit\"\n```\n\n**When to prefer testIDs:**\n- App supports multiple languages or will be translated\n- UI text is dynamic or frequently changes\n- Multiple elements share the same visible text\n\n**When to prefer text selectors:**\n- Single-language app with stable copy\n- Readability and self-documentation are a priority\n- Testing user-visible behavior exactly as it appears\n\nIn React Native, add `testID` props when using ID-based selectors:\n\n```tsx\n\u003CTouchableOpacity testID=\"submit-button\" onPress={handleSubmit}>\n  \u003CText>{t('submit')}\u003C\u002FText>\n\u003C\u002FTouchableOpacity>\n```\n\n### testID Naming Convention\n\nWhen using ID-based selectors:\n\n```\n{component}-{action\u002Ftype}[-{variant}]\n\nExamples:\n- auth-prompt-login-button\n- product-card-{id}\n- otp-input-0\n- tab-home\n- dashboard-loading\n```\n\n### 2. Auth Pre-Flight Pattern\n\nPrevent race conditions where Maestro interacts with the UI before auth state resolves. Add a zero-size `auth-loaded` marker that only renders when auth loading completes:\n\n```tsx\n\u002F\u002F In your tab bar or root layout\n{!isLoading && \u003CView testID=\"auth-loaded\" style={{ width: 0, height: 0 }} \u002F>}\n```\n\nThen in every test:\n\n```yaml\n- launchApp\n\n# Prevent XCTest crash on cold boot (iOS)\n- swipe:\n    direction: DOWN\n    duration: 100\n\n# Wait for auth state to resolve\n- extendedWaitUntil:\n    visible:\n      id: \"auth-loaded\"\n    timeout: 15000\n\n# Now safe to interact\n- tapOn:\n    id: \"tab-home\"\n```\n\n### 3. Adaptive Tests (Handle Both Auth States)\n\nTests should work regardless of whether the user is authenticated:\n\n```yaml\n# Auth flow — only runs if login prompt is visible\n- runFlow:\n    when:\n      visible: \"Sign In\"\n    file: flows\u002Fauth-flow.yaml\n\n# Already authenticated — proceed directly\n- runFlow:\n    when:\n      visible:\n        id: \"tab-home\"\n    file: flows\u002Fauthenticated-action.yaml\n```\n\n### 4. Testing Optimistic Updates\n\nUse short timeouts to verify UI changes happen before server response:\n\n```yaml\n# Trigger mutation\n- tapOn:\n    id: \"action-button\"\n\n# OPTIMISTIC: UI must change within 3s (not waiting for server)\n- extendedWaitUntil:\n    visible:\n      id: \"undo-button\"\n    timeout: 3000\n\n# Verify derived UI state\n- extendedWaitUntil:\n    visible:\n      id: \"user-indicator\"\n    timeout: 5000\n```\n\n| Action | Expected Change | Timeout |\n|--------|----------------|---------|\n| Mutation trigger | Button state flips | \u003C 3s |\n| List update | Item appears\u002Fdisappears | \u003C 5s |\n| Re-do action | Proves persistence | \u003C 3s |\n\n### 5. Dismissing Native Alerts\n\nReact Native `Alert.alert()` creates native dialogs that block the UI:\n\n```yaml\n- tapOn:\n    id: \"action-button\"\n\n# Wait for expected state change first\n- extendedWaitUntil:\n    visible:\n      id: \"new-state-element\"\n    timeout: 5000\n\n# Dismiss alert (optional in case it already closed)\n- tapOn:\n    text: \"OK\"\n    optional: true\n\n# Brief delay for alert animation\n- swipe:\n    direction: DOWN\n    duration: 300\n```\n\n### 6. Sub-Flows for Reusability\n\nBreak repeated sequences into sub-flow files:\n\n```\n.maestro\u002F\n├── flows\u002F\n│   ├── auth-and-return.yaml\n│   ├── complete-purchase.yaml\n│   └── verify-result.yaml\n├── smoke-test.yaml\n└── feature-test.yaml\n```\n\n```yaml\n# In main test\n- runFlow:\n    file: flows\u002Fauth-and-return.yaml\n```\n\n### 7. Deep Links (Expo)\n\nUse the Expo scheme from `app.json`, not the bundle ID:\n\n```yaml\n# WRONG\n- openLink: \"com.myapp:\u002F\u002Fprofile\u002Fsettings\"\n\n# CORRECT\n- openLink: \"myapp:\u002F\u002Fprofile\u002Fsettings\"\n```\n\nDeep links must be registered in your app's deep link handler. Unregistered routes silently fail.\n\n### 8. Platform-Specific Logic\n\n```yaml\n- runFlow:\n    when:\n      platform: ios\n    file: flows\u002Fios-specific.yaml\n\n- runFlow:\n    when:\n      platform: android\n    file: flows\u002Fandroid-specific.yaml\n```\n\n### 9. Environment Variables\n\n```yaml\nappId: com.myapp\nenv:\n  TEST_EMAIL: maestro-test@example.com\n  API_BASE_URL: http:\u002F\u002Flocalhost:3000\n---\n- inputText: ${TEST_EMAIL}\n```\n\n### 10. Selector State Properties\n\nUse `enabled`, `selected`, `checked`, and `focused` to target elements by their current state. This is useful for validating interactive element states before or after actions.\n\n```yaml\n# Only tap the submit button if it's enabled\n- tapOn:\n    id: \"submit-button\"\n    enabled: true\n\n# Assert a checkbox is checked\n- assertVisible:\n    id: \"terms-checkbox\"\n    checked: true\n\n# Wait for an input to be focused\n- extendedWaitUntil:\n    visible:\n      id: \"email-input\"\n      focused: true\n    timeout: 3000\n```\n\n| Property | Values | Use Case |\n|----------|--------|----------|\n| `enabled` | `true` \u002F `false` | Buttons that disable during submission or until form is valid |\n| `checked` | `true` \u002F `false` | Checkboxes, toggle switches |\n| `selected` | `true` \u002F `false` | Tab items, segmented controls |\n| `focused` | `true` \u002F `false` | Input fields with auto-focus |\n\n### 11. Relative Position Selectors\n\nDistinguish between similar elements by their spatial relationship to other elements. This is more idiomatic and resilient than index-based selection.\n\n```yaml\n# BAD — fragile, breaks if order changes\n- tapOn:\n    text: \"Add to Basket\"\n    index: 1\n\n# GOOD — contextual, self-documenting\n- tapOn:\n    text: \"Add to Basket\"\n    below:\n      text: \"Awesome Shoes\"\n```\n\nAvailable relative selectors:\n\n```yaml\n# Target element below another\n- tapOn:\n    text: \"Buy Now\"\n    below: \"Product Title\"\n\n# Target element that is a child of a parent\n- tapOn:\n    text: \"Delete\"\n    childOf:\n      id: \"item-card-42\"\n\n# Target a parent that contains a specific child\n- tapOn:\n    containsChild: \"Urgent\"\n\n# Target by multiple descendants\n- tapOn:\n    containsDescendants:\n      - id: title_id\n        text: \"Specific Title\"\n      - \"Another descendant text\"\n\n# Horizontal positioning\n- tapOn:\n    text: \"Edit\"\n    rightOf: \"Username\"\n```\n\n| Selector | Meaning |\n|----------|---------|\n| `below:` | Element is positioned below the referenced element |\n| `above:` | Element is positioned above the referenced element |\n| `leftOf:` | Element is to the left of the referenced element |\n| `rightOf:` | Element is to the right of the referenced element |\n| `childOf:` | Element is a direct child of the referenced parent |\n| `containsChild:` | Element contains a direct child matching the reference |\n| `containsDescendants:` | Element contains all specified descendant elements |\n\n---\n\n## Authentication Testing\n\n### Architecture\n\nTesting OTP or magic-link authentication in E2E requires capturing emails programmatically. The general pattern:\n\n```\n┌─────────────┐     ┌──────────────┐     ┌─────────────────┐\n│  Maestro    │────▶│  Auth        │────▶│  Email Capture  │\n│  Test       │     │  Provider    │     │  Service        │\n└─────────────┘     └──────────────┘     └─────────────────┘\n       │                                        │\n       │         ┌──────────────────────────────┘\n       │         ▼\n       │   ┌─────────────┐\n       └──▶│  REST API   │ ─── GET \u002Fapi\u002Fv1\u002Fmessages\n           │  (email)    │ ─── Extract OTP code\n           └─────────────┘\n```\n\nCommon email capture services: [Mailpit](https:\u002F\u002Fgithub.com\u002Faxllent\u002Fmailpit), [MailHog](https:\u002F\u002Fgithub.com\u002Fmailhog\u002FMailHog), [Ethereal](https:\u002F\u002Fethereal.email\u002F).\n\n### OTP Fetch Script\n\nFetch OTP codes from your email capture service using Maestro's GraalJS runtime:\n\n```javascript\n\u002F\u002F CRITICAL: Maestro uses GraalJS — NO async\u002Fawait, NO fetch()\nvar email = typeof EMAIL !== \"undefined\" ? EMAIL : \"test@example.com\";\nvar emailServiceUrl = typeof EMAIL_SERVICE_URL !== \"undefined\"\n  ? EMAIL_SERVICE_URL : \"http:\u002F\u002Flocalhost:8025\";\n\nvar response = http.get(emailServiceUrl + \"\u002Fapi\u002Fv1\u002Fmessages\");\nif (!response.ok) {\n  throw new Error(\"Failed to fetch emails: \" + response.status);\n}\n\nvar data = json(response.body);\n\u002F\u002F Find the latest email and extract OTP code\nvar body = data.messages[0].Content.Body;\nvar match = body.match(\u002F(\\d{6})\u002F);\noutput.OTP_CODE = match[1];\n```\n\n### OTP Input Strategy\n\nOTP components with auto-focus need individual digit entry. Tap each input before typing:\n\n```yaml\n# Split OTP into digits via helper script\n- runScript:\n    file: scripts\u002Fsplit-otp.js\n    env:\n      OTP_CODE: ${output.OTP_CODE}\n\n# Enter each digit by tapping its input\n- tapOn:\n    id: \"otp-input-0\"\n- inputText: ${output.OTP_0}\n\n- tapOn:\n    id: \"otp-input-1\"\n- inputText: ${output.OTP_1}\n# ... repeat for all digits\n```\n\n> For provider-specific implementations (Supabase + Mailpit, Firebase Auth, Auth0), create a project-level skill that extends this one.\n\n---\n\n## GraalJS Script Rules\n\nMaestro uses the GraalJS runtime. These constraints are non-negotiable:\n\n| Feature | Status |\n|---------|--------|\n| `async\u002Fawait` | **NOT supported** |\n| `fetch()` | **NOT supported** |\n| `http.get()`, `http.post()` | Use these instead |\n| `json()` | Use to parse response bodies |\n| `output.VAR` | Set variables for use in YAML flow |\n| `var` declarations | Required (use `var`, not `const`\u002F`let` for safety) |\n\n```javascript\n\u002F\u002F Script template\nvar response = http.get(\"http:\u002F\u002Flocalhost:8025\u002Fapi\u002Fendpoint\");\nif (!response.ok) {\n  throw new Error(\"Request failed: \" + response.status);\n}\nvar data = json(response.body);\noutput.RESULT = data.value;\n```\n\n---\n\n## Critical Gotchas\n\n### clearState Does NOT Clear iOS Keychain\n\n`clearState: true` clears the app sandbox (UserDefaults, files, caches) but does **NOT** clear the iOS Keychain. Auth tokens stored via `expo-secure-store` (or any Keychain-based storage) persist across `clearState` resets and even app reinstalls.\n\n```yaml\n# WRONG — user may still be authenticated\n- launchApp:\n    clearState: true\n- assertVisible: \"Welcome\"  # Fails if Keychain has tokens\n\n# CORRECT — wait for auth resolution, then adapt\n- launchApp\n- extendedWaitUntil:\n    visible:\n      id: \"auth-loaded\"\n    timeout: 15000\n```\n\n**Rules:**\n- Never rely on `clearState` to produce guest state on iOS\n- For auth tests: skip `clearState`, use `auth-loaded` pre-flight\n- For guest tests: use adaptive flows that handle both states\n- Never assert guest-only UI after `clearState`\n\n**Note:** On Android, `clearState: true` fully resets app data including credentials. This is an iOS-only gotcha.\n\n### XCTest kAXErrorInvalidUIElement Crash (iOS)\n\nThe XCTest driver may crash if Maestro interacts with the accessibility tree before the first render cycle completes on cold boot.\n\n**Fix:** Add a no-op swipe immediately after `launchApp`:\n\n```yaml\n- launchApp\n- swipe:\n    direction: DOWN\n    duration: 100\n```\n\n### API Server Dependency\n\nMobile apps calling backend APIs on localhost need either the full server or a mock server running. Without it, all API-dependent screens show loading spinners or empty states (queries fail silently).\n\n**Fix:** Start a mock API server before running Maestro tests:\n\n```bash\n# Start mock server (serves canned responses on your API port)\nnpx tsx scripts\u002Fmock-api-server.ts &\n\n# Then run tests\nmaestro test .maestro\u002Fmy-test.yaml\n```\n\nCreate a lightweight mock that returns canned JSON for each endpoint your app calls. This is faster and more deterministic than running your full backend.\n\n### Auth-Aware Tab Bars\n\nTab bars that show different tabs for guest vs authenticated users will cause selector failures:\n\n| State | Typical Tabs |\n|-------|-------------|\n| Guest | home, search, cart, profile |\n| Auth | home, feed, create, messages, profile |\n\nOnly assert tabs that exist in both states, or use adaptive `when:` conditions.\n\n---\n\n## Test File Template\n\n```yaml\n# {Feature} {Action} Test\n#\n# Tests: {what this validates}\n# Prerequisites:\n# - Simulator\u002Femulator running with app installed\n# - Backend or mock server running (if API-dependent)\n\nappId: com.myapp\nenv:\n  TEST_EMAIL: maestro-{feature}@example.com\n  EMAIL_SERVICE_URL: http:\u002F\u002Flocalhost:8025\n---\n# ==========================================\n# STEP 1: LAUNCH + AUTH PRE-FLIGHT\n# ==========================================\n\n- launchApp\n\n- swipe:\n    direction: DOWN\n    duration: 100\n\n- extendedWaitUntil:\n    visible:\n      id: \"auth-loaded\"\n    timeout: 15000\n\n- takeScreenshot: 01-initial-state\n\n# ==========================================\n# STEP 2: {ACTION}\n# ==========================================\n\n- tapOn:\n    id: \"target-element\"\n\n# ==========================================\n# STEP 3: VERIFY\n# ==========================================\n\n- extendedWaitUntil:\n    visible:\n      id: \"expected-result\"\n    timeout: 5000\n\n- takeScreenshot: 02-final-state\n```\n\n---\n\n## Folder Structure\n\n```\n.maestro\u002F\n├── README.md                    # Quick reference + testID inventory\n├── config.yaml                  # Shared configuration\n├── flows\u002F                       # Reusable sub-flows\n│   ├── auth-and-return.yaml\n│   ├── complete-action.yaml\n│   └── verify-result.yaml\n├── scripts\u002F                     # GraalJS helpers\n│   ├── fetch-otp.js\n│   └── split-otp.js\n├── smoke-test.yaml              # Guest navigation\n├── auth-signin.yaml             # OTP sign-in flow\n├── feature-screenshots.yaml     # Screenshot capture flows\n└── feature-action.yaml          # Feature-specific tests\n\nscripts\u002F\n├── mock-api-server.ts           # Lightweight mock for E2E\n└── run-e2e.sh                   # Orchestration script\n```\n\n### Naming Conventions\n\n| Type | Pattern | Example |\n|------|---------|---------|\n| Main test | `{feature}-{action}.yaml` | `checkout-purchase.yaml` |\n| Sub-flow | `{action}-{context}.yaml` | `auth-and-return-to-dashboard.yaml` |\n| Script | `{verb}-{noun}.js` | `fetch-otp.js` |\n\n---\n\n## Infrastructure\n\n### Mock Server for API-Dependent Tests\n\nCreate a lightweight mock server that serves canned responses for your API layer. This is faster and more deterministic than running your full backend during E2E tests.\n\n```bash\n# Start mock server before running Maestro tests\nnpx tsx scripts\u002Fmock-api-server.ts &\n```\n\n### Orchestration Script\n\nAutomate the full E2E setup with a shell script that:\n1. Starts backend services (database, auth)\n2. Seeds test data\n3. Starts mock API server\n4. Runs Maestro tests\n5. Cleans up all services\n\n```bash\nbash scripts\u002Frun-e2e.sh\n```\n\n### Seed Data\n\nTests that depend on specific data require seeded databases. Keep seed scripts alongside your test infrastructure and run them before each test suite.\n\n---\n\n## Android-Specific Patterns\n\n### Emulator Setup\n\nAndroid tests require an emulator or a USB-connected physical device. Maestro auto-detects connected devices.\n\n```bash\n# List available system images\nsdkmanager --list | grep system-images\n\n# Create emulator\navdmanager create avd -n maestro_test \\\n  -k \"system-images;android-34;google_apis;arm64-v8a\"\n\n# Start emulator\nemulator -avd maestro_test\n```\n\n### iOS vs Android Differences\n\n| Aspect | iOS | Android |\n|--------|-----|---------|\n| Device type | Simulator only (no physical) | Emulator + physical via ADB |\n| `clearState` | Does NOT clear Keychain | Fully resets app data |\n| Cold boot crash | XCTest kAXError (add swipe delay) | No equivalent issue |\n| Performance | Runs natively (fast) | ARM emulation (slower on x86) |\n| Permission dialogs | System alerts | System dialogs with different text |\n\n### ADB Debugging\n\n```bash\nadb devices                                    # List connected devices\nadb shell am start -n com.myapp\u002F.MainActivity  # Launch app\nadb logcat | grep Maestro                      # Filter Maestro logs\nadb shell input keyevent 82                    # Unlock screen\n```\n\n### Android Permission Handling\n\nAndroid permissions appear as system dialogs. Dismiss with optional taps:\n\n```yaml\n- tapOn:\n    text: \"Allow\"\n    optional: true\n\n- tapOn:\n    text: \"While using the app\"\n    optional: true\n```\n\n---\n\n## CI\u002FCD Integration\n\n### GitHub Actions with Maestro Cloud\n\nMaestro Cloud provides real devices in CI without local simulators. Use the official action:\n\n```yaml\nname: Mobile E2E Tests\non:\n  push:\n    branches: [main]\n  pull_request:\n    branches: [main]\n\njobs:\n  maestro-e2e:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n\n      # Build Android APK\n      - uses: actions\u002Fsetup-java@v4\n        with:\n          java-version: '17'\n          distribution: 'temurin'\n\n      - name: Build Android APK\n        run: |\n          cd apps\u002Fmobile\n          npx expo prebuild --platform android --no-install\n          cd android && .\u002Fgradlew assembleRelease\n\n      - name: Run Maestro Cloud Tests\n        id: maestro\n        uses: mobile-dev-inc\u002Faction-maestro-cloud@v2\n        with:\n          api-key: ${{ secrets.MAESTRO_API_KEY }}\n          app-file: apps\u002Fmobile\u002Fandroid\u002Fapp\u002Fbuild\u002Foutputs\u002Fapk\u002Frelease\u002Fapp-release.apk\n          workspace: .maestro\n          include-tags: ci\n\n      # Access results\n      # ${{ steps.maestro.outputs.MAESTRO_CLOUD_CONSOLE_URL }}\n      # ${{ steps.maestro.outputs.MAESTRO_CLOUD_UPLOAD_STATUS }}\n      # ${{ steps.maestro.outputs.MAESTRO_CLOUD_FLOW_RESULTS }}\n```\n\n### Tag-Based Flow Filtering\n\nUse tags to control which tests run in CI vs locally:\n\n```yaml\n# In your flow file header\nappId: com.myapp\ntags:\n  - ci\n  - smoke\n---\n- launchApp\n# ... test steps\n```\n\n```bash\n# Run only CI-tagged flows locally\nmaestro test --include-tags ci .maestro\u002F\n\n# Exclude work-in-progress flows\nmaestro test --exclude-tags wip .maestro\u002F\n```\n\n### Local CI with Docker (Android Only)\n\n```dockerfile\nFROM openjdk:17-slim\n\nRUN curl -Ls \"https:\u002F\u002Fget.maestro.mobile.dev\" | bash\nENV PATH=\"\u002Froot\u002F.maestro\u002Fbin:${PATH}\"\n\nCOPY .maestro\u002F \u002Fapp\u002F.maestro\u002F\nWORKDIR \u002Fapp\n\nCMD [\"maestro\", \"test\", \".maestro\u002F\"]\n```\n\n**Note:** iOS tests cannot run in Docker (requires macOS). Use Maestro Cloud for iOS in CI.\n\n---\n\n## Maestro Cloud\n\n[Maestro Cloud](https:\u002F\u002Fcloud.maestro.dev\u002F) runs tests on real devices without local simulator setup.\n\n### Setup\n\n1. Create account at cloud.maestro.dev\n2. Generate API key from dashboard\n3. Store as `MAESTRO_API_KEY` secret in your CI provider\n\n### Running from CLI\n\n```bash\n# Upload and run on Maestro Cloud\nmaestro cloud --api-key $MAESTRO_API_KEY \\\n  --app-file .\u002Fapp-release.apk \\\n  .maestro\u002F\n\n# With tag filtering\nmaestro cloud --api-key $MAESTRO_API_KEY \\\n  --app-file .\u002Fapp-release.apk \\\n  --include-tags smoke \\\n  .maestro\u002F\n```\n\n### Key Points\n\n- **iOS testing**: Supported on Maestro Cloud (not on local physical devices)\n- **Android testing**: Both local physical devices and Maestro Cloud\n- **Results**: Dashboard with video recordings, logs, and screenshots\n- **CI outputs**: `MAESTRO_CLOUD_CONSOLE_URL`, `MAESTRO_CLOUD_FLOW_RESULTS`\n\n---\n\n## Maestro MCP Server\n\nThe [Maestro MCP server](https:\u002F\u002Fdocs.maestro.dev\u002Fgetting-started\u002Fmaestro-mcp) exposes Maestro's full command set as Model Context Protocol tools, letting AI agents **execute tests and interact with devices directly** — not just write YAML.\n\n### How It Complements This Skill\n\n| | **This Skill** | **Maestro MCP** |\n|---|---|---|\n| **Role** | Teaches correct patterns | Provides runtime execution |\n| **Layer** | Authoring (write good YAML) | Execution (run, tap, assert, screenshot) |\n| **Output** | Better test files | Live device interaction |\n\nUse both together: this skill ensures the AI writes correct tests; the MCP lets it run them immediately, see failures, and iterate.\n\n### Setup\n\nThe MCP ships with the Maestro CLI — no extra install needed:\n\n```bash\n# Verify it's available\nmaestro mcp\n```\n\n**Claude Code** — add to project `.mcp.json` or global settings:\n\n```json\n{\n  \"mcpServers\": {\n    \"maestro\": {\n      \"command\": \"maestro\",\n      \"args\": [\"mcp\"]\n    }\n  }\n}\n```\n\n**Claude Desktop** — add to `~\u002FLibrary\u002FApplication Support\u002FClaude\u002Fclaude_desktop_config.json` (macOS):\n\n```json\n{\n  \"mcpServers\": {\n    \"maestro\": {\n      \"command\": \"maestro\",\n      \"args\": [\"mcp\"]\n    }\n  }\n}\n```\n\nAlso supported on Cursor, Windsurf, VS Code, and JetBrains IDEs. See the [Maestro MCP docs](https:\u002F\u002Fdocs.maestro.dev\u002Fgetting-started\u002Fmaestro-mcp) for IDE-specific setup.\n\n### Key Capabilities\n\nThe MCP server exposes 47 tools organized by category:\n\n| Category | Tools | Examples |\n|----------|-------|---------|\n| UI Interaction | tap, swipe, scroll, long press | `tapOn`, `scrollUntilVisible` |\n| Text Input | type, erase, paste, copy | `inputText`, `eraseText` |\n| Assertions | visibility, AI-powered | `assertVisible`, `assertWithAI` |\n| App Lifecycle | launch, stop, clear state | `launchApp`, `clearState` |\n| Device Control | location, orientation, airplane | `setLocation`, `hideKeyboard` |\n| Flow Control | run flows, repeat, eval scripts | `runFlow`, `evalScript` |\n| Media | screenshots, recording | `takeScreenshot`, `startRecording` |\n| AI-Powered | visual assertions, defect detection | `assertWithAI`, `assertNoDefectsWithAI` |\n\n### Write-Run-Fix Loop\n\nWith both this skill and the MCP active, the AI can:\n\n1. **Write** a test YAML using patterns from this skill\n2. **Run** it via MCP's `runFlow` \u002F `launchApp` + interaction tools\n3. **See** failures via screenshots and assertions\n4. **Fix** the YAML and re-run — all in one conversation\n\n---\n\n## Debugging\n\n```bash\nmaestro test --debug .maestro\u002Ftest.yaml   # Step through interactively\nmaestro record .maestro\u002Ftest.yaml          # Record as video\nmaestro studio                             # Interactive UI builder\nmaestro hierarchy                          # View element tree\n```\n\nScreenshots saved to `~\u002F.maestro\u002Ftests\u002F{timestamp}\u002F`.\n\n---\n\n## Checklist for New Tests\n\n```\n[ ] Unique test email (maestro-{feature}@example.com)\n[ ] Selector strategy chosen (testID for i18n apps, text for single-language — see Pattern 1)\n[ ] Selectors use state properties where relevant (enabled, checked — see Pattern 10)\n[ ] Similar elements distinguished with relative selectors, not index (see Pattern 11)\n[ ] Auth pre-flight pattern used (auth-loaded)\n[ ] Post-launch swipe added (iOS crash prevention)\n[ ] Both auth states handled (adaptive flows)\n[ ] Native alerts dismissed after mutations\n[ ] Short timeouts for optimistic updates (3-5s)\n[ ] Sub-flows created for reusable sequences\n[ ] Descriptive screenshots at key points\n[ ] Header comment with prerequisites\n[ ] Added to README.md test table\n[ ] Mock API server started if backend-dependent\n[ ] Tags added for CI filtering (ci, smoke, wip)\n```\n\n---\n\n## Common Errors\n\n| Error | Cause | Fix |\n|-------|-------|-----|\n| \"Unable to locate Java Runtime\" | Java not in PATH | `export JAVA_HOME=\u002Fopt\u002Fhomebrew\u002Fopt\u002Fopenjdk@17\u002F...` |\n| \"Element not found\" after tap | Native alert blocking | Add `tapOn: text: \"OK\" optional: true` |\n| OTP digits not entering | Auto-focus interference | Use individual `otp-input-N` testIDs |\n| Test passes but nothing happened | `optional: true` misused | Only use optional for truly optional actions |\n| \"Assertion is false\" on visibility | Element not rendered yet | Increase timeout or verify testID exists |\n| Script output empty | Wrong JS API | Use `http.get()` not `fetch()` |\n| Auth state inconsistent after clearState | iOS Keychain not cleared | Don't use `clearState`, use adaptive flows |\n| kAXErrorInvalidUIElement crash | Cold boot race (iOS) | Add post-launch swipe delay |\n| Loading spinners \u002F empty screens | No API server running | Start mock API server before tests |\n| Permission dialog blocking (Android) | System dialog not dismissed | Add `tapOn: text: \"Allow\" optional: true` |\n\n---\n\n## Resources\n\n- [Maestro Documentation](https:\u002F\u002Fdocs.maestro.dev\u002F)\n- [Maestro Selectors Reference](https:\u002F\u002Fdocs.maestro.dev\u002Fapi-reference\u002Fselectors)\n- [Maestro Cloud](https:\u002F\u002Fcloud.maestro.dev\u002F)\n- [Maestro MCP Server](https:\u002F\u002Fdocs.maestro.dev\u002Fgetting-started\u002Fmaestro-mcp)\n- [Maestro GitHub](https:\u002F\u002Fgithub.com\u002Fmobile-dev-inc\u002FMaestro)\n- [GraalJS HTTP Requests](https:\u002F\u002Fdocs.maestro.dev\u002Fadvanced\u002Fjavascript\u002Fmake-http-s-requests)\n- [Conditions & Adaptive Flows](https:\u002F\u002Fdocs.maestro.dev\u002Fadvanced\u002Fconditions)\n- [GitHub Actions Integration](https:\u002F\u002Fdocs.maestro.dev\u002Fcloud\u002Fci-integration\u002Fgithub-actions)\n- [BrowserStack: Maestro Testing Guide](https:\u002F\u002Fwww.browserstack.com\u002Fguide\u002Fmaestro-testing)\n- [DEV.to: Tips & Tricks for Maestro + React Native](https:\u002F\u002Fdev.to\u002Fretyui\u002Fbest-tips-tricks-for-e2e-maestro-with-react-native-2kaa)\n","# Maestro Mobile E2E Testing\n\n## Overview\n\nMaestro is a declarative YAML-based mobile E2E testing framework. It provides automatic waiting, built-in retry logic, and fast execution without boilerplate. It's more stable than Detox or Appium for React Native apps.\n\n### Key Features\n\n- **Declarative YAML** — no imperative test code, just steps\n- **Automatic waiting** — no manual `sleep()` or flaky waits\n- **Built-in retry** — reduces test flakiness\n- **Fast execution** — runs quickly without setup overhead\n- **Maestro Studio** — interactive test builder (`maestro studio`)\n- **Sub-flows** — reusable YAML sequences for DRY tests\n- **JavaScript scripting** — GraalJS runtime for HTTP calls and data manipulation\n- **Maestro Cloud** — real device testing in CI without local simulators\n\n## Quick Start\n\n### Install\n\n```bash\ncurl -Ls \"https:\u002F\u002Fget.maestro.mobile.dev\" | bash\nbrew install openjdk@17\nexport JAVA_HOME=\u002Fopt\u002Fhomebrew\u002Fopt\u002Fopenjdk@17\u002Flibexec\u002Fopenjdk.jdk\u002FContents\u002FHome\n```\n\n### Minimal test\n\n```yaml\nappId: com.myapp\n---\n- launchApp\n- tapOn:\n    id: \"my-button\"\n- assertVisible: \"Expected Text\"\n```\n\n### Run\n\n```bash\nmaestro test .maestro\u002Fsmoke-test.yaml\nmaestro test --debug .maestro\u002Fsmoke-test.yaml  # step through\nmaestro studio                                  # interactive builder\n```\n\n---\n\n## Core Patterns\n\n### 1. Selector Strategy: testID vs Text\n\nChoose your selector approach based on project context. Both are valid — the right choice depends on whether your app is localized and your team's testing philosophy.\n\n| Context | Recommended Selector | Rationale |\n|---------|---------------------|-----------|\n| **Multi-language \u002F i18n** | `id:` (testID) | Stable across translations |\n| **Single language** | Text labels | Human-readable, self-documenting tests |\n| **Agent-maintained tests** | Either — ask the developer | Readability matters less for AI-maintained flows |\n| **System dialogs** | Text (always) | No testID possible on native alerts |\n\n```yaml\n# testID selector — stable across translations\n- tapOn:\n    id: \"submit-button\"\n\n# Text selector — human-readable, self-documenting\n- tapOn: \"Submit\"\n```\n\n**When to prefer testIDs:**\n- App supports multiple languages or will be translated\n- UI text is dynamic or frequently changes\n- Multiple elements share the same visible text\n\n**When to prefer text selectors:**\n- Single-language app with stable copy\n- Readability and self-documentation are a priority\n- Testing user-visible behavior exactly as it appears\n\nIn React Native, add `testID` props when using ID-based selectors:\n\n```tsx\n\u003CTouchableOpacity testID=\"submit-button\" onPress={handleSubmit}>\n  \u003CText>{t('submit')}\u003C\u002FText>\n\u003C\u002FTouchableOpacity>\n```\n\n### testID Naming Convention\n\nWhen using ID-based selectors:\n\n```\n{component}-{action\u002Ftype}[-{variant}]\n\nExamples:\n- auth-prompt-login-button\n- product-card-{id}\n- otp-input-0\n- tab-home\n- dashboard-loading\n```\n\n### 2. Auth Pre-Flight Pattern\n\nPrevent race conditions where Maestro interacts with the UI before auth state resolves. Add a zero-size `auth-loaded` marker that only renders when auth loading completes:\n\n```tsx\n\u002F\u002F In your tab bar or root layout\n{!isLoading && \u003CView testID=\"auth-loaded\" style={{ width: 0, height: 0 }} \u002F>}\n```\n\nThen in every test:\n\n```yaml\n- launchApp\n\n# Prevent XCTest crash on cold boot (iOS)\n- swipe:\n    direction: DOWN\n    duration: 100\n\n# Wait for auth state to resolve\n- extendedWaitUntil:\n    visible:\n      id: \"auth-loaded\"\n    timeout: 15000\n\n# Now safe to interact\n- tapOn:\n    id: \"tab-home\"\n```\n\n### 3. Adaptive Tests (Handle Both Auth States)\n\nTests should work regardless of whether the user is authenticated:\n\n```yaml\n# Auth flow — only runs if login prompt is visible\n- runFlow:\n    when:\n      visible: \"Sign In\"\n    file: flows\u002Fauth-flow.yaml\n\n# Already authenticated — proceed directly\n- runFlow:\n    when:\n      visible:\n        id: \"tab-home\"\n    file: flows\u002Fauthenticated-action.yaml\n```\n\n### 4. Testing Optimistic Updates\n\nUse short timeouts to verify UI changes happen before server response:\n\n```yaml\n# Trigger mutation\n- tapOn:\n    id: \"action-button\"\n\n# OPTIMISTIC: UI must change within 3s (not waiting for server)\n- extendedWaitUntil:\n    visible:\n      id: \"undo-button\"\n    timeout: 3000\n\n# Verify derived UI state\n- extendedWaitUntil:\n    visible:\n      id: \"user-indicator\"\n    timeout: 5000\n```\n\n| Action | Expected Change | Timeout |\n|--------|----------------|---------|\n| Mutation trigger | Button state flips | \u003C 3s |\n| List update | Item appears\u002Fdisappears | \u003C 5s |\n| Re-do action | Proves persistence | \u003C 3s |\n\n### 5. Dismissing Native Alerts\n\nReact Native `Alert.alert()` creates native dialogs that block the UI:\n\n```yaml\n- tapOn:\n    id: \"action-button\"\n\n# Wait for expected state change first\n- extendedWaitUntil:\n    visible:\n      id: \"new-state-element\"\n    timeout: 5000\n\n# Dismiss alert (optional in case it already closed)\n- tapOn:\n    text: \"OK\"\n    optional: true\n\n# Brief delay for alert animation\n- swipe:\n    direction: DOWN\n    duration: 300\n```\n\n### 6. Sub-Flows for Reusability\n\nBreak repeated sequences into sub-flow files:\n\n```\n.maestro\u002F\n├── flows\u002F\n│   ├── auth-and-return.yaml\n│   ├── complete-purchase.yaml\n│   └── verify-result.yaml\n├── smoke-test.yaml\n└── feature-test.yaml\n```\n\n```yaml\n# In main test\n- runFlow:\n    file: flows\u002Fauth-and-return.yaml\n```\n\n### 7. Deep Links (Expo)\n\nUse the Expo scheme from `app.json`, not the bundle ID:\n\n```yaml\n# WRONG\n- openLink: \"com.myapp:\u002F\u002Fprofile\u002Fsettings\"\n\n# CORRECT\n- openLink: \"myapp:\u002F\u002Fprofile\u002Fsettings\"\n```\n\nDeep links must be registered in your app's deep link handler. Unregistered routes silently fail.\n\n### 8. Platform-Specific Logic\n\n```yaml\n- runFlow:\n    when:\n      platform: ios\n    file: flows\u002Fios-specific.yaml\n\n- runFlow:\n    when:\n      platform: android\n    file: flows\u002Fandroid-specific.yaml\n```\n\n### 9. Environment Variables\n\n```yaml\nappId: com.myapp\nenv:\n  TEST_EMAIL: maestro-test@example.com\n  API_BASE_URL: http:\u002F\u002Flocalhost:3000\n---\n- inputText: ${TEST_EMAIL}\n```\n\n### 10. Selector State Properties\n\nUse `enabled`, `selected`, `checked`, and `focused` to target elements by their current state. This is useful for validating interactive element states before or after actions.\n\n```yaml\n# Only tap the submit button if it's enabled\n- tapOn:\n    id: \"submit-button\"\n    enabled: true\n\n# Assert a checkbox is checked\n- assertVisible:\n    id: \"terms-checkbox\"\n    checked: true\n\n# Wait for an input to be focused\n- extendedWaitUntil:\n    visible:\n      id: \"email-input\"\n      focused: true\n    timeout: 3000\n```\n\n| Property | Values | Use Case |\n|----------|--------|----------|\n| `enabled` | `true` \u002F `false` | Buttons that disable during submission or until form is valid |\n| `checked` | `true` \u002F `false` | Checkboxes, toggle switches |\n| `selected` | `true` \u002F `false` | Tab items, segmented controls |\n| `focused` | `true` \u002F `false` | Input fields with auto-focus |\n\n### 11. Relative Position Selectors\n\nDistinguish between similar elements by their spatial relationship to other elements. This is more idiomatic and resilient than index-based selection.\n\n```yaml\n# BAD — fragile, breaks if order changes\n- tapOn:\n    text: \"Add to Basket\"\n    index: 1\n\n# GOOD — contextual, self-documenting\n- tapOn:\n    text: \"Add to Basket\"\n    below:\n      text: \"Awesome Shoes\"\n```\n\nAvailable relative selectors:\n\n```yaml\n# Target element below another\n- tapOn:\n    text: \"Buy Now\"\n    below: \"Product Title\"\n\n# Target element that is a child of a parent\n- tapOn:\n    text: \"Delete\"\n    childOf:\n      id: \"item-card-42\"\n\n# Target a parent that contains a specific child\n- tapOn:\n    containsChild: \"Urgent\"\n\n# Target by multiple descendants\n- tapOn:\n    containsDescendants:\n      - id: title_id\n        text: \"Specific Title\"\n      - \"Another descendant text\"\n\n# Horizontal positioning\n- tapOn:\n    text: \"Edit\"\n    rightOf: \"Username\"\n```\n\n| Selector | Meaning |\n|----------|---------|\n| `below:` | Element is positioned below the referenced element |\n| `above:` | Element is positioned above the referenced element |\n| `leftOf:` | Element is to the left of the referenced element |\n| `rightOf:` | Element is to the right of the referenced element |\n| `childOf:` | Element is a direct child of the referenced parent |\n| `containsChild:` | Element contains a direct child matching the reference |\n| `containsDescendants:` | Element contains all specified descendant elements |\n\n---\n\n## Authentication Testing\n\n### Architecture\n\nTesting OTP or magic-link authentication in E2E requires capturing emails programmatically. The general pattern:\n\n```\n┌─────────────┐     ┌──────────────┐     ┌─────────────────┐\n│  Maestro    │────▶│  Auth        │────▶│  Email Capture  │\n│  Test       │     │  Provider    │     │  Service        │\n└─────────────┘     └──────────────┘     └─────────────────┘\n       │                                        │\n       │         ┌──────────────────────────────┘\n       │         ▼\n       │   ┌─────────────┐\n       └──▶│  REST API   │ ─── GET \u002Fapi\u002Fv1\u002Fmessages\n           │  (email)    │ ─── Extract OTP code\n           └─────────────┘\n```\n\nCommon email capture services: [Mailpit](https:\u002F\u002Fgithub.com\u002Faxllent\u002Fmailpit), [MailHog](https:\u002F\u002Fgithub.com\u002Fmailhog\u002FMailHog), [Ethereal](https:\u002F\u002Fethereal.email\u002F).\n\n### OTP Fetch Script\n\nFetch OTP codes from your email capture service using Maestro's GraalJS runtime:\n\n```javascript\n\u002F\u002F CRITICAL: Maestro uses GraalJS — NO async\u002Fawait, NO fetch()\nvar email = typeof EMAIL !== \"undefined\" ? EMAIL : \"test@example.com\";\nvar emailServiceUrl = typeof EMAIL_SERVICE_URL !== \"undefined\"\n  ? EMAIL_SERVICE_URL : \"http:\u002F\u002Flocalhost:8025\";\n\nvar response = http.get(emailServiceUrl + \"\u002Fapi\u002Fv1\u002Fmessages\");\nif (!response.ok) {\n  throw new Error(\"Failed to fetch emails: \" + response.status);\n}\n\nvar data = json(response.body);\n\u002F\u002F Find the latest email and extract OTP code\nvar body = data.messages[0].Content.Body;\nvar match = body.match(\u002F(\\d{6})\u002F);\noutput.OTP_CODE = match[1];\n```\n\n### OTP Input Strategy\n\nOTP components with auto-focus need individual digit entry. Tap each input before typing:\n\n```yaml\n# Split OTP into digits via helper script\n- runScript:\n    file: scripts\u002Fsplit-otp.js\n    env:\n      OTP_CODE: ${output.OTP_CODE}\n\n# Enter each digit by tapping its input\n- tapOn:\n    id: \"otp-input-0\"\n- inputText: ${output.OTP_0}\n\n- tapOn:\n    id: \"otp-input-1\"\n- inputText: ${output.OTP_1}\n# ... repeat for all digits\n```\n\n> For provider-specific implementations (Supabase + Mailpit, Firebase Auth, Auth0), create a project-level skill that extends this one.\n\n---\n\n## GraalJS Script Rules\n\nMaestro uses the GraalJS runtime. These constraints are non-negotiable:\n\n| Feature | Status |\n|---------|--------|\n| `async\u002Fawait` | **NOT supported** |\n| `fetch()` | **NOT supported** |\n| `http.get()`, `http.post()` | Use these instead |\n| `json()` | Use to parse response bodies |\n| `output.VAR` | Set variables for use in YAML flow |\n| `var` declarations | Required (use `var`, not `const`\u002F`let` for safety) |\n\n```javascript\n\u002F\u002F Script template\nvar response = http.get(\"http:\u002F\u002Flocalhost:8025\u002Fapi\u002Fendpoint\");\nif (!response.ok) {\n  throw new Error(\"Request failed: \" + response.status);\n}\nvar data = json(response.body);\noutput.RESULT = data.value;\n```\n\n---\n\n## Critical Gotchas\n\n### clearState Does NOT Clear iOS Keychain\n\n`clearState: true` clears the app sandbox (UserDefaults, files, caches) but does **NOT** clear the iOS Keychain. Auth tokens stored via `expo-secure-store` (or any Keychain-based storage) persist across `clearState` resets and even app reinstalls.\n\n```yaml\n# WRONG — user may still be authenticated\n- launchApp:\n    clearState: true\n- assertVisible: \"Welcome\"  # Fails if Keychain has tokens\n\n# CORRECT — wait for auth resolution, then adapt\n- launchApp\n- extendedWaitUntil:\n    visible:\n      id: \"auth-loaded\"\n    timeout: 15000\n```\n\n**Rules:**\n- Never rely on `clearState` to produce guest state on iOS\n- For auth tests: skip `clearState`, use `auth-loaded` pre-flight\n- For guest tests: use adaptive flows that handle both states\n- Never assert guest-only UI after `clearState`\n\n**Note:** On Android, `clearState: true` fully resets app data including credentials. This is an iOS-only gotcha.\n\n### XCTest kAXErrorInvalidUIElement Crash (iOS)\n\nThe XCTest driver may crash if Maestro interacts with the accessibility tree before the first render cycle completes on cold boot.\n\n**Fix:** Add a no-op swipe immediately after `launchApp`:\n\n```yaml\n- launchApp\n- swipe:\n    direction: DOWN\n    duration: 100\n```\n\n### API Server Dependency\n\nMobile apps calling backend APIs on localhost need either the full server or a mock server running. Without it, all API-dependent screens show loading spinners or empty states (queries fail silently).\n\n**Fix:** Start a mock API server before running Maestro tests:\n\n```bash\n# Start mock server (serves canned responses on your API port)\nnpx tsx scripts\u002Fmock-api-server.ts &\n\n# Then run tests\nmaestro test .maestro\u002Fmy-test.yaml\n```\n\nCreate a lightweight mock that returns canned JSON for each endpoint your app calls. This is faster and more deterministic than running your full backend.\n\n### Auth-Aware Tab Bars\n\nTab bars that show different tabs for guest vs authenticated users will cause selector failures:\n\n| State | Typical Tabs |\n|-------|-------------|\n| Guest | home, search, cart, profile |\n| Auth | home, feed, create, messages, profile |\n\nOnly assert tabs that exist in both states, or use adaptive `when:` conditions.\n\n---\n\n## Test File Template\n\n```yaml\n# {Feature} {Action} Test\n#\n# Tests: {what this validates}\n# Prerequisites:\n# - Simulator\u002Femulator running with app installed\n# - Backend or mock server running (if API-dependent)\n\nappId: com.myapp\nenv:\n  TEST_EMAIL: maestro-{feature}@example.com\n  EMAIL_SERVICE_URL: http:\u002F\u002Flocalhost:8025\n---\n# ==========================================\n# STEP 1: LAUNCH + AUTH PRE-FLIGHT\n# ==========================================\n\n- launchApp\n\n- swipe:\n    direction: DOWN\n    duration: 100\n\n- extendedWaitUntil:\n    visible:\n      id: \"auth-loaded\"\n    timeout: 15000\n\n- takeScreenshot: 01-initial-state\n\n# ==========================================\n# STEP 2: {ACTION}\n# ==========================================\n\n- tapOn:\n    id: \"target-element\"\n\n# ==========================================\n# STEP 3: VERIFY\n# ==========================================\n\n- extendedWaitUntil:\n    visible:\n      id: \"expected-result\"\n    timeout: 5000\n\n- takeScreenshot: 02-final-state\n```\n\n---\n\n## Folder Structure\n\n```\n.maestro\u002F\n├── README.md                    # Quick reference + testID inventory\n├── config.yaml                  # Shared configuration\n├── flows\u002F                       # Reusable sub-flows\n│   ├── auth-and-return.yaml\n│   ├── complete-action.yaml\n│   └── verify-result.yaml\n├── scripts\u002F                     # GraalJS helpers\n│   ├── fetch-otp.js\n│   └── split-otp.js\n├── smoke-test.yaml              # Guest navigation\n├── auth-signin.yaml             # OTP sign-in flow\n├── feature-screenshots.yaml     # Screenshot capture flows\n└── feature-action.yaml          # Feature-specific tests\n\nscripts\u002F\n├── mock-api-server.ts           # Lightweight mock for E2E\n└── run-e2e.sh                   # Orchestration script\n```\n\n### Naming Conventions\n\n| Type | Pattern | Example |\n|------|---------|---------|\n| Main test | `{feature}-{action}.yaml` | `checkout-purchase.yaml` |\n| Sub-flow | `{action}-{context}.yaml` | `auth-and-return-to-dashboard.yaml` |\n| Script | `{verb}-{noun}.js` | `fetch-otp.js` |\n\n---\n\n## Infrastructure\n\n### Mock Server for API-Dependent Tests\n\nCreate a lightweight mock server that serves canned responses for your API layer. This is faster and more deterministic than running your full backend during E2E tests.\n\n```bash\n# Start mock server before running Maestro tests\nnpx tsx scripts\u002Fmock-api-server.ts &\n```\n\n### Orchestration Script\n\nAutomate the full E2E setup with a shell script that:\n1. Starts backend services (database, auth)\n2. Seeds test data\n3. Starts mock API server\n4. Runs Maestro tests\n5. Cleans up all services\n\n```bash\nbash scripts\u002Frun-e2e.sh\n```\n\n### Seed Data\n\nTests that depend on specific data require seeded databases. Keep seed scripts alongside your test infrastructure and run them before each test suite.\n\n---\n\n## Android-Specific Patterns\n\n### Emulator Setup\n\nAndroid tests require an emulator or a USB-connected physical device. Maestro auto-detects connected devices.\n\n```bash\n# List available system images\nsdkmanager --list | grep system-images\n\n# Create emulator\navdmanager create avd -n maestro_test \\\n  -k \"system-images;android-34;google_apis;arm64-v8a\"\n\n# Start emulator\nemulator -avd maestro_test\n```\n\n### iOS vs Android Differences\n\n| Aspect | iOS | Android |\n|--------|-----|---------|\n| Device type | Simulator only (no physical) | Emulator + physical via ADB |\n| `clearState` | Does NOT clear Keychain | Fully resets app data |\n| Cold boot crash | XCTest kAXError (add swipe delay) | No equivalent issue |\n| Performance | Runs natively (fast) | ARM emulation (slower on x86) |\n| Permission dialogs | System alerts | System dialogs with different text |\n\n### ADB Debugging\n\n```bash\nadb devices                                    # List connected devices\nadb shell am start -n com.myapp\u002F.MainActivity  # Launch app\nadb logcat | grep Maestro                      # Filter Maestro logs\nadb shell input keyevent 82                    # Unlock screen\n```\n\n### Android Permission Handling\n\nAndroid permissions appear as system dialogs. Dismiss with optional taps:\n\n```yaml\n- tapOn:\n    text: \"Allow\"\n    optional: true\n\n- tapOn:\n    text: \"While using the app\"\n    optional: true\n```\n\n---\n\n## CI\u002FCD Integration\n\n### GitHub Actions with Maestro Cloud\n\nMaestro Cloud provides real devices in CI without local simulators. Use the official action:\n\n```yaml\nname: Mobile E2E Tests\non:\n  push:\n    branches: [main]\n  pull_request:\n    branches: [main]\n\njobs:\n  maestro-e2e:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n\n      # Build Android APK\n      - uses: actions\u002Fsetup-java@v4\n        with:\n          java-version: '17'\n          distribution: 'temurin'\n\n      - name: Build Android APK\n        run: |\n          cd apps\u002Fmobile\n          npx expo prebuild --platform android --no-install\n          cd android && .\u002Fgradlew assembleRelease\n\n      - name: Run Maestro Cloud Tests\n        id: maestro\n        uses: mobile-dev-inc\u002Faction-maestro-cloud@v2\n        with:\n          api-key: ${{ secrets.MAESTRO_API_KEY }}\n          app-file: apps\u002Fmobile\u002Fandroid\u002Fapp\u002Fbuild\u002Foutputs\u002Fapk\u002Frelease\u002Fapp-release.apk\n          workspace: .maestro\n          include-tags: ci\n\n      # Access results\n      # ${{ steps.maestro.outputs.MAESTRO_CLOUD_CONSOLE_URL }}\n      # ${{ steps.maestro.outputs.MAESTRO_CLOUD_UPLOAD_STATUS }}\n      # ${{ steps.maestro.outputs.MAESTRO_CLOUD_FLOW_RESULTS }}\n```\n\n### Tag-Based Flow Filtering\n\nUse tags to control which tests run in CI vs locally:\n\n```yaml\n# In your flow file header\nappId: com.myapp\ntags:\n  - ci\n  - smoke\n---\n- launchApp\n# ... test steps\n```\n\n```bash\n# Run only CI-tagged flows locally\nmaestro test --include-tags ci .maestro\u002F\n\n# Exclude work-in-progress flows\nmaestro test --exclude-tags wip .maestro\u002F\n```\n\n### Local CI with Docker (Android Only)\n\n```dockerfile\nFROM openjdk:17-slim\n\nRUN curl -Ls \"https:\u002F\u002Fget.maestro.mobile.dev\" | bash\nENV PATH=\"\u002Froot\u002F.maestro\u002Fbin:${PATH}\"\n\nCOPY .maestro\u002F \u002Fapp\u002F.maestro\u002F\nWORKDIR \u002Fapp\n\nCMD [\"maestro\", \"test\", \".maestro\u002F\"]\n```\n\n**Note:** iOS tests cannot run in Docker (requires macOS). Use Maestro Cloud for iOS in CI.\n\n---\n\n## Maestro Cloud\n\n[Maestro Cloud](https:\u002F\u002Fcloud.maestro.dev\u002F) runs tests on real devices without local simulator setup.\n\n### Setup\n\n1. Create account at cloud.maestro.dev\n2. Generate API key from dashboard\n3. Store as `MAESTRO_API_KEY` secret in your CI provider\n\n### Running from CLI\n\n```bash\n# Upload and run on Maestro Cloud\nmaestro cloud --api-key $MAESTRO_API_KEY \\\n  --app-file .\u002Fapp-release.apk \\\n  .maestro\u002F\n\n# With tag filtering\nmaestro cloud --api-key $MAESTRO_API_KEY \\\n  --app-file .\u002Fapp-release.apk \\\n  --include-tags smoke \\\n  .maestro\u002F\n```\n\n### Key Points\n\n- **iOS testing**: Supported on Maestro Cloud (not on local physical devices)\n- **Android testing**: Both local physical devices and Maestro Cloud\n- **Results**: Dashboard with video recordings, logs, and screenshots\n- **CI outputs**: `MAESTRO_CLOUD_CONSOLE_URL`, `MAESTRO_CLOUD_FLOW_RESULTS`\n\n---\n\n## Maestro MCP Server\n\nThe [Maestro MCP server](https:\u002F\u002Fdocs.maestro.dev\u002Fgetting-started\u002Fmaestro-mcp) exposes Maestro's full command set as Model Context Protocol tools, letting AI agents **execute tests and interact with devices directly** — not just write YAML.\n\n### How It Complements This Skill\n\n| | **This Skill** | **Maestro MCP** |\n|---|---|---|\n| **Role** | Teaches correct patterns | Provides runtime execution |\n| **Layer** | Authoring (write good YAML) | Execution (run, tap, assert, screenshot) |\n| **Output** | Better test files | Live device interaction |\n\nUse both together: this skill ensures the AI writes correct tests; the MCP lets it run them immediately, see failures, and iterate.\n\n### Setup\n\nThe MCP ships with the Maestro CLI — no extra install needed:\n\n```bash\n# Verify it's available\nmaestro mcp\n```\n\n**Claude Code** — add to project `.mcp.json` or global settings:\n\n```json\n{\n  \"mcpServers\": {\n    \"maestro\": {\n      \"command\": \"maestro\",\n      \"args\": [\"mcp\"]\n    }\n  }\n}\n```\n\n**Claude Desktop** — add to `~\u002FLibrary\u002FApplication Support\u002FClaude\u002Fclaude_desktop_config.json` (macOS):\n\n```json\n{\n  \"mcpServers\": {\n    \"maestro\": {\n      \"command\": \"maestro\",\n      \"args\": [\"mcp\"]\n    }\n  }\n}\n```\n\nAlso supported on Cursor, Windsurf, VS Code, and JetBrains IDEs. See the [Maestro MCP docs](https:\u002F\u002Fdocs.maestro.dev\u002Fgetting-started\u002Fmaestro-mcp) for IDE-specific setup.\n\n### Key Capabilities\n\nThe MCP server exposes 47 tools organized by category:\n\n| Category | Tools | Examples |\n|----------|-------|---------|\n| UI Interaction | tap, swipe, scroll, long press | `tapOn`, `scrollUntilVisible` |\n| Text Input | type, erase, paste, copy | `inputText`, `eraseText` |\n| Assertions | visibility, AI-powered | `assertVisible`, `assertWithAI` |\n| App Lifecycle | launch, stop, clear state | `launchApp`, `clearState` |\n| Device Control | location, orientation, airplane | `setLocation`, `hideKeyboard` |\n| Flow Control | run flows, repeat, eval scripts | `runFlow`, `evalScript` |\n| Media | screenshots, recording | `takeScreenshot`, `startRecording` |\n| AI-Powered | visual assertions, defect detection | `assertWithAI`, `assertNoDefectsWithAI` |\n\n### Write-Run-Fix Loop\n\nWith both this skill and the MCP active, the AI can:\n\n1. **Write** a test YAML using patterns from this skill\n2. **Run** it via MCP's `runFlow` \u002F `launchApp` + interaction tools\n3. **See** failures via screenshots and assertions\n4. **Fix** the YAML and re-run — all in one conversation\n\n---\n\n## Debugging\n\n```bash\nmaestro test --debug .maestro\u002Ftest.yaml   # Step through interactively\nmaestro record .maestro\u002Ftest.yaml          # Record as video\nmaestro studio                             # Interactive UI builder\nmaestro hierarchy                          # View element tree\n```\n\nScreenshots saved to `~\u002F.maestro\u002Ftests\u002F{timestamp}\u002F`.\n\n---\n\n## Checklist for New Tests\n\n```\n[ ] Unique test email (maestro-{feature}@example.com)\n[ ] Selector strategy chosen (testID for i18n apps, text for single-language — see Pattern 1)\n[ ] Selectors use state properties where relevant (enabled, checked — see Pattern 10)\n[ ] Similar elements distinguished with relative selectors, not index (see Pattern 11)\n[ ] Auth pre-flight pattern used (auth-loaded)\n[ ] Post-launch swipe added (iOS crash prevention)\n[ ] Both auth states handled (adaptive flows)\n[ ] Native alerts dismissed after mutations\n[ ] Short timeouts for optimistic updates (3-5s)\n[ ] Sub-flows created for reusable sequences\n[ ] Descriptive screenshots at key points\n[ ] Header comment with prerequisites\n[ ] Added to README.md test table\n[ ] Mock API server started if backend-dependent\n[ ] Tags added for CI filtering (ci, smoke, wip)\n```\n\n---\n\n## Common Errors\n\n| Error | Cause | Fix |\n|-------|-------|-----|\n| \"Unable to locate Java Runtime\" | Java not in PATH | `export JAVA_HOME=\u002Fopt\u002Fhomebrew\u002Fopt\u002Fopenjdk@17\u002F...` |\n| \"Element not found\" after tap | Native alert blocking | Add `tapOn: text: \"OK\" optional: true` |\n| OTP digits not entering | Auto-focus interference | Use individual `otp-input-N` testIDs |\n| Test passes but nothing happened | `optional: true` misused | Only use optional for truly optional actions |\n| \"Assertion is false\" on visibility | Element not rendered yet | Increase timeout or verify testID exists |\n| Script output empty | Wrong JS API | Use `http.get()` not `fetch()` |\n| Auth state inconsistent after clearState | iOS Keychain not cleared | Don't use `clearState`, use adaptive flows |\n| kAXErrorInvalidUIElement crash | Cold boot race (iOS) | Add post-launch swipe delay |\n| Loading spinners \u002F empty screens | No API server running | Start mock API server before tests |\n| Permission dialog blocking (Android) | System dialog not dismissed | Add `tapOn: text: \"Allow\" optional: true` |\n\n---\n\n## Resources\n\n- [Maestro Documentation](https:\u002F\u002Fdocs.maestro.dev\u002F)\n- [Maestro Selectors Reference](https:\u002F\u002Fdocs.maestro.dev\u002Fapi-reference\u002Fselectors)\n- [Maestro Cloud](https:\u002F\u002Fcloud.maestro.dev\u002F)\n- [Maestro MCP Server](https:\u002F\u002Fdocs.maestro.dev\u002Fgetting-started\u002Fmaestro-mcp)\n- [Maestro GitHub](https:\u002F\u002Fgithub.com\u002Fmobile-dev-inc\u002FMaestro)\n- [GraalJS HTTP Requests](https:\u002F\u002Fdocs.maestro.dev\u002Fadvanced\u002Fjavascript\u002Fmake-http-s-requests)\n- [Conditions & Adaptive Flows](https:\u002F\u002Fdocs.maestro.dev\u002Fadvanced\u002Fconditions)\n- [GitHub Actions Integration](https:\u002F\u002Fdocs.maestro.dev\u002Fcloud\u002Fci-integration\u002Fgithub-actions)\n- [BrowserStack: Maestro Testing Guide](https:\u002F\u002Fwww.browserstack.com\u002Fguide\u002Fmaestro-testing)\n- [DEV.to: Tips & Tricks for Maestro + React Native](https:\u002F\u002Fdev.to\u002Fretyui\u002Fbest-tips-tricks-for-e2e-maestro-with-react-native-2kaa)\n",{"name":5,"tags":44,"author":52,"license":15,"version":53,"category":54,"description":7,"context_limit":55,"requires_tools":56,"progressive_disclosure":57},[27,45,23,20,46,22,47,48,49,50,51],"expo","e2e","ios","android","yaml","ci-cd","mcp","tovimx","1.1.0","toolchain",900,[],{"entry_point":58,"token_estimate":62},{"summary":59,"quick_start":60,"when_to_use":61},"Write reliable Maestro mobile E2E tests with declarative YAML flows, testID selectors, auth-aware adaptive patterns, and optimistic update verification","1. Install Maestro CLI 2. Add testID props to components 3. Write YAML flows with testID selectors 4. Use auth-loaded pre-flight pattern 5. Start mock API server for backend-dependent tests 6. Run with maestro test","When writing mobile E2E tests, debugging flaky flows, testing authentication, verifying optimistic updates, capturing screenshots, or setting up Maestro CI for React Native\u002FExpo apps",{"full":63,"entry":64},9000,150,"main","e6ee720f466a8344a52abd87679191fadde3b63f",".agents\u002Fskills\u002Fmaestro-mobile-testing","https:\u002F\u002Fgithub.com\u002Fpatinaproject\u002Fskills","https:\u002F\u002Fgithub.com\u002Fpatinaproject","https:\u002F\u002Fwww.patinaproject.com","The best way to pick your next pair of boots or shoes.","2026-11-12 00:44:02",{"source":8,"skillName":5,"commands":74,"prompt":84,"zipAvailable":85},[75,78,81],{"tool":76,"command":77},"npx","npx skills add patinaproject\u002Fskills --skill maestro-mobile-testing",{"tool":79,"command":80},"bunx","bunx skills add patinaproject\u002Fskills --skill maestro-mobile-testing",{"tool":82,"command":83},"pnpm","pnpm dlx skills add patinaproject\u002Fskills --skill maestro-mobile-testing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fpatinaproject\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fmaestro-mobile-testing\u002FSKILL.md",true,[],[88,96,103,110,128,138],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":95},"01M72KHWMPNYS336P41Y6VEDSH","grilling","Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.","https:\u002F\u002Fgithub.com\u002Fpatinaproject\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fwork\u002Fskills\u002Fgrilling\u002FSKILL.md",[],[],"2026-11-10 22:39:42",{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":95},"01M72KBHG0R062ZYH7J06H8YV1","social","When the user wants help creating, scheduling, or optimizing social media content for LinkedIn, Twitter\u002FX, Instagram, TikTok, Facebook, or other platforms, or wants to do social listening and engagement triage. Also use when the user mentions 'LinkedIn post,' 'Twitter thread,' 'social media,' 'content calendar,' 'social scheduling,' 'engagement,' 'viral content,' 'what should I post,' 'repurpose this content,' 'tweet ideas,' 'LinkedIn carousel,' 'social media strategy,' 'grow my following,' 'TikTok video,' 'Reels,' 'Shorts,' 'video script,' 'video hook,' 'short-form video,' 'create a reel,' 'social listening,' 'brand mentions,' 'competitor monitoring,' 'top posts to comment on,' 'find people asking for,' 'carousel,' 'slide-by-slide,' or 'document post.' Use this for social media content creation, repurposing, scheduling, short-form video scripting, and social listening. For broader content strategy, see content-strategy. For paid ads, see ad-creative. For earned media, see public-relations.","https:\u002F\u002Fgithub.com\u002Fpatinaproject\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsocial\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":95},"01M72KDQJR99954NE224VB3KZ2","code-review","Review the changes since a fixed point (commit, branch, tag, or merge-base) along five axes: Standards (does the code follow this repo's documented coding standards?), Spec (does the code match what the originating issue\u002Fspec asked for?), Evidence (does each claim in the pull request have evidence that shows it?), Bugs (does the changed code have logic errors, unhandled states, races, or regressions?), and Security (does the change open injection, auth, secret, input, or CI workflow holes?). Runs the reviews in parallel sub-agents, tags every finding Important, Nit, or Pre-existing, and reports them side by side with what blocks merge. Given an earlier reviewed head and its findings, it reviews only the newer commits, rechecks the earlier findings, and never repeats one. Use when the user wants to review a branch, a PR, work-in-progress changes, or asks to \"review since X\".","https:\u002F\u002Fgithub.com\u002Fpatinaproject\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fcode\u002Fskills\u002Fcode-review\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":39},"01M71ESEDVHD9EXN6787XHP7HD","writing-for-pstack","Write or tighten an operator prompt for a patina-mode run. Use when the operator asks to write, revise, or review a prompt that will be passed to patina-mode.","https:\u002F\u002Fgithub.com\u002Fpatinaproject\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fwork\u002Fskills\u002Fwriting-for-pstack\u002FSKILL.md",[],[117,118,119,37,120,29,121,33,122,123,124,125,126,127],"writing for pstack","for","pstack","operator","mode","review","use","tighten","prompt","when","revise",{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":39},"01M71ESCJ0SSJFFENF8HYDKBTJ","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002Fpatinaproject\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fwork\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[],[118,135,37,126,136,123,137],"writing for agents","documents","editing",{"skillNo":139,"name":140,"nameZh":6,"description":141,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":39},"01M71ESA1NN9WVMD2HA5Z1RRDY","wizard","Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.","https:\u002F\u002Fgithub.com\u002Fpatinaproject\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fwork\u002Fskills\u002Fwizard\u002FSKILL.md",[],[140,126,145,146,118,147,24,148,149,123,150,151,152,153,154,155,156,157,158,159],"running","setting","up","provisioning infrastructure","only","invoke","secrets","Bash","one","interactive","can","credentials","dashboard","generate","human"]