XcodeBazelMCP: Skill for Claude Code

.agents/skills/device-and-ui/SKILL.md

device-and-ui is a skill for Claude Code, Codex from DebugSwift/XcodeBazelMCP. It costs 47 tokens per session (1,933 once invoked), scanned B, original, MIT.

A coding skill for controlling physical Apple devices and automating their user interfaces. It covers device commands, touch and swipe actions, accessibility checks, and related project files.

In plain words
What is it for?
Use it when developing or testing apps on physical Apple devices, simulating user interactions, checking accessibility, or changing device and UI automation code.
Why use it?
It provides a defined way to build, install, launch, stop, inspect, screenshot, and collect logs from iOS or macOS devices. This avoids handling each device operation manually.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is DebugSwift/XcodeBazelMCP's own configuration. It tells Claude Code and Codex how to work on XcodeBazelMCP itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything XcodeBazelMCP configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/DebugSwift/XcodeBazelMCP/main/.agents/skills/device-and-ui/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/DebugSwift/XcodeBazelMCP

Made for: Claude Code, Codex.

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 device-and-ui

README.md
[![agentmods](https://agentmods.dev/badge/skills/debugswift/xcodebazelmcp/device-and-ui/github.svg)](https://agentmods.dev/skills/debugswift/xcodebazelmcp/device-and-ui)
Your own site
<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.

agentmods 80×15 button for device-and-ui

Your own site · 80×15
<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>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,933 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00047 $0.01933
Opus 5.5 $0.00019 $0.00773
Sonnet 5.5 $0.00009 $0.00387
Haiku 4.5 $0.00005 $0.00193

Measured 2mo ago against content hash bcd1ce3e8559, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.
.agents/skills/device-and-ui/SKILL.md · 129 lines

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

Read the full file on GitHub · 129 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. 2mo ago First seen · 129 lines · 47 tokens per session scan B bcd1ce3e8559

Subscribe to this mod's changes

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.

Related

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.

personamanagmentlayer/pcl · 76 tokens

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.

mergesort/Boutique · 52 tokens

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.

mergesort/Boutique · 68 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.

mergesort/Boutique · 45 tokens

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.

mhaviv/Swift-FocusEngine-Agent-Skill · 74 tokens

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.

enessubass/mobiloop-mcp · 60 tokens