/apple-skills:xcuitestfrom apple-skills
Provides XCUITest API reference with guides for element queries, waiting patterns, Swift 6 concurrency, assertions, screenshots, and launch arguments.
Ships in apple-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Comprehensive reference for writing reliable XCUITest UI tests in Swift 6.
// 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()
}
}
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 |
Apple documentation pages available locally:
| File | Content |
|---|---|
| xctest-index.md | Full XCTest framework index |
| xcuiautomation-index.md | Full XCUIAutomation framework index |
| xcuiapplication.md | XCUIApplication class |
| xcuielement.md | XCUIElement class |
| xcuielementquery.md | XCUIElementQuery class |
| xcuicoordinate.md | XCUICoordinate class |
| xcuiprotectedresource.md | XCUIProtectedResource enum |
| xcuiscreenshot.md | XCUIScreenshot class |
.md files first.SKILL.md frontmatter, then grep their local files. This is faster and uses less context than fetching new docs from the internet.sosumi.ai Markdown mirror. For example, /documentation/xcuiautomation/xcuielement maps to https://sosumi.ai/documentation/xcuiautomation/xcuielement.assertions.md (opens in a new tab)element-queries.md (opens in a new tab)interactions.md (opens in a new tab)launch-arguments.md (opens in a new tab)patterns.md (opens in a new tab)permissions.md (opens in a new tab)screenshots.md (opens in a new tab)swift6-concurrency.md (opens in a new tab)test-helpers.md (opens in a new tab)troubleshooting.md (opens in a new tab)waiting.md (opens in a new tab)xctest-index.md (opens in a new tab)xcuiapplication.md (opens in a new tab)xcuiautomation-index.md (opens in a new tab)xcuicoordinate.md (opens in a new tab)xcuielement.md (opens in a new tab)xcuielementquery.md (opens in a new tab)xcuiprotectedresource.md (opens in a new tab)xcuiscreenshot.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Explore), in the background29 skills in this plugin
/apple-asoOptimize Apple App Store metadata in store.config.json for ASO (App Store Optimization). Use when working with store.config.json, App Store keywords, titles, subtitles, descriptions, or localizing app metadata. Helps maximize app visibility and downloads./apple-docs-indexIndex of Apple developer documentation for iOS, macOS, and related frameworks. Use when looking up what APIs exist in a framework, browsing available documentation, or deciding what docs to fetch. Covers SwiftUI, UIKit, Core Animation (QuartzCore), XCTest, HealthKit, Combine, SwiftData, and more./backgroundtasksAPI reference: BackgroundTasks. Query for BGTaskScheduler, app refresh, background processing./combineAPI reference: Combine. Query for publishers, subscribers, operators, async data streams./core-animationAPI reference: Core Animation (QuartzCore). Query for CALayer, CAAnimation, CABasicAnimation, CAKeyframeAnimation, CASpringAnimation, CATransaction, CAShapeLayer, CAGradientLayer, CAEmitterLayer, CATransform3D, CADisplayLink./corehapticsAPI reference: Core Haptics. Query for CHHapticEngine, haptic patterns, tactile feedback.npx claudepluginhub prisma-labs-dev/apple-skills --plugin apple-skillsOther plugins' skills for the same job