storekit
Implement, review, or improve in-app purchases and subscriptions using StoreKit 2. Use when building paywalls with SubscriptionStoreView or ProductView, processing transactions with Product and Transaction APIs, verifying entitlements, handling purchase flows (consumable, non-consumable, auto-renewable), implementing offer codes or promotional/win-back/introductory offers, managing subscription status and renewal state, setting up StoreKit testing with configuration files, or integrating Family
Security Assessment
About storekit
The storekit skill enables developers to implement, review, and enhance in-app purchases and subscription workflows using StoreKit 2. It solves the challenge of managing complex purchase flows, entitlements, and subscription states on iOS by providing modern, Swift-based APIs and best-practice guidance. By leveraging this skill, teams can streamline paywall implementations, transaction processing, and subscription management while ensuring compliance with App Store requirements and user experience standards.
Key features include support for various product types (consumable, non-consumable, auto-renewable, non-renewing), integration with SwiftUI paywalls via StoreView, ProductView, and SubscriptionStoreView, handling purchase flows with PurchaseAction or lower-level product.purchase(options:) calls, entitlement verification, and transaction monitoring using Transaction.updates. Additional capabilities cover offer codes, promotional and introductory offers, Family Sharing, Ask to Buy approvals, refund handling, billing retry logic, and StoreKit testing using configuration files. The skill also emphasizes best practices for restoring purchases and displaying Terms of Service or Privacy Policy links.
Storekit is ideal for iOS developers building apps with monetization strategies that include in-app purchases and subscriptions. It is particularly useful for teams looking to implement robust, maintainable paywalls, ensure accurate entitlement tracking across devices, and handle complex subscription scenarios. Target users include iOS app developers, technical leads performing code reviews of StoreKit integrations, and QA engineers validating purchase flows and entitlement states.
FAQ
Which iOS versions are supported by the storekit skill?
StoreKit 2 APIs used by this skill require iOS 26+ for full Swift-based integration. Legacy APIs like SKProduct and SKPaymentQueue can be used only for older OS support.
Can storekit handle all types of in-app products?
Yes, it supports consumable, non-consumable, auto-renewable, and non-renewing products, covering one-time purchases, recurring subscriptions, and time-limited access.
How are transactions verified before granting access?
Each transaction must be checked with VerificationResult before delivering entitlements. Pending purchases and cancellations do not unlock content, and refunds or revocations are excluded from active entitlements.
Does the skill provide testing capabilities?
Yes, StoreKit testing can be set up using configuration files to simulate purchases, subscription states, and various entitlement scenarios before production release.
Are SwiftUI paywalls supported?
Yes, the skill integrates with SwiftUI views like StoreView, ProductView, and SubscriptionStoreView, and recommends using PurchaseAction for custom buy buttons.
Install storekit
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
dpearson2699/swift-ios-skills