xcuitest

xcuitest is a skill for Claude Code from Prisma-Labs-Dev/apple-skills. It costs 33 tokens per session (1,397 once invoked), scanned A, original, MIT.

A reference for writing XCUITest tests in Swift 6. XCUITest is Apple's framework for testing an app's user interface by finding elements, interacting with them, and checking results.

In plain words
What is it for?
Use it to test iPhone, iPad, or other Apple app interfaces. It covers element queries, taps, text entry, gestures, waits, checks, and failure screenshots.
Why use it?
It collects patterns for reliable UI tests, including waiting for elements, handling Swift 6 concurrency, making assertions, and attaching screenshots when tests fail.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: agent in frontmatter.

Part of the apple-skills plugin — 36 skills shipped together

not rated 325repo +2 28d ago A scan Socket: passSnyk: warnSkillSpector: pass 33 tokens original MIT

Good fit Use it to test iPhone, iPad, or other Apple app interfaces. It covers element queries, taps, text entry, gestures, waits, checks, and failure screenshots.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/prisma-labs-dev/apple-skills/xcuitest
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Prisma-Labs-Dev/apple-skills --skill xcuitest
Clone the repo
git clone --depth 1 https://github.com/Prisma-Labs-Dev/apple-skills

Made for: Claude Code.

Or install apple-skills, the plugin that ships this one along with the rest of its 36 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for xcuitest

README.md
[![agentmods](https://agentmods.dev/badge/skills/prisma-labs-dev/apple-skills/xcuitest/github.svg)](https://agentmods.dev/skills/prisma-labs-dev/apple-skills/xcuitest)
Your own site
<a href="https://agentmods.dev/skills/prisma-labs-dev/apple-skills/xcuitest"><img src="https://agentmods.dev/badge/skills/prisma-labs-dev/apple-skills/xcuitest/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for xcuitest

Your own site · 80×15
<a href="https://agentmods.dev/skills/prisma-labs-dev/apple-skills/xcuitest"><img src="https://agentmods.dev/badge/skills/prisma-labs-dev/apple-skills/xcuitest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,397 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 5 Jul 2026
  • Snyk warn 5 Jul 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.01397
Opus 5 $0.00016 $0.00698
Sonnet 5 $0.00007 $0.00279
Haiku 4.5 $0.00003 $0.00140

Measured 9d ago against content hash dd47c65ea9c3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

xcuitest scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/xcuitest/SKILL.md · 99 lines

How it starts

The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.

XCUITest Reference

Comprehensive reference for writing reliable XCUITest UI tests in Swift 6.

Quick Reference

// Basic test structure
@MainActor
final class MyUITests: XCTestCase {
    var app: XCUIApplication!

    override func setUp() {
        super.setUp()
        continueAfterFailure = false
        app = XCUIApplication()
        app.launch()
    }

    func testExample() {
        let button = app.buttons["Submit"]
        XCTAssertTrue(button.waitForExistence(timeout: 5))
        button.tap()
    }
}

Topic Guides

Curated guidance with code examples (grep-friendly):

File Content
element-queries.md Core API classes: XCUIApplication, XCUIElement, XCUIElementQuery, XCUICoordinate
interactions.md Taps, presses, text input, swipes, coordinate-based and other gestures
waiting.md waitForExistence, XCTWaiter, non-existence, property waits, Xcode 26 KeyPath waits
swift6-concurrency.md Swift 6 strict concurrency: @MainActor test classes, async setUp/tearDown, nonisolated
assertions.md XCTAssert patterns, custom messages, existence checks
screenshots.md Screenshots, XCTAttachment, screenshot-on-failure, extracting from .xcresult
launch-arguments.md Launch arguments/environment, UserDefaults override, localization and accessibility testing
permissions.md resetAuthorizationStatus, XCUIProtectedResource, interruption monitors, springboard/system alerts
test-helpers.md Page Object Model, reusable helpers, timeout constants
troubleshooting.md Common failures (element not found, flaky tests) and what's new in Xcode 26 / iOS 26
patterns.md Advanced patterns: base test class, system dialogs, scroll/wait, debugging, test organization

Downloaded Reference Files

Read the full file on GitHub · 99 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 99 lines · 33 tokens per session scan A dd47c65ea9c3

Subscribe to this mod's changes

xcuitest is a skill published in the GitHub repository Prisma-Labs-Dev/apple-skills (325 stars, last pushed 28d ago), licensed MIT. It adds 33 tokens to every session and 1,397 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

android-ui-journey-testing

XML-specified Android UI journey testing, interactive step execution, assertion verification, and JSON outcome reporting.

sickn33/agentic-awesome-skills · 27 tokens

android_ui_verification

Automated end-to-end UI testing and verification on an Android Emulator using ADB.

sickn33/agentic-awesome-skills · 22 tokens

solopi-ai

A command-line framework for testing Android apps and devices with SoloPi, including on-device or cloud AI decision models. It manages devices, test cases, recorded interactions, replays, performance history, and evidence.

alipay/SoloPi · 127 tokens

dogfood

Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to dogfood, QA, exploratory test, find issues, bug hunt, or test this app on mobile.

callstack/agent-device · 55 tokens

eas-simulator

EAS service (paid). Run and control a user's app on a remote iOS/Android simulator hosted on EAS cloud. Read before running any eas simulator: commands - it has the current syntax for this experimental API. Use whenever the user needs a simulator they can't run locally - 'run my app on a cloud simulator', 'use eas…

expo/skills · 249 tokens

flutter-add-integration-test

Configures Flutter Driver for app interaction and converts MCP actions into permanent integration tests. Use when adding integration testing to a project, exploring UI components via MCP, or automating user flows with the integrationtest package.

flutter/agent-plugins · 48 tokens