Synchronisation de catalogue ASC/RevenueCat

VérifiéPrudence

Synchroniser les abonnements et achats intégrés d'App Store Connect avec RevenueCat. Utile pour initialiser ou auditer le catalogue.

Spar Skills Guide Bot
DeveloppementAvancé
28/07/2026
Claude CodeCursor
#app-store-connect#revenuecat#subscriptions#in-app-purchases#catalog-sync

Recommandé pour

Synthèse automatique

Cette skill réconcilie le catalogue d'abonnements et d'achats intégrés d'App Store Connect avec les produits, entitlements, offerings et packages RevenueCat, via la CLI asc et le serveur MCP RevenueCat.

Points forts

  • Démarre par défaut en mode audit en lecture seule et exige une confirmation explicite avant toute écriture.
  • Utilise un identifiant déterministe (productId ASC = store_identifier RevenueCat) plutôt que des noms d'affichage.
  • Fournit une table de correspondance explicite entre les types ASC (CONSUMABLE, NON_CONSUMABLE, NON_RENEWING_SUBSCRIPTION) et les types RevenueCat.
  • Exécute les écritures dans un ordre défini (ASC, produits, entitlements, offerings) puis imprime un récapitulatif de réconciliation en continuant sur les échecs individuels.

Limites

  • Suppose une authentification asc déjà configurée et un serveur MCP RevenueCat authentifié, avec un project_id et un APP_ID connus.
  • Ne couvre pas les suppressions ni les changements de prix : le périmètre reste la création et le mapping de ressources.
  • Le MCP RevenueCat ne crée pas de produits ASC ; la création côté App Store Connect dépend entièrement des commandes asc.
Quand l'utiliser

À utiliser pour amorcer RevenueCat depuis un catalogue ASC existant ou pour auditer les divergences avant une mise en production.

Quand l'éviter

À éviter si vous cherchez à modifier des prix, supprimer des produits ou travailler sans accès en écriture à l'API RevenueCat v2.

Analyse de sécurité

Prudence
Score qualité88/100

No destructive, obfuscated, or exfiltrating behavior: no curl|sh, no secret/token transmission, no deletions, and it explicitly defaults to read-only audit mode with per-item confirmation before writes. Risk is limited to the powerful but legitimate use of bash `asc` commands plus a write-enabled RevenueCat API key to create and attach real store/revenue products, which warrants a caution rather than safe.

Points d'attention
  • •Instructs use of a write-enabled RevenueCat API v2 key and creation of live App Store Connect products/subscriptions/IAPs — real billing/store mutations.
  • •Runs bash `asc` CLI commands and MCP tools with network/store access; applying changes has real-world consequences if confirmation is skipped.
  • •Recommends creating a `is_current=true` offering, which can change what paywalls show to users.
Comment cette analyse est faite

Exemples

Audit de divergence avant release
Compare my App Store Connect subscriptions and IAPs for app ID 123456789 with my RevenueCat project proj_abc123. Run in audit mode only: show what's missing on each side and any identifier or type conflicts, then propose a mapping plan without writing anything.
Bootstrap RevenueCat depuis ASC
Bootstrap my RevenueCat project proj_abc123 from the existing App Store Connect catalog of app 123456789. Map ASC subscriptions to RevenueCat subscriptions with one entitlement per subscription group, non-consumables to one entitlement each, and skip consumables. Show the plan first and wait for my confirmation.
Créer les produits ASC manquants puis mapper
For app 123456789, create the missing ASC subscription group 'Premium' with a monthly and yearly subscription, then create the matching RevenueCat products in project proj_abc123 for the app_store bundle id com.example.app and attach them to the Premium entitlement. Report any per-item failures at the end.

name: asc-revenuecat-catalog-sync description: 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.

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

  • asc authentication is configured (asc auth login or ASC_* env vars).
  • 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 (app_store or mac_app_store) and bundle ID for create flows
  • 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 productId == RevenueCat store_identifier.
  • Keep productId stable once products are live.
  • 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 asc commands to create missing ASC subscription groups, subscriptions, and IAPs before RevenueCat mapping.

Modes

1) Audit mode (default)

  1. Read ASC source catalog.
  2. Read RevenueCat target catalog.
  3. Build a diff with actions:
    • missing in ASC
    • missing in RevenueCat
    • mapping conflicts (identifier/type/app mismatch)
  4. Present a plan and wait for confirmation.

2) Apply mode (explicit)

Execute approved actions in this order:

  1. Ensure ASC groups/subscriptions/IAP exist.
  2. Ensure RevenueCat app/products exist.
  3. Ensure entitlements and product attachments.
  4. Ensure offerings/packages and package attachments.
  5. Verify and print a final reconciliation summary.

Step-by-step workflow

Step A - Read current ASC catalog

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-id "GROUP_ID" --paginate --output json

Step B - Read current RevenueCat catalog (MCP)

Use these MCP tools (with project_id and pagination where applicable):

  • mcp_RC_get_project
  • mcp_RC_list_apps
  • mcp_RC_list_products
  • mcp_RC_list_entitlements
  • mcp_RC_list_offerings
  • mcp_RC_list_packages

Step C - Build mapping plan

Map ASC product types to RevenueCat product types:

  • ASC subscription -> RevenueCat subscription
  • ASC IAP CONSUMABLE -> RevenueCat consumable
  • ASC IAP NON_CONSUMABLE -> RevenueCat non_consumable
  • ASC IAP NON_RENEWING_SUBSCRIPTION -> RevenueCat non_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.

# create subscription group
asc subscriptions groups create --app "APP_ID" --reference-name "Premium"

# create subscription
asc subscriptions create \
  --group-id "GROUP_ID" \
  --reference-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
    • store_identifier = ASC productId
    • app_id = RevenueCat app ID
    • type from mapping above

Step F - Ensure entitlements and attachments

Use MCP:

  • list/create entitlements: mcp_RC_list_entitlements, mcp_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_offerings
    • mcp_RC_create_offering
    • mcp_RC_update_offering (is_current=true only if requested)
  • list/create packages:
    • mcp_RC_list_packages
    • mcp_RC_create_package
  • attach products to packages:
    • mcp_RC_attach_products_to_package with eligibility_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:

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 app

Agent behavior

  • Always run audit first, even in apply mode.
  • Ask for confirmation before create/update operations.
  • Match by store_identifier first.
  • Use full pagination (--paginate for ASC, starting_after for RevenueCat tools).
  • 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 project_id or app 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

Du fichier au premier essai

Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.

Consulter la source et ses fichiers annexes

Ce téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.

1. Télécharger le fichier

Télécharger SKILL.md

Depuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/asc-revenuecat-catalog-sync-ms47vqm9/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.

Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.

mkdir -p '.skill-downloads/asc-revenuecat-catalog-sync-ms47vqm9' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/asc-revenuecat-catalog-sync-ms47vqm9/download' --output '.skill-downloads/asc-revenuecat-catalog-sync-ms47vqm9/SKILL.md.part' && mv '.skill-downloads/asc-revenuecat-catalog-sync-ms47vqm9/SKILL.md.part' '.skill-downloads/asc-revenuecat-catalog-sync-ms47vqm9/SKILL.md'

2. Vérifier les prérequis

Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.

Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.

Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.

3. Charger la skill

Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.

Claude Code
test -f '.skill-downloads/asc-revenuecat-catalog-sync-ms47vqm9/SKILL.md' && test -s '.skill-downloads/asc-revenuecat-catalog-sync-ms47vqm9/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/asc-revenuecat-catalog-sync' && cp -R '.skill-downloads/asc-revenuecat-catalog-sync-ms47vqm9' '.claude/skills/asc-revenuecat-catalog-sync'

Cursor
test -f '.skill-downloads/asc-revenuecat-catalog-sync-ms47vqm9/SKILL.md' && test -s '.skill-downloads/asc-revenuecat-catalog-sync-ms47vqm9/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/asc-revenuecat-catalog-sync' && cp -R '.skill-downloads/asc-revenuecat-catalog-sync-ms47vqm9' '.cursor/skills/asc-revenuecat-catalog-sync'

OpenSkills

OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.

Installation officielle d’OpenSkills
openskills install './.skill-downloads/asc-revenuecat-catalog-sync-ms47vqm9'

openskills read 'asc-revenuecat-catalog-sync-ms47vqm9'

La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.

Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.

openskills sync

Mode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.

4. Faire un premier essai

Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :

Lis .skill-downloads/asc-revenuecat-catalog-sync-ms47vqm9/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.

Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.

Skills similaires