Skip to content
Agent Orchestration
Skill

/xcode-run-device

This skill should be used when the user invokes "/xcode-run-device" to build the current Xcode project, install the app on a connected iOS device, and launch it.

BOOST
From plugin
emacs-skills
14519 skills
Install
$ npx -y skills add xenodium/emacs-skills --skill xcode-run-device --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/xcode-run-device

Context preview

The summary Claude sees to decide when to auto-load this skill.

This skill should be used when the user invokes "/xcode-run-device" to build the current Xcode project, install the app on a connected iOS device, and launch it.

SKILL.md

xcode-run-device.SKILL.md
name: xcode-run-device
description: 'This skill should be used when the user invokes "/xcode-run-device" to build the current Xcode project, install the app on a connected iOS device, and launch it.'
tools: Bash
disable-model-invocation: true

Build + run on a connected iOS device

Build the Xcode workspace or project under the current working directory and launch it on a wired-connected iOS device via Xcode 15+ `devicectl`. Requires a configured signing team in the project and a trusted, paired device.

How to run

The shared `agent-skill-xcode.el` lives in the sibling `xcode-shared` directory at `skills/xcode-shared/agent-skill-xcode.el` in the emacs-skills plugin. All four `/xcode-*` skills load it from there.

emacsclient --eval "(progn (load \"/path/to/skills/xcode-shared/agent-skill-xcode.el\" nil t) (agent-skill-xcode-run-device :project-dir \"$(pwd)\"))"

The function:

  • Locates the workspace/project and picks a scheme.
  • Locates the first connected device via `xcrun devicectl list devices -j`.
  • Runs `xcodebuild build` against the device's specific UDID.
  • Reads `BUILT_PRODUCTS_DIR` / `WRAPPER_NAME` / `PRODUCT_BUNDLE_IDENTIFIER` from `-showBuildSettings -json`.
  • Installs (`xcrun devicectl device install app`) and launches (`xcrun devicectl device process launch`).
  • Returns a multi-line status string. On build failure, returns the same error format as `/xcode-build-device`.

Rules

  • Pass the agent's current working directory as `:project-dir` via `$(pwd)`.
  • The shared elisp lives under `xcode-shared/agent-skill-xcode.el` — load it from there.
  • Run via the Bash tool with a single `emacsclient --eval` invocation. Builds can take minutes; consider extending the Bash timeout if known to be slow.
  • Report the returned status string verbatim.
  • If the function signals "No connected iOS device found", tell the user to plug in a device and trust the Mac on it.
  • If the build fails with a code-signing error, point them at Xcode → target → Signing & Capabilities → Team. Don't try to fix signing automatically.
  • Requires Xcode 15+ for `devicectl`. If `xcrun devicectl` is missing, tell the user to update Xcode.
Read more
Ships withemacs-skills

Claude Code skills for Emacs integration. These skills enable tighter integration with agents running inside Emacs, for example agent-shell.

Get the whole plugin
Stats
145
Stars
17
Forks
Maintained
Maintenance
Emacs Lisp
Language
3mo ago
Last commit
8mo ago
Created
4h ago
Added

Repo: xenodium/emacs-skills

Other skills on emacs-skills.