Install any skill in seconds. Free to start, no credit card required.
Get Started Free →dpearson2699/storekit
Implement, review, or improve in-app purchases and subscriptions using StoreKit 2.
Passed 19 of 22 test cases with the skill, and 19 of 22 without it.
1 fixed18 passed either way2 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
A test case the skill fixed. Same model, same prompt, with and without the skill.
I am building a custom SwiftUI view for purchasing a single premium feature product item. I want to trigger the purchase from a custom button without using standard StoreKit views. What is the recommended SwiftUI approach to initiate this purchase?
| Checked | Without skill | With skill |
|---|---|---|
| Uses the Environment purchase action key to initiate the purchase. | Missed | Passed |
| Handles the pending purchase result case without granting immediate entitlement access. | Passed | Passed |
The instructions your model reads when the skill loads.
Implement in-app purchases, subscriptions, paywalls, and StoreKit testing using
StoreKit 2. Use the modern Swift-based Product, Transaction,
PurchaseAction, StoreView, and SubscriptionStoreView APIs. Avoid original
In-App Purchase APIs (SKProduct, SKPaymentQueue) unless legacy OS support
requires them.
StoreKit views initiate purchases automatically. For custom controls, use
PurchaseAction in SwiftUI, purchase(confirmIn:options:) in UIKit/AppKit, and
product.purchase(options:) on watchOS.
| Type | Enum Case | Behavior |
|---|---|---|
| Consumable | .consumable | Used once, can be repurchased (gems, coins) |
| Non-consumable | .nonConsumable | Purchased once permanently (premium unlock) |
| Auto-renewable | .autoRenewable | Recurring billing with automatic renewal |
| Non-renewing | .nonRenewing | Time-limited access without automatic renewal |
test cases passed, vs 19 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.