ios-monetization
Skill1 starsChanged 36 days agoMITView on GitHub
Add and verify in-app purchases and subscriptions in an iOS app with RevenueCat or StoreKit 2 — products, offerings, entitlements, paywalls, restore, sandbox and StoreKit-config testing, and revenue metrics. Use for "add a paywall", "set up subscriptions", "RevenueCat", "StoreKit", "why isn't my purchase working", or pricing questions.
In this repository15 other files it gives its agents.
- app-store-listingSkill
- ios-app-intentsSkill
- ios-crash-monitoring-sentrySkill
- ios-debugger-agentSkill
- ios-ettrace-performanceSkill
- ios-lifecycleSkill
- ios-memgraph-leaksSkill
- ios-post-launchSkill
- ios-project-setupSkill
- ios-releaseSkill
- ios-testingSkill
- swiftui-liquid-glassSkill
- swiftui-performance-auditSkill
- swiftui-ui-patternsSkill
- swiftui-view-refactorSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
If the project already uses RevenueCat (import RevenueCat, Purchases.configure) or StoreKit 2 directly, stay with it.
- Distinctive: line 12
If the RevenueCat MCP is connected, use it to read and create projects, products, entitlements and offerings, and to pull metrics.
- Distinctive: line 16
Write down (and confirm with the user) before writing any code:
- Very specific: line 27
Create a single @Observable purchase/entitlement store as the source of truth.
- Very specific: line 34
Add a StoreKit configuration file (.storekit) synced from App Store Connect, and select it in the scheme for local testing (purchase, …
- Distinctive: line 36
Verify: first purchase, restore on a fresh install, upgrade/downgrade between plans, expiry, refund revokes access, and offline launch …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
iOS Monetization
1. Decide the stack
- If the project already uses RevenueCat (
import RevenueCat,Purchases.configure) or StoreKit 2 directly, stay with it. - For a new setup, recommend RevenueCat when the user wants dashboards, paywall experiments or cross-platform support. Recommend plain StoreKit 2 when they want no third-party dependency.
- If the RevenueCat MCP is connected, use it to read and create projects, products, entitlements and offerings, and to pull metrics. Confirm before any change in the dashboard.
2. Model the catalog
Write down (and confirm with the user) before writing any code:
- Products: identifiers like
<app>.pro.monthlyand<app>.pro.annual; type (auto-renewable, non-consumable, consumable); price tier; trial or intro offer. - Entitlements: what each product unlocks (usually one
proentitlement). - Offerings: the default offering, plus any experiment offerings.
Product IDs are permanent in App Store Connect. Double-check spelling before the user creates them.
3. Implement
- Configure the SDK once at app launch, with the public API key read from the xcconfig (never a secret key in the app).
- Create a single
@Observablepurchase/entitlement store as the source of truth. Views readisProfrom it; nothing else checks receipts. - Listen for transaction updates (
Transaction.updatesor the RevenueCat customer-info stream) so renewals, refunds and Family Sharing are reflected live. - Paywall must show: price per period in the user's locale (use the product's localized price — never hard-code it), trial terms, what's included, Restore Purchases, and links to Terms of Use and Privacy Policy.
- Gate features in the model, not with scattered
if isProchecks across the view hierarchy.
4. Test before shipping
- Add a StoreKit configuration file (
.storekit) synced from App Store Connect, and select it in the scheme for local testing (purchase, cancel, renew, refund, Ask to Buy). - Then test in Sandbox with a sandbox Apple Account on a device, and on TestFlight.
- Verify: first purchase, restore on a fresh install, upgrade/downgrade between plans, expiry, refund revokes access, and offline launch keeps access.
5. After launch
Pull MRR, trial conversion, churn and refund rate (RevenueCat MCP or the dashboard). Suggest one experiment at a time: price, trial length, or paywall placement. Never change live prices without the user's explicit approval.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

