Skip to content
Agent Orchestration
Skill

/xcode-build-device

This skill should be used when the user invokes "/xcode-build-device" to build the current Xcode project for a physical iOS device (generic destination).

BOOST
From plugin
emacs-skills
14519 skills
Install
$ npx -y skills add xenodium/emacs-skills --skill xcode-build-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-build-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-build-device" to build the current Xcode project for a physical iOS device (generic destination).

SKILL.md

xcode-build-device.SKILL.md
name: xcode-build-device
description: 'This skill should be used when the user invokes "/xcode-build-device" to build the current Xcode project for a physical iOS device (generic destination).'
tools: Bash
disable-model-invocation: true

Build Xcode project for iOS device

Build the Xcode workspace or project under the current working directory for a physical iOS device. Uses a *generic* device destination (no specific UDID). Requires a configured signing team in the project — otherwise `xcodebuild` will fail with a code-signing error.

How to build

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-build-device :project-dir \"$(pwd)\"))"

The function:

  • Locates the first `.xcworkspace` (preferred) or `.xcodeproj` in `:project-dir`.
  • Picks a scheme via `xcodebuild -list -json`.
  • Runs `xcodebuild build -destination 'generic/platform=iOS'`.
  • Returns `"Build succeeded: ..."` on success, or `"Build FAILED: ...\n--- last 40 lines ---\n..."` on failure.

Rules

  • Pass the agent's current working directory as `:project-dir` via `$(pwd)`. Do not assume a hard-coded path.
  • The shared elisp lives under `xcode-shared/agent-skill-xcode.el` — load it from there, not from this skill's directory.
  • Run via the Bash tool with a single `emacsclient --eval` invocation.
  • Report the returned status string verbatim on failure.
  • If the failure mentions code signing, point the user to Xcode → target → Signing & Capabilities → Team. Don't try to fix signing automatically.
  • If the user wants to also run the app on-device, suggest `/xcode-run-device`.
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.