/xcode-development:swift-guidelinesfrom Xcode Development
Modern Swift 6.4, SwiftUI, and SpriteKit conventions for iOS 26/27 and the APIs to avoid. Load before writing or editing any .swift file, SwiftUI view, @Observable model, SpriteKit scene, or when a Swift concurrency or deprecation warning appears.
Ships in Xcode Development. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
| Instead of | Use |
|---|---|
ObservableObject, @Published, @StateObject, @ObservedObject | @Observable class, @State to own it, @Bindable for bindings, @Environment(Type.self) |
NavigationView | NavigationStack |
.foregroundColor | .foregroundStyle |
.cornerRadius(r) | .clipShape(.rect(cornerRadius: r)) |
.onChange(of:) { new in } | .onChange(of: value) { old, new in } |
@Environment(\.presentationMode) | @Environment(\.dismiss) |
PreviewProvider | #Preview { } |
.tabItem | Tab("Name", systemImage:) { } |
| XCTest for unit tests | Swift Testing: @Test, #expect, #require |
DispatchQueue.main.async | @MainActor context or Task { @MainActor in } |
Timer.scheduledTimer in views | TimelineView or .task { for await _ in ... } |
UI tests stay on XCTest (XCUIApplication). Swift Testing has no UI automation.
SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor,
approachable concurrency on. Most code is main-actor by default.@concurrent (Swift 6.2+) or use
Task.detached. A bare nonisolated now runs on the caller's actor.@unchecked Sendable or nonisolated(unsafe) to silence a warning.@MainActor to every type. It is already the default..glassEffect() sparingly. Guard with
if #available(iOS 26, *) only if the deployment target is below 26.@Observable models with tests.NavigationSplitView for list-detail, ViewThatFits and size
classes for width-dependent layout. Test landscape..font(.largeTitle) or bigger for key text,
SF Symbols plus words, haptics via .sensoryFeedback.SpriteView(scene:preferredFramesPerSecond: 60) inside SwiftUI.scene.scaleMode = .resizeFill; size the scene from GeometryReader.@AppStorage or a Codable JSON file in Application Support.DocumentationSearch (Xcode MCP, query plus optional frameworks) searches
the locally installed Apple docs semantically. Use it for any iOS 26/27 API
before web search.CLAUDE_CODE_PLUGIN_DIRS is exported in the shell profile:
xcode-integration:swiftui-specialist, swiftui-whats-new-27,
modernize-tests, and the three accessibility-*-specialist skills.
Invoke the SwiftUI ones when designing a screen.After Xcode is installed, read specific files in
/Applications/Xcode.app/Contents/PlugIns/IDEIntelligenceChat.framework/Versions/A/Resources/AdditionalDocumentation/
when working on SwiftUI composition, Liquid Glass, concurrency, or SwiftData.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
9 skills in this plugin
/app-reviewReview Swift, SwiftUI, and SpriteKit code in an app under apps/ for correctness, concurrency, kid-safety, privacy, and template conventions before merge or commit. Use when asked to review, check, audit, or critique app code, or before merging a feature branch./build-testBuild, test, and lint an iOS app in apps/<Name> with make or Xcode 27 MCP tools, and diagnose xcodebuild, Swift Testing, XCTest, SwiftLint, or swift-format failures. Use when asked to build, test, run tests, check, verify, fix a build error, or before claiming any code change is done./feature-tddAdd or change a feature in an app using the factory SDLC: update the spec, write a failing test, implement, run make check, playtest in the simulator, commit with a Conventional Commit. Use when asked to add, implement, change, or fix any behavior in an app under apps/./initSet up a new xcode-development workspace in the current directory for building personal iPhone and iPad apps and games with Claude Code. Use when the user runs /xcode-development:init, asks to initialize, set up, or bootstrap an Xcode or iOS workspace, or wants to start building Apple apps in an empty folder./install-deviceBuild a signed app and install it on a physical iPhone or iPad with xcrun devicectl, using the free Personal Team. Use when asked to put the app on a phone, iPad, or device, install for the kids, or when a previously installed app stopped opening after 7 days./new-appScaffold a new iPhone/iPad app or SpriteKit game under apps/<Name> in an xcode-development workspace, with tests, lint, hooks, Makefile, and optional GitHub or GitLab remote. Use when the user wants to start a new app, game, or project, or says "create", "new app", "new game", "scaffold", or "start building <something>".xcode-development@0-to-1-labs is listed by 0-to-1-labs/claude-marketplace — review the source before installing
npx claudepluginhub 0-to-1-labs/claude-marketplace --plugin xcode-development