Logo: Revenuecat Catalog Sync

Revenuecat Catalog Sync

Communautéit
exiao
revenuecat-catalog-sync

Reconcile App Store Connect subscriptions and in-app purchases with RevenueCat products, entitlements, offerings, and packages using the asc CLI and the revenuecat mcporter server. Use when setting up or syncing subscription catalogs across ASC and RevenueCat.

Iwwersiicht

Editeurexiao
Repositoryskills
Skill-Nummrevenuecat-catalog-sync
Stären
40
Forks
12
Matgeliwwert Dateien
2
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 2 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    exiao huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Revenuecat Catalog Sync an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/exiao/skills/tree/main/app-store/app-store-connect/revenuecat-catalog-sync
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/exiao/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/app-store/app-store-connect/revenuecat-catalog-sync .claude/skills/revenuecat-catalog-sync
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Revenuecat Catalog Sync an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Revenuecat Catalog Sync automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Revenuecat Catalog Sync net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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).
  • mcporter is installed and the revenuecat server is registered in ~/.mcporter/mcporter.json (configure the revenuecat server in ~/.mcporter/mcporter.json).
  • REVENUECAT_API_KEY is set in the agent environment for read operations via mcporter.
  • For write operations (create/update), REVENUECAT_WRITE_API_KEY (a v2 secret key with write scope) must be set — these go through the REST API directly, not mcporter.
  • You know:
    • ASC app ID (APP_ID)
    • RevenueCat project_id (Bloom = $REVENUECAT_PROJECT_ID)
    • target RevenueCat app type (app_store or mac_app_store) and bundle ID for create flows

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

  • The mcporter revenuecat server (mcporter) is read-only: list/get for projects, apps, products, entitlements, offerings, packages, customers, subscriptions.
  • All writes (create/update products, attach entitlements, create offerings/packages) go through the RevenueCat v2 REST API directly via curl, using REVENUECAT_WRITE_API_KEY.
  • 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

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 json

Step B - Read current RevenueCat catalog (mcporter)

Use the revenuecat mcporter server via mcporter call revenuecat.<tool>. All tool names use dashes, not underscores. Pass project_id and paginate with starting_after where applicable.

bash
mkdir -p /tmp/revenuecat
mcporter call revenuecat.list-apps         project_id=$REVENUECAT_PROJECT_ID --output json > /tmp/revenuecat/apps.json
mcporter call revenuecat.list-products     project_id=$REVENUECAT_PROJECT_ID limit:100 --output json > /tmp/revenuecat/products.json
mcporter call revenuecat.list-entitlements project_id=$REVENUECAT_PROJECT_ID --output json > /tmp/revenuecat/entitlements.json
mcporter call revenuecat.list-offerings    project_id=$REVENUECAT_PROJECT_ID --output json > /tmp/revenuecat/offerings.json
# packages are per-offering:
mcporter call revenuecat.list-packages     project_id=$REVENUECAT_PROJECT_ID offering_id=default --output json > /tmp/revenuecat/packages.json

Note: list-projects replaces the old get_project for project discovery. There is no get_project in the current MCP.

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.

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

The current public RC MCP is read-only — these are write operations and must use the v2 REST API directly via curl with a write-scoped key (REVENUECAT_WRITE_API_KEY).

bash
# Create app (if missing)
curl -sS -X POST "https://api.revenuecat.com/v2/projects/$REVENUECAT_PROJECT_ID/apps" \
  -H "Authorization: Bearer $REVENUECAT_WRITE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "$APP_NAME", "type": "app_store", "bundle_id": "$APP_BUNDLE_ID"}'

# Create product (per ASC product)
curl -sS -X POST "https://api.revenuecat.com/v2/projects/$REVENUECAT_PROJECT_ID/products" \
  -H "Authorization: Bearer $REVENUECAT_WRITE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "store_identifier": "com.example.premium.monthly",
    "type": "subscription",
    "app_id": "<RC_APP_ID>"
  }'

After creating, re-read with mcporter call revenuecat.list-products to confirm.

Step F - Ensure entitlements and attachments

Read via mcporter; write via REST API:

bash
# Read
mcporter call revenuecat.list-entitlements project_id=$REVENUECAT_PROJECT_ID --output json
mcporter call revenuecat.get-products-from-entitlement \
  project_id=$REVENUECAT_PROJECT_ID entitlement_id=premium --output json

# Write: create entitlement
curl -sS -X POST "https://api.revenuecat.com/v2/projects/$REVENUECAT_PROJECT_ID/entitlements" \
  -H "Authorization: Bearer $REVENUECAT_WRITE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lookup_key": "premium", "display_name": "Premium"}'

# Write: attach products to entitlement
curl -sS -X POST "https://api.revenuecat.com/v2/projects/$REVENUECAT_PROJECT_ID/entitlements/<ENT_ID>/actions/attach_products" \
  -H "Authorization: Bearer $REVENUECAT_WRITE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"product_ids": ["<RC_PRODUCT_ID>"]}'

Step G - Ensure offerings and packages (optional)

Read via mcporter; write via REST API:

bash
# Read
mcporter call revenuecat.list-offerings project_id=$REVENUECAT_PROJECT_ID --output json
mcporter call revenuecat.list-packages project_id=$REVENUECAT_PROJECT_ID offering_id=default --output json

# Write: create offering
curl -sS -X POST "https://api.revenuecat.com/v2/projects/$REVENUECAT_PROJECT_ID/offerings" \
  -H "Authorization: Bearer $REVENUECAT_WRITE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lookup_key": "default", "display_name": "Default"}'

# Write: create package
curl -sS -X POST "https://api.revenuecat.com/v2/projects/$REVENUECAT_PROJECT_ID/offerings/<OFF_ID>/packages" \
  -H "Authorization: Bearer $REVENUECAT_WRITE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lookup_key": "$rc_monthly", "display_name": "Monthly", "position": 1}'

# Write: attach products to package
curl -sS -X POST "https://api.revenuecat.com/v2/projects/$REVENUECAT_PROJECT_ID/packages/<PKG_ID>/actions/attach_products" \
  -H "Authorization: Bearer $REVENUECAT_WRITE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"products": [{"product_id": "<RC_PRODUCT_ID>", "eligibility_criteria": "all"}]}'

# Write: mark current offering
curl -sS -X POST "https://api.revenuecat.com/v2/projects/$REVENUECAT_PROJECT_ID/offerings/<OFF_ID>" \
  -H "Authorization: Bearer $REVENUECAT_WRITE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"is_current": true}'

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 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

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Revenuecat Catalog Sync?

Reconcile App Store Connect subscriptions and in-app purchases with RevenueCat products, entitlements, offerings, and packages using the asc CLI and the revenuecat mcporter server. Use when setting up or syncing subscription catalogs across ASC and RevenueCat.

Firwat Revenuecat Catalog Sync op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Revenuecat Catalog Sync besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Revenuecat Catalog Sync an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/exiao/skills/tree/main/app-store/app-store-connect/revenuecat-catalog-sync an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Revenuecat Catalog Sync benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Revenuecat Catalog Sync benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Revenuecat Catalog Sync domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Revenuecat Catalog Sync gratis?

exiao huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇