asc-revenuecat-catalog-sync
Original:🇺🇸 English
Not Translated
Reconcile App Store Connect subscriptions and in-app purchases with RevenueCat products, entitlements, offerings, and packages using asc and RevenueCat MCP. Use when setting up or syncing subscription catalogs across ASC and RevenueCat.
2installs
Sourcerudrankriyam/asc-skills
Added on
NPX Install
npx skill4agent add rudrankriyam/asc-skills asc-revenuecat-catalog-syncSKILL.md Content
asc RevenueCat catalog sync
Use this skill to keep App Store Connect (ASC) and RevenueCat aligned, including creating missing ASC items and mapping them to RevenueCat resources.
When to use
- You want to bootstrap RevenueCat from an existing ASC catalog.
- You want to create missing ASC subscriptions/IAPs, then map them into RevenueCat.
- You need a drift audit before release.
- You want deterministic product mapping based on identifiers.
Preconditions
- authentication is configured (
ascorasc auth loginenv vars).ASC_* - RevenueCat MCP server is configured and authenticated.
- In Cursor and VS Code, OAuth auth is available for RevenueCat MCP. API key auth is also supported.
- You know:
- ASC app ID ()
APP_ID - RevenueCat
project_id - target RevenueCat app type (or
app_store) and bundle ID for create flowsmac_app_store
- ASC app ID (
- Use a write-enabled RevenueCat API v2 key when applying changes.
Safety defaults
- Start in audit mode (read-only).
- Require explicit confirmation before writes.
- Never delete resources in this workflow.
- Continue on per-item failures and report all failures at the end.
Canonical identifiers
- Primary cross-system key: ASC == RevenueCat
productId.store_identifier - Keep stable once products are live.
productId - Do not use display names as unique identifiers.
Scope boundary
- RevenueCat MCP configures RevenueCat resources; it does not create App Store Connect products directly.
- Use commands to create missing ASC subscription groups, subscriptions, and IAPs before RevenueCat mapping.
asc
Modes
1) Audit mode (default)
- Read ASC source catalog.
- Read RevenueCat target catalog.
- Build a diff with actions:
- missing in ASC
- missing in RevenueCat
- mapping conflicts (identifier/type/app mismatch)
- Present a plan and wait for confirmation.
2) Apply mode (explicit)
Execute approved actions in this order:
- Ensure ASC groups/subscriptions/IAP exist.
- Ensure RevenueCat app/products exist.
- Ensure entitlements and product attachments.
- Ensure offerings/packages and package attachments.
- Verify and print a final reconciliation summary.
Step-by-step workflow
Step A - Read current ASC catalog
bash
asc subscriptions groups list --app "APP_ID" --paginate --output json
asc iap list --app "APP_ID" --paginate --output json
# for each subscription group:
asc subscriptions list --group "GROUP_ID" --paginate --output jsonStep B - Read current RevenueCat catalog (MCP)
Use these MCP tools (with and pagination where applicable):
project_idmcp_RC_get_projectmcp_RC_list_appsmcp_RC_list_productsmcp_RC_list_entitlementsmcp_RC_list_offeringsmcp_RC_list_packages
Step C - Build mapping plan
Map ASC product types to RevenueCat product types:
- ASC subscription -> RevenueCat
subscription - ASC IAP -> RevenueCat
CONSUMABLEconsumable - ASC IAP -> RevenueCat
NON_CONSUMABLEnon_consumable - ASC IAP -> RevenueCat
NON_RENEWING_SUBSCRIPTIONnon_renewing_subscription
Suggested entitlement policy:
- subscriptions: one entitlement per subscription group (or explicit map provided by user)
- non-consumable IAP: one entitlement per product
- consumable IAP: no entitlement by default unless user asks
Step D - Ensure missing ASC items (if requested)
Create missing ASC resources first, then re-read ASC to capture canonical IDs.
bash
# create subscription group
asc subscriptions groups create --app "APP_ID" --reference-name "Premium"
# create subscription
asc subscriptions create \
--group "GROUP_ID" \
--ref-name "Monthly" \
--product-id "com.example.premium.monthly" \
--subscription-period ONE_MONTH
# create iap
asc iap create \
--app "APP_ID" \
--type NON_CONSUMABLE \
--ref-name "Lifetime" \
--product-id "com.example.lifetime"Step E - Ensure RevenueCat app and products
Use MCP:
- create app if missing:
mcp_RC_create_app - create products:
mcp_RC_create_product- = ASC
store_identifierproductId - = RevenueCat app ID
app_id - from mapping above
type
Step F - Ensure entitlements and attachments
Use MCP:
- list/create entitlements: ,
mcp_RC_list_entitlementsmcp_RC_create_entitlement - attach products:
mcp_RC_attach_products_to_entitlement - verify attachments:
mcp_RC_get_products_from_entitlement
Step G - Ensure offerings and packages (optional)
Use MCP:
- list/create/update offerings:
mcp_RC_list_offeringsmcp_RC_create_offering- (
mcp_RC_update_offeringonly if requested)is_current=true
- list/create packages:
mcp_RC_list_packagesmcp_RC_create_package
- attach products to packages:
- with
mcp_RC_attach_products_to_packageeligibility_criteria: "all"
Recommended package keys:
- ->
ONE_WEEK$rc_weekly - ->
ONE_MONTH$rc_monthly - ->
TWO_MONTHS$rc_two_month - ->
THREE_MONTHS$rc_three_month - ->
SIX_MONTHS$rc_six_month - ->
ONE_YEAR$rc_annual - lifetime IAP ->
$rc_lifetime - custom ->
$rc_custom_<name>
Expected output format
Return a final summary with:
- ASC created counts (groups/subscriptions/IAP)
- RevenueCat created counts (apps/products/entitlements/offerings/packages)
- attachment counts (entitlement-products, package-products)
- skipped existing items
- failed items with actionable errors
Example:
text
ASC: created groups=1 subscriptions=2 iap=1, skipped=14, failed=0
RC: created apps=0 products=3 entitlements=2 offerings=1 packages=2, skipped=27, failed=1
Attachments: entitlement_products=3 package_products=2
Failures:
- com.example.premium.annual: duplicate store_identifier exists on another RC appAgent behavior
- Always run audit first, even in apply mode.
- Ask for confirmation before create/update operations.
- Match by first.
store_identifier - Use full pagination (for ASC,
--paginatefor RevenueCat tools).starting_after - Continue processing after per-item failures and report all failures together.
- Never auto-delete ASC or RevenueCat resources in this skill.
Common pitfalls
- Wrong RevenueCat or app ID.
project_id - Creating RC products under the wrong platform app.
- Accidentally assigning consumables to entitlements.
- Skipping the post-create ASC re-read step.
- Missing offering/package verification after product creation.
Additional resources
- Workflow examples: examples.md
- Source references: references.md