Skip to content

CamilleScholtz/swmpc / .agents/skills/xcode-control

xcode-control

Verified

Control the running Xcode session to build, clean, test, run, and inspect build logs or errors via AppleScript. Use as a direct CLI replacement for the Xcode MCP bridge when developing swmpc, widgets, or schemes in an open Xcode workspace.

FileKindSize
SKILL.mdskill md1.5 KB
scripts/xcode.shexecutablescript6.1 KB
---
name: xcode-control
description: Control the running Xcode session to build, clean, test, run, and inspect build logs or errors via AppleScript. Use as a direct CLI replacement for the Xcode MCP bridge when developing swmpc, widgets, or schemes in an open Xcode workspace.
---

# Xcode Control

Control the running Xcode session directly via AppleScript. This acts as a drop-in replacement for the Xcode MCP tool service, executing builds and actions inside the live Xcode environment without requiring `xcrun mcpbridge`.

## Helper Script

Run commands using `.agents/skills/xcode-control/scripts/xcode.sh`:

```bash
# Check running workspace and active scheme
.agents/skills/xcode-control/scripts/xcode.sh status

# List schemes
.agents/skills/xcode-control/scripts/xcode.sh schemes

# Switch active scheme (swmpc, widget, MPDKit, Shared)
.agents/skills/xcode-control/scripts/xcode.sh scheme widget

# Build active scheme (or pass scheme name)
.agents/skills/xcode-control/scripts/xcode.sh build swmpc
.agents/skills/xcode-control/scripts/xcode.sh build widget

# Inspect build logs or errors
.agents/skills/xcode-control/scripts/xcode.sh logs --errors

# Clean or Run
.agents/skills/xcode-control/scripts/xcode.sh clean
.agents/skills/xcode-control/scripts/xcode.sh run
```

## When to Use

- When Xcode is running with `swmpc.xcodeproj` open.
- When building or verifying the `widget` or `swmpc` schemes without dealing with headless compiler/dependency mismatch issues.
- When checking Xcode diagnostics and build logs after making code changes.
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 198kUpdated Claude CodeCodexVerifiedInstall