ワンクリックで
xcuitest
API reference: XCUITest. Query for element queries, waiting patterns, Swift 6 @MainActor, assertions, screenshots, launch arguments.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
API reference: XCUITest. Query for element queries, waiting patterns, Swift 6 @MainActor, assertions, screenshots, launch arguments.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Best practices and example-driven guidance for building SwiftUI views and components, including navigation hierarchies, custom view modifiers, and responsive layouts with stacks and grids. Use when creating or refactoring SwiftUI UI, designing tab architecture with TabView, composing screens with VStack/HStack, managing @State or @Binding, building declarative iOS interfaces, or needing component-specific patterns and examples.
Fact lookup: Apple Human Interface Guidelines corpus (greppable markdown). Query on demand for accessibility and ergonomic minimums (hit-target sizes, Dynamic Type), platform terminology, system component capabilities, and App-Review-relevant conventions. Not design direction.
Start here for any iOS or SwiftUI task. Coordinates best-practice guides, correctness checks, and full Apple API references. Use before navigating to other Apple skills — for building, reviewing, refactoring, or debugging iOS apps.
Refactor and review SwiftUI view files with strong defaults for small dedicated subviews, MV-over-MVVM data flow, stable view trees, explicit dependency injection, and correct Observation usage. Use when cleaning up a SwiftUI view, splitting long bodies, removing inline actions or side effects, reducing computed `some View` helpers, or standardizing `@Observable` and view model initialization patterns.
UX and visual design consultant for iOS apps using Apple's Liquid Glass design system (iOS 26+). Use when asking about element positioning, layout decisions, visual hierarchy, or whether a design choice is "Apple-approved." Provides design rationale and guidance—not code. Helps create Apple Design Award-worthy apps.
Production-grade SwiftUI with Apple Design Award-quality aesthetics. Use when building visually striking iOS interfaces — screens, components, redesigns. Screenshot-driven visual iteration, Liquid Glass (iOS 26+), bold design direction. For design advice without code, use ios-design-consultant instead.
| name | xcuitest |
| user-invocable | true |
| description | API reference: XCUITest. Query for element queries, waiting patterns, Swift 6 @MainActor, assertions, screenshots, launch arguments. |
| context | fork |
| agent | Explore |
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.