|
| 1 | +# Apple Platform Build Tools Claude Code Plugin |
| 2 | + |
| 3 | +[](https://code.claude.com/docs/en/plugins) |
| 4 | +[](https://github.com/kylehughes/apple-platform-build-tools-claude-code-plugin/releases) |
| 5 | + |
| 6 | +*Build, test, and archive Swift packages and Xcode projects for Apple platforms with Claude Code.* |
| 7 | + |
| 8 | +## About |
| 9 | + |
| 10 | +Apple Platform Build Tools Claude Plugin is a Claude Code plugin containing an Agent Skill and a Subagent for building Apple platform products. |
| 11 | + |
| 12 | +- **Agent Skill**: Reference documentation for `xcodebuild` and `swift build` command patterns. |
| 13 | +- **Subagent**: Autonomous executor that discovers schemes, runs builds, and returns concise results. Uses the Agent Skill. |
| 14 | + |
| 15 | +## Usage |
| 16 | + |
| 17 | +The Subagent is useful for delegating build and test commands from your main programming agent. It can report the results of these commands without exposing the build logs. This keeps the main agent on track and prevents its context window from being polluted. |
| 18 | + |
| 19 | +The Agent Skill is useful for understanding `xcodebuild` and `swift` options, debugging build failures, or constructing complex commands manually or by an agent when more control is needed than the Subagent provides. |
| 20 | + |
| 21 | +### Automatic |
| 22 | + |
| 23 | +The Agent Skill and Subagent are both exposed to Claude Code, along with descriptions about when to use them. Theoretically, Claude should know to read the Agent Skill when composing a complex `xcodebuild` command, or to invoke the Subagent when a build needs to be run. This is nondeterministic in practice and may change with Claude models and Claude Code versions. |
| 24 | + |
| 25 | +### Manual |
| 26 | + |
| 27 | +To explicitly invoke the Agent Skill or Subagent, use natural language in Claude Code. |
| 28 | + |
| 29 | +e.g. |
| 30 | + |
| 31 | +> use the builder agent to build the app |
| 32 | +
|
| 33 | +> check with the builder agent that the tests pass |
| 34 | +
|
| 35 | +> use the build skill to help me write an xcodebuild command for CI |
| 36 | +
|
| 37 | +## What's Included |
| 38 | + |
| 39 | +### Agent Skill: `building-apple-platform-products` |
| 40 | + |
| 41 | +Quick-reference tables and detailed documentation for: |
| 42 | + |
| 43 | +- Project discovery (schemes, targets, configurations) |
| 44 | +- Swift Package Manager commands |
| 45 | +- `xcodebuild` commands (build, test, archive) |
| 46 | +- Destination specifiers for all Apple platforms |
| 47 | +- Test filtering, parallel execution, coverage |
| 48 | +- CI configuration and code signing |
| 49 | +- Troubleshooting common errors |
| 50 | + |
| 51 | +### Subagent: `apple-platform-builder` |
| 52 | + |
| 53 | +Autonomous build executor that: |
| 54 | + |
| 55 | +- Discovers project structure automatically |
| 56 | +- Constructs correct commands for the project type |
| 57 | +- Handles errors using troubleshooting guidance |
| 58 | +- Returns success/failure with only relevant details |
| 59 | +- Uses the `building-apple-platform-products` skill |
| 60 | + |
| 61 | +## Installation |
| 62 | + |
| 63 | +### Claude Code |
| 64 | + |
| 65 | +#### Personal Usage |
| 66 | + |
| 67 | +To install this plugin for your personal use in Claude Code: |
| 68 | + |
| 69 | +1. Add the marketplace: |
| 70 | + ```bash |
| 71 | + /plugin marketplace add kylehughes/apple-platform-build-tools-claude-code-plugin |
| 72 | + ``` |
| 73 | + |
| 74 | +2. Install the plugin: |
| 75 | + ```bash |
| 76 | + /plugin install apple-platform-build-tools@apple-platform-build-tools-claude-code-plugin |
| 77 | + ``` |
| 78 | + |
| 79 | +#### Project Configuration |
| 80 | + |
| 81 | +To automatically provide this plugin to everyone working in a repository, configure the repository's `.claude/settings.json`: |
| 82 | + |
| 83 | +```json |
| 84 | +{ |
| 85 | + "enabledPlugins": { |
| 86 | + "apple-platform-build-tools@apple-platform-build-tools-claude-code-plugin": true |
| 87 | + }, |
| 88 | + "extraKnownMarketplaces": { |
| 89 | + "apple-platform-build-tools-claude-code-plugin": { |
| 90 | + "source": { |
| 91 | + "source": "github", |
| 92 | + "repo": "kylehughes/apple-platform-build-tools-claude-code-plugin" |
| 93 | + } |
| 94 | + } |
| 95 | + } |
| 96 | +} |
| 97 | +``` |
| 98 | + |
| 99 | +When team members open the project, Claude Code will prompt them to install the plugin. |
| 100 | + |
| 101 | +### Manual Installation |
| 102 | + |
| 103 | +The raw Agent Skill and Subagent content is available in this repository's `skills/` and `agents/` directories. |
| 104 | + |
| 105 | +## Contributions |
| 106 | + |
| 107 | +Apple Platform Build Tools Claude Code Plugin is not accepting source contributions at this time. Bug reports will be considered. |
| 108 | + |
| 109 | +## Author |
| 110 | + |
| 111 | +[Kyle Hughes](https://kylehugh.es) |
| 112 | + |
| 113 | +[![Bluesky][bluesky_image]][bluesky_url] |
| 114 | +[![LinkedIn][linkedin_image]][linkedin_url] |
| 115 | +[![Mastodon][mastodon_image]][mastodon_url] |
| 116 | + |
| 117 | +[bluesky_image]: https://img.shields.io/badge/Bluesky-0285FF?logo=bluesky&logoColor=fff |
| 118 | +[bluesky_url]: https://bsky.app/profile/kylehugh.es |
| 119 | +[linkedin_image]: https://img.shields.io/badge/LinkedIn-0A66C2?logo=linkedin&logoColor=fff |
| 120 | +[linkedin_url]: https://www.linkedin.com/in/kyle-hughes |
| 121 | +[mastodon_image]: https://img.shields.io/mastodon/follow/109356914477272810?domain=https%3A%2F%2Fmister.computer&style=social |
| 122 | +[mastodon_url]: https://mister.computer/@kyle |
| 123 | + |
| 124 | +## License |
| 125 | + |
| 126 | +Apple Platform Build Tools Claude Code Plugin is available under the **MIT License**. See `LICENSE` for details. |
0 commit comments