xcuitest

xcuitest is a skill for Claude Code from aks-builds/quality-skills. It costs 122 tokens per session (2,358 once invoked), scanned A, original, MIT.

A guide and specialist for XCUITest, Apple's framework for automating the user interface of native iPhone and iPad apps.

In plain words
What is it for?
Use it to design, write, debug, or stabilize Swift or Objective-C iOS UI tests and run them through Xcode, simulators, real devices, or macOS-based continuous integration.
Why use it?
UI tests can be unreliable when app structure, accessibility labels, build settings, or simulator and device environments are not considered.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the quality-skills plugin — 57 skills shipped together

Good fit Use it to design, write, debug, or stabilize Swift or Objective-C iOS UI tests and run them through Xcode, simulators, real devices, or macOS-based continuous integration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aks-builds/quality-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 aks-builds/quality-skills --skill xcuitest
Clone the repo
git clone --depth 1 https://github.com/aks-builds/quality-skills

Made for: Claude Code.

Or install quality-skills, the plugin that ships this one along with the rest of its 57 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/aks-builds/quality-skills/xcuitest/github.svg)](https://agentmods.dev/skills/aks-builds/quality-skills/xcuitest)
Your own site
<a href="https://agentmods.dev/skills/aks-builds/quality-skills/xcuitest"><img src="https://agentmods.dev/badge/skills/aks-builds/quality-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/aks-builds/quality-skills/xcuitest"><img src="https://agentmods.dev/badge/skills/aks-builds/quality-skills/xcuitest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,358 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.
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.00122 $0.02358
Opus 5 $0.00061 $0.01179
Sonnet 5 $0.00024 $0.00472
Haiku 4.5 $0.00012 $0.00236

Measured 11d ago against content hash 6379cc3f242a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 11d 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 · 241 lines

How it starts

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

XCUITest (iOS)

You are an expert in XCUITest — Apple's native UI testing framework, built on XCTest. Your goal is to help engineers write fast, reliable iOS UI tests, design accessible apps that test well, and run XCUITest at scale. Don't fabricate XCTest assertion names, XCUIApplication methods, or xcodebuild/simctl flags. When uncertain, point the reader to Apple's developer documentation.

Initial Assessment

Check .agents/qa-context.md (fallback: .claude/qa-context.md) before answering. Pay attention to:

  • iOS only? — XCUITest is iOS/iPadOS-specific. For cross-platform, mention Appium (which uses the XCUITest driver under the hood on iOS).
  • Language — Swift is standard; Objective-C is supported but rare for new tests.
  • App architecture — UIKit vs SwiftUI affects accessibility traits and element identification.
  • Build system — Xcode project / SPM / Tuist / xcconfig matrix.
  • CI host — macOS-only. Xcode Cloud, GitHub Actions macOS runner, Bitrise, CircleCI Mac, BrowserStack / Sauce / AWS Device Farm.

If the file does not exist, ask: deployment target / minimum iOS version, UIKit / SwiftUI / mixed, simulator-only or real-device, CI host.


Why XCUITest

  • Native to Apple's toolchain — integrates with Xcode, runs on real devices and simulators, included in the iOS developer kit.
  • Black-box but fast — runs out-of-process from the app, but Apple's instrumentation is well-tuned.
  • Accessibility-driven — the same identifiers that make the app accessible make tests stable.
  • Built into Xcode — record interactions, view element trees, snapshot tests in Xcode's Test Navigator.

When not to use XCUITest:

  • Cross-platform team → Appium.
  • React Native team → Detox.
  • Headless / non-Mac CI → impossible; XCUITest requires macOS.
  • Simple repetitive flows where YAML is more practical → Maestro.

Project setup

A UI test target sits alongside the app target in Xcode:

MyApp.xcodeproj
├── MyApp                (app target)
├── MyAppTests           (unit tests — XCTest)
└── MyAppUITests         (UI tests — XCTest + XCUITest)

Read the full file on GitHub · 241 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 241 lines · 122 tokens per session scan A 6379cc3f242a

Subscribe to this mod's changes

xcuitest is a skill published in the GitHub repository aks-builds/quality-skills (2 stars, last pushed yesterday), licensed MIT. It adds 122 tokens to every session and 2,358 once invoked, about $0.0006 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-31.

Related

Other skills, from other repositories

shaft-accessibility-testing

Use when testing web or mobile accessibility for WCAG conformance, keyboard and focus behavior, semantics, errors, or user impact.

ShaftHQ/SHAFT_ENGINE · 31 tokens

automated-e2e-testing

A workflow for turning manual web-app test cases into Playwright end-to-end tests and running them. End-to-end tests check a complete user flow through the website.

fishzjp/qa-skills · 112 tokens

qa

A complete software-testing workflow that moves from understanding a requirement through strategy, test cases, review, execution, bug analysis, regression testing, and a report.

fishzjp/qa-skills · 99 tokens

execute

Run the generated Playwright tests and summarize pass/fail results. Use when the user wants to run the tests produced by /verefi:implement, check whether a test plan's acceptance criteria are met, or debug failing Verefi-generated tests.

philchen00/verefi · 51 tokens

xcode-testing-workflow

Guide Swift Testing, XCTest, XCUITest, XCUIAutomation-oriented mechanics, code coverage, xctestplan matrices, accessibility-verification follow-through, test filtering, retries, diagnostics, and test-specific fallback work in existing Xcode-managed projects and workspaces. Use when Xcode-aware execution is needed and…

gaelic-ghost/socket · 81 tokens

appium-python-expert

Specialist skill for mobile E2E testing with Appium 2.x + Python (pytest) for Android and iOS. Use this skill whenever the user asks about: setting up Appium with Python, writing mobile test cases, configuring Android/iOS drivers (UIAutomator2, XCUITest), implementing Page Object Model for mobile, running tests with…

jmr85/e2e-agent-skills · 158 tokens