Borrowing it
Nothing to install: this file belongs to DebugSwift/XcodeBazelMCP. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/DebugSwift/XcodeBazelMCP/main/.agents/skills/device-and-ui/SKILL.mdgit clone --depth 1 https://github.com/DebugSwift/XcodeBazelMCPWrote 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.
[](https://agentmods.dev/skills/debugswift/xcodebazelmcp/device-and-ui)<a href="https://agentmods.dev/skills/debugswift/xcodebazelmcp/device-and-ui"><img src="https://agentmods.dev/badge/skills/debugswift/xcodebazelmcp/device-and-ui/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.
<a href="https://agentmods.dev/skills/debugswift/xcodebazelmcp/device-and-ui"><img src="https://agentmods.dev/badge/skills/debugswift/xcodebazelmcp/device-and-ui.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00047 | $0.01933 |
| Opus 5.5 | $0.00019 | $0.00773 |
| Sonnet 5.5 | $0.00009 | $0.00387 |
| Haiku 4.5 | $0.00005 | $0.00193 |
Grade B, and why
device-and-ui scanned grade B with 1 finding 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 2mo 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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
2. **Screenshot & log tools depend on `libimobiledevice` or `pymobiledevice3`**, which cannot access the CoreDevice tunnel without `sudo pymobiledevice3 remote tunneld` running in a separate terminal. How it starts
The opening of the file, as written. The whole thing — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Device & UI Automation
Physical Device Commands (via xcrun devicectl)
All physical-device interactions use Apple's CoreDevice framework through xcrun devicectl. This is the only reliable CLI for iOS 17+ / macOS 15+ (Sonoma/Tahoe) devices.
Tool Summary
| Tool | Core function | Status |
|---|---|---|
bazel_ios_list_devices |
listDevices() → devicectl list devices |
✅ Stable |
bazel_ios_device_info |
deviceInfo() → devicectl device info details |
✅ Stable |
bazel_ios_device_build_and_run |
Build + install + launch chain | ✅ Stable |
bazel_ios_device_install_app |
installAppOnDevice() → devicectl device install app |
✅ Stable |
bazel_ios_device_launch_app |
launchAppOnDevice() → devicectl device process launch |
✅ Stable |
bazel_ios_device_stop_app |
terminateAppOnDevice() → lookup PID via apps+procs, then devicectl device process terminate --pid |
✅ Stable |
bazel_ios_device_screenshot |
screenshotDevice() → pymobiledevice3 > idevicescreenshot -n > idevicescreenshot |
⚠️ See connectivity notes |
bazel_ios_device_log_start/stop |
startDeviceLogCapture() → pymobiledevice3 > idevicesyslog |
⚠️ See connectivity notes |
bazel_ios_device_test |
bazel test with --test_arg=--destination id=<UDID> |
✅ Stable |
bazel_ios_device_pair/unpair |
devicectl manage pair/unpair |
✅ Stable |
bazel_ios_device_list_pairs |
devicectl list devices |
✅ Stable |
Device Connectivity & iOS 17+ Limitations
Starting with iOS 17 and macOS 15 (Sonoma), Apple replaced the legacy lockdownd/usbmuxd protocol with CoreDevice (remoted). This affects third-party tools:
| Transport | devicectl |
idevicescreenshot |
idevicesyslog |
pymobiledevice3 |
|---|---|---|---|---|
| USB cable | ✅ | ❌ Invalid service (iOS 17+) | ❌ Cannot connect | ❌ needs tunneld |
| Wi-Fi/Network | ✅ | ❌ Device not found | ❌ Device not found | ❌ needs tunneld |
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.
- 2mo ago First seen · 129 lines · 47 tokens per session scan B bcd1ce3e8559
device-and-ui is a skill published in the GitHub repository DebugSwift/XcodeBazelMCP (8 stars, last pushed 3mo ago), licensed MIT. It adds 47 tokens to every session and 1,933 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
swift-expert
Expert-level Swift development for iOS, macOS with SwiftUI, Combine, and modern Swift 5.9+. Use when the user mentions iOS, macOS, SwiftUI, Combine, async await, or Apple platforms, or when the task involves Modern Swift Features, Basics and Optionals, Functions and Closures, or Structs and Classes.
boutique-store
Create and use Boutique Store for Swift data persistence, including initialization, @Stored controllers, CRUD operations, operation chaining, and granular event monitoring. Use when persisting arrays of items, building data controllers, or working with Boutique's Store type.
boutique-stored-values
Persist individual values with Boutique's @StoredValue (UserDefaults) and @SecurelyStoredValue (Keychain), including set, reset, toggle, bindings, keypath setters, array and dictionary helpers, and async observation. Use when storing preferences, settings, feature flags, or sensitive data like auth tokens.
boutique-swiftui
Integrate Boutique with SwiftUI views using onChange, onStoreDidLoad, bindings, and preview stores. Use when building SwiftUI views that display or react to Boutique-persisted data.
swift-focusengine-pro
Reviews, writes, and fixes focus management code for all Apple platforms (tvOS, iOS/iPadOS, watchOS, visionOS, macOS), covering SwiftUI, UIKit, AppKit, and RealityKit. Use when reading, writing, or reviewing apps that handle focus, hover, key view loops, or Digital Crown navigation.
mobiloop-mobile-qa
Test mobile apps with MobiLoop MCP, collect device evidence, and fix and retest confirmed failures within the user's scope. Use for Flutter, React Native, Android, or iOS QA on an emulator, simulator, or device, including relevant mobile security checks.