Skip to main content
skill CX Codex

storekit · dpearson2699 — Claude Code skill: StoreKit 2 in-app purchases

Guides your agent through StoreKit 2 in-app purchases and subscriptions: paywalls, transactions, entitlement checks.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add dpearson2699/swift-ios-skills --skill storekit -a claude-code
Open on GitHub

What storekit does

The skill steers the agent toward the modern Swift StoreKit 2 surface: Product, Transaction, PurchaseAction, StoreView and SubscriptionStoreView. It tells you to leave the original SKProduct and SKPaymentQueue APIs alone unless an older OS version forces your hand.

Covered inside: product types (consumable, non-consumable, auto-renewable, non-renewing), fetching items with Product.products(for:), every PurchaseResult branch, the Transaction.updates listener, and entitlement checks through Transaction.currentEntitlements. Separate sections handle restore purchases, subscription status, Family Sharing, Ask to Buy, refunds and billing retry.

Start the Transaction.updates listener when the app launches, not when a paywall appears. A purchase made on another device, or an Ask to Buy approval, will otherwise slip past. For custom SwiftUI buttons the skill reaches for PurchaseAction from the environment; on watchOS it uses product.purchase(options:).

What it helps with

  • build a paywall with SubscriptionStoreView instead of hand-rolled UI
  • handle every PurchaseResult branch, .pending included
  • check active entitlements via Transaction.currentEntitlements
  • wire the Transaction.updates listener at app launch
  • work through Family Sharing, Ask to Buy and refunds

Example prompts for the agent

  • Build a subscription screen with SubscriptionStoreView for monthly and yearly plans
  • Add a premium entitlement check using Transaction.currentEntitlements
  • Handle a consumable purchase and cover the .pending case

How to install storekit

1Skills CLI (Vercel)

npx skills add dpearson2699/swift-ios-skills --skill storekit -a claude-code

2Manually: put the files in place

~/.claude/skills/storekit/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/storekit/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about storekit

How do I install storekit in Claude Code?

Run npx skills add dpearson2699/swift-ios-skills --skill storekit -a claude-code. The skill file lands at ~/.claude/skills/storekit/SKILL.md.

What does storekit do?

It helps the agent write and review StoreKit 2 code for in-app purchases and subscriptions: paywalls, transactions, entitlement checks, restore purchases.

Which APIs does the skill use?

The modern Swift ones: Product, Transaction, PurchaseAction, StoreView and SubscriptionStoreView. It advises against the older SKProduct and SKPaymentQueue APIs.

Similar skills

Everything for Mobile →

storekit by other authors comes first.

From the same set86

swift-charts A skill that steers your coding agent through Swift Charts work on iOS 26+. Useful for bars, lines, donuts, heat maps and 3D surfaces. CX Codex +1 4,000installs widgetkit Skill for building and reviewing WidgetKit widgets and controls: timelines, configurable widgets, interactive buttons. Use it when your app needs a Home Screen or Lock Screen widget. CX Codex +1 4,000installs swiftui-gestures Guides gesture implementation in SwiftUI, from tap and drag recognition to multi-gesture composition and conflict handling. CX Codex +1 4,000installs apple-on-device-ai Choose an Apple-local AI framework for iPhone, iPad, and Mac projects. The skill covers system models, custom Core ML models, and open LLMs on Apple Silicon. CX Codex +1 4,000installs swiftui-uikit-interop Bridges UIKit and SwiftUI views, controllers, and shared state without lifecycle conflicts or duplicated data. CX Codex +1 4,100installs background-processing Sets up iOS background execution using BGTaskScheduler, URLSession, and push triggers. Useful when you need feed updates or nightly database maintenance. CX Codex +1 3,900installs authentication Build iOS sign-in flows with Apple credentials, passkeys, OAuth and biometrics. Useful when an app needs credential-state handling and server-side token checks. CX Codex +1 3,900installs app-intents A skill for App Intents on iOS: turn app actions and data into Siri commands, Shortcuts, Spotlight results, widgets and Control Center controls. CX Codex +1 3,900installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor