xcode-mcp-first-executor
Xcode MCP First Executor
Use this skill when a task can be performed through Xcode MCP.
Core Rules
- Resolve target workspace by
workspacePathfromXcodeListWindows. - Do not trust stale tab index assumptions.
- Use MCP tools first for supported actions.
- If MCP fails after retry policy, output structured handoff to
$apple-swift-cli-fallback.
Workflow
- Resolve active tab:
- call
XcodeListWindows - pick tab by matching
workspacePath
- Execute via MCP matrix:
- use
references/mcp-tool-matrix.md
- Retry on transient MCP failures:
- one immediate retry for timeout or transport error
- if still failing, generate fallback handoff payload
- Handoff payload:
- include intent category
- include preferred official CLI command(s)
- include reason MCP path failed
Mutation Note
For mutation requests in Xcode-managed scope, continue through MCP mutation tools if available. If falling back to direct filesystem edits, route to $apple-dev-safety-and-docs first.
References
references/mcp-tool-matrix.mdreferences/mcp-failure-handoff.mdreferences/mutation-via-mcp.md
Interactive Customization Flow
- Load current effective customization settings first:
uv run python scripts/customization_config.py effective
- Ask targeted customization questions:
- Use
references/customization-flow.mdto drive knob-by-knob questions. - Confirm desired behavior changes and safety constraints.
- Map requested changes to implementation files:
- Update
SKILL.md,references/*, and any runtime script files listed inreferences/customization-flow.md.
- Persist durable customization state:
- Start from
customization.template.yamldefaults. - Apply approved overrides with
uv run python scripts/customization_config.py apply --input <yaml-file>. - Durable path:
~/.config/gaelic-ghost/apple-dev-skills/<skill-name>/customization.yaml. - Optional override root:
APPLE_DEV_SKILLS_CONFIG_HOME.
- Report resulting effective configuration:
- Re-run
uv run python scripts/customization_config.py effectiveand summarize final active settings. - If the user asks to remove customization state, run
uv run python scripts/customization_config.py reset.
Use references/customization-flow.md for skill-specific knobs, file mapping, guardrails, validation checks, and example requests.
More from gaelic-ghost/apple-dev-skills
apple-xcode-workflow
Guide Apple and Swift development work in or around Xcode, including workspace inspection, diagnostics, builds, tests, runs, toolchain checks, Apple and Swift documentation lookup, mutation guard decisions, and official CLI fallback planning. Use for existing Apple or Swift projects when Xcode-aware execution or Apple docs reasoning is needed.
18apple-dash-docsets
Manage Dash docsets and cheatsheets on macOS, including search and discovery, install guidance for missing docsets, local access fallback paths between Dash MCP, HTTP, and URL or Service integration, and generation guidance when a docset is unavailable. Use when Codex needs Dash docset or cheatsheet help rather than Apple or Xcode execution work.
15dash-docset-search
Search and reason about Dash.app docsets and cheatsheets on macOS. Use when the task involves explaining Dash capabilities, listing installed docsets, searching one or more docsets, enabling full-text search, detecting missing docsets before handoff to -docset-install-generate, or customizing this skills search policy.
10bootstrap-swift-package
Bootstrap new Swift Package Manager projects with consistent defaults and fast setup. Use when creating a new Swift package (library, executable, or tool), scaffolding package structure, applying standard platform/version defaults, initializing git, running first-step validation, or when the user asks to customize bootstrap defaults in this skill.
10swift-package-agents-maintainer
Create, update, and maintain a canonical AGENTS.md (agents file) across Swift Package repositories. Use when Codex needs to update AGENTS.md for Swift packages, sync agents files across repos, enforce shared policy baselines, detect drift in automation, apply canonical templates, or customize this skills sync policy.
10dash-docset-install-generate
Install, guide installation, and generate Dash.app docsets or cheatsheets on macOS. Use when the user asks to add missing Dash docsets, install from built-in or contributed sources, install cheat sheets, subscribe to feeds, generate custom docsets, verify installation, or customize this skills install/generation policy.
10