什么是 storekit?
使用 StoreKit 2 实施、审查或改进应用内购买和订阅。使用 SubscriptionStoreView 或 ProductView 构建付费墙、使用产品和交易 API 处理交易、验证权利、处理购买流程(消费品、非消费品、自动续订)、实施优惠代码或促销/赢回/介绍性优惠、管理订阅状态和续订状态、使用配置文件设置 StoreKit 测试,或集成家庭共享、询问购买、退款处理和计费时使用重试逻辑。 来源:dpearson2699/swift-ios-skills。
使用 StoreKit 2 实施、审查或改进应用内购买和订阅。使用 SubscriptionStoreView 或 ProductView 构建付费墙、使用产品和交易 API 处理交易、验证权利、处理购买流程(消费品、非消费品、自动续订)、实施优惠代码或促销/赢回/介绍性优惠、管理订阅状态和续订状态、使用配置文件设置 StoreKit 测试,或集成家庭共享、询问购买、退款处理和计费时使用重试逻辑。
通过命令行快速安装 storekit AI 技能到你的开发环境
来源:dpearson2699/swift-ios-skills。
Implement in-app purchases, subscriptions, and paywalls using StoreKit 2 on iOS 26+. Use only the modern Product, Transaction, StoreView, and SubscriptionStoreView APIs. Never use the deprecated original StoreKit (SKProduct, SKPaymentQueue, SKStoreReviewController).
| 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 |
Define product IDs as constants. Fetch products with Product.products(for:).
使用 StoreKit 2 实施、审查或改进应用内购买和订阅。使用 SubscriptionStoreView 或 ProductView 构建付费墙、使用产品和交易 API 处理交易、验证权利、处理购买流程(消费品、非消费品、自动续订)、实施优惠代码或促销/赢回/介绍性优惠、管理订阅状态和续订状态、使用配置文件设置 StoreKit 测试,或集成家庭共享、询问购买、退款处理和计费时使用重试逻辑。 来源:dpearson2699/swift-ios-skills。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/dpearson2699/swift-ios-skills --skill storekit使用 StoreKit 2 实施、审查或改进应用内购买和订阅。使用 SubscriptionStoreView 或 ProductView 构建付费墙、使用产品和交易 API 处理交易、验证权利、处理购买流程(消费品、非消费品、自动续订)、实施优惠代码或促销/赢回/介绍性优惠、管理订阅状态和续订状态、使用配置文件设置 StoreKit 测试,或集成家庭共享、询问购买、退款处理和计费时使用重试逻辑。 来源:dpearson2699/swift-ios-skills。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/dpearson2699/swift-ios-skills --skill storekit 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/dpearson2699/swift-ios-skills