/apple-dev:swiftui-push-proxyfrom apple-dev
Build 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.
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.
Your upstream service speaks Web Push (RFC 8291), but iOS apps need APNS, and you do not want the upstream to ever see plaintext push contents. Common cases: federated social networks, self-hosted backends, third-party services where you cannot run a custom APNS client.
Upstream service (Web Push) --> Relay proxy --> APNS --> Device
| |
v v
forwards decrypts via
opaque blob keychain key
endpoint parameter at your relay (with the APNS token embedded in the URL path).UNNotificationServiceExtension to receive the APNS payload, read ciphertext, salt, and server public key from userInfo, and decrypt locally.UNMutableNotificationContent from the decrypted JSON payload and pass it to contentHandler. Optionally attach an INSendMessageIntent for sender avatars.P256.KeyAgreement.PrivateKey.SecRandomCopyBytes.All entries use kSecAttrAccessibleAfterFirstUnlock so the extension can read them after a reboot before unlock has happened.
client-side-keychain-decryption.md covers CryptoKit key generation, keychain storage with kSecAttrAccessGroup, the NotificationService extension entry point, the full RFC 8291 aesgcm decryption (HKDF info strings, salt, nonce, AES-GCM-128), and INSendMessageIntent enrichment.proxy-server-architecture.md covers the relay HTTPS endpoint, the device-to-APNS-token mapping, statelessness about message contents, rate limiting and retry, and hosting alternatives.UserDefaults or a plist; only the keychain with kSecAttrAccessibleAfterFirstUnlock.UNNotificationServiceExtension has a 30-second budget. Do crypto carefully and fast; avoid synchronous network calls before contentHandler is invoked at least once.keychain-access-groups entitlements in BOTH the app target and the extension target, with the same team-prefixed identifier.m, k, and s fields with URL-safe alphabet.?sandbox=true query flag works).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`./modular-package-skeletonScaffold 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./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.