/apple-dev:modular-package-skeletonfrom apple-dev
Scaffold a new iOS, iPadOS, macOS, or visionOS app with the canonical modular SwiftPM layout (Models, Network, Env, DesignSystem, per-feature UI packages). Use when starting a new SwiftUI app or restructuring a monolithic Xcode project into Swift Packages.
Ships in apple-dev. 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.
Read when SKILL.md points to them.
The canonical layout for a SwiftUI app that intends to grow past one screen. The Xcode project becomes a thin shell; the real code lives in a tree of small Swift Packages with strict, one-way dependencies.
Starting a fresh iOS, iPadOS, macOS, or visionOS app, or refactoring a single-target monolithic Xcode project into modular packages. Use this before the project sprawls; retrofitting is painful once views and services tangle.
App target
|
+---------------+---------------+
v v
Feature pkgs (Timeline, Profile, Settings, ...)
| | |
v v v
Env DesignSystem (optional MediaUI)
| ^
v |
Network ------+
|
v
Models
Models is the root. DesignSystem is a leaf with no deps but SwiftUI. Features sit on top and never know about each other.
Packages/ folder; give each module its own Package.swift.references/layout-and-package-swift.md: folder layout plus a concrete Package.swift template for an infra package and a feature package.references/feature-package-recipe.md: step-by-step recipe for adding a new feature package, wiring its destination into the router, and setting up its test target.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub joaquincampo/my-plugins --plugin apple-dev8 skills in this plugin
/add-approuterAdopt AppRouter (github.com/dimillian/AppRouter) for type-safe SwiftUI navigation with sheets and deep linking. Use when starting an app's nav layer or replacing ad-hoc `NavigationStack` path management. SimpleRouter or tab Router./foundation-models-integrationAdd Apple's on-device Foundation Models (Apple Intelligence) to a SwiftUI app: streaming, `@Generable` structured output, `Tool` protocol, availability checks. iOS / iPadOS / macOS / visionOS 26+. Triggers on `SystemLanguageModel`, `LanguageModelSession`, `@Generable`./ios26-liquid-glass-adoptionAdopt iOS 26 / iPadOS 26 / macOS 26 SwiftUI APIs: Liquid Glass, modernized toolbars and tab bars, matched transitions, scroll position. Triggers: `glassEffect`, `buttonStyle(.glass)`, `ToolbarSpacer`, `matchedTransitionSource`, `tabBarMinimizeBehavior`./refactor-to-no-viewmodelMigrate legacy SwiftUI code from ObservableObject + @Published + ViewModel patterns to @Observable + @Environment + view-state enums. Use when modernizing an iOS or macOS codebase, removing ViewModel layers, or replacing Combine with async/await./swiftui-doctrineApply modern SwiftUI conventions on Apple platforms (iOS, iPadOS, macOS, visionOS). Triggers on SwiftUI views, `@Observable` services, `NavigationStack`, Swift `async/await`, and Apple-platform project work. Enforces no-ViewModel, modular SwiftPM./swiftui-push-proxyBuild E2E-encrypted iOS push for services that speak Web Push (not APNS-native): relay proxy + RFC 8291 aesgcm decryption on device, keys in shared keychain. Triggers on Web Push, APNS, RFC 8291, `UNNotificationServiceExtension`, federated push.