Logo : Understanding Revenuecat

Understanding Revenuecat

Organisation
RevenueCat
understanding-revenuecat

Use this skill to orient an agent to the RevenueCat Android SDK (10.x) architecture. Covers how RevenueCat reorganizes BillingClient, Google Play Developer API, and RTDN into a single SDK, and how Products, Packages, Offerings, Entitlements, and CustomerInfo connect.

Add to TypingMind

Présentation

ÉditeurRevenueCat
Dépôtplay-billing-skills
Nom de la compétenceunderstanding-revenuecat
Étoiles
58
Forks
0
Fichiers inclus
Instructions uniquement
LicenceApache-2.0
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont rédigées en Markdown et non sous forme de code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • Tout dans les instructions

    Tout ce dont le modèle a besoin se trouve dans les instructions : aucun fichier supplémentaire à synchroniser.

  • Open source

    Publiée par RevenueCat sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Understanding Revenuecat dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Copiez l’URL ci-dessous, qui pointe vers le dossier de la compétence, puis collez-la et confirmez.
    https://github.com/RevenueCat/play-billing-skills/tree/main/revenuecat/understanding-revenuecat
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter une compétence → Via une URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/RevenueCat/play-billing-skills.git /tmp/play-billing-skills
mkdir -p .claude/skills
cp -r /tmp/play-billing-skills/revenuecat/understanding-revenuecat .claude/skills/understanding-revenuecat
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Understanding Revenuecat dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Understanding Revenuecat dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, la compétence Understanding Revenuecat n’est pas liée au modèle pour lequel elle a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

Understanding RevenueCat

Phase 0: Intent

Use this skill before writing any RevenueCat code. It gives you the vocabulary and mental model you need so that downstream skills (setup, configuration, purchase flow, entitlements) make sense.

Start here if any of these apply:

  • You are new to RevenueCat or coming from a raw Play Billing integration.
  • You are unsure which concept maps to which dashboard object.
  • You need to decide which downstream skill to invoke for a specific user goal.

Skip this skill if you already know the difference between an Offering, a Package, a Product, and an Entitlement, and you already know that Purchases.sharedInstance is the single entry point.

Phase 1: Orient

Raw Android in-app purchases require three separate systems. RevenueCat folds all three into one SDK plus one dashboard.

Raw Google Play stackRevenueCat replacementWhere it lives
BillingClient on the clientPurchases SDKYour Android app
Google Play Developer API on your serverRevenueCat backendRevenueCat managed
Real Time Developer Notifications via Cloud Pub/SubRevenueCat webhooksRevenueCat managed, delivered to your server

The call path is:

text
Your App
  -> Purchases SDK
  -> RevenueCat Backend
  -> Google Play Developer API
  -> Google Play

Your app talks to the Purchases SDK. The SDK talks to Google Play for the purchase UI and to the RevenueCat backend for verification and entitlement storage. Your server side code talks to the RevenueCat backend, not to Google Play directly.

One consequence: RevenueCat sits in the purchase verification path. After a user completes a purchase, the SDK posts the token to RevenueCat before your app sees confirmation. You trade a network round trip for not having to build server side verification yourself.

The four concepts you must know

ConceptWhat it isWhere you define it
ProductA subscription, base plan, or one time purchaseGoogle Play Console
PackageA Product wrapped with a type label (Monthly, Annual, Lifetime, custom). The unit your paywall displaysRevenueCat dashboard
OfferingA group of Packages. One Offering is the Default offering and is returned by offerings.currentRevenueCat dashboard
EntitlementA logical access level your app checks, such as "pro_access". Products are attached to EntitlementsRevenueCat dashboard

CustomerInfo is the runtime snapshot of the user's purchase history and active Entitlements, computed and cached by RevenueCat.

The only two reads you need most of the time

kotlin
val offerings = Purchases.sharedInstance.awaitOfferings()
val monthly = offerings.current?.monthly
kotlin
val customerInfo = Purchases.sharedInstance.awaitCustomerInfo()
val hasPro = customerInfo.entitlements["pro_access"]?.isActive == true

isActive already resolves the eight Play subscription states (ACTIVE, IN_GRACE_PERIOD, ON_HOLD, PAUSED, CANCELED, EXPIRED, PENDING, PENDING_PURCHASE_CANCELED) on the server side. You do not reimplement that logic on the client.

The singleton

Purchases.sharedInstance is the single entry point. You configure it once at app startup:

kotlin
Purchases.configure(
    PurchasesConfiguration.Builder(context, "your_api_key")
        .appUserID("optional_user_id")
        .build()
)

Unlike BillingClient, the singleton does not require you to manage connection state. It reconnects and queues calls for you.

What RevenueCat does not replace

  • Google Play Console. You still create products, base plans, and offers there.
  • Your app UI. You still build the paywall and display prices. RevenueCat supplies the data.
  • Your authentication system. You bring your own user IDs and pass them to the SDK.

The tradeoff

You offload verification complexity and take on a dependency. If the RevenueCat backend has an outage, purchase verification is affected. Two mitigations exist and they are different:

FeatureWhat it doesWhen it kicks in
Disk cache of CustomerInfoReturns the last known server state for entitlement checksAutomatic, always on
Offline EntitlementsComputes subscription entitlements on the device from local Play Store purchases and the cached product to entitlement mappingAutomatic when RevenueCat's servers return errors. Not for one time purchases, and off when your app completes purchases itself

Neither is a full substitute for a reachable backend. Use both where they apply.

Phase 2: Map the user goal to a downstream skill

Once you have the model above, pick the next skill based on what the user actually wants to do.

User goalNext skill
Create the dashboard project, connect Play service credentials, create entitlements and offerings, get the API keyrevenuecat/setup
Add the Gradle dependency, call Purchases.configure, pass an appUserID, set log levelrevenuecat/configuring-the-sdk
Fetch Offerings, show a paywall, call purchase, handle the resultrevenuecat/purchase-flow
Check customerInfo.entitlements["..."]?.isActive, gate features, listen for updatesrevenuecat/subscription-states
Identify, alias, or log out a userrevenuecat/configuring-the-sdk (app user id strategy) and revenuecat/subscription-states (logIn/logOut)
Handle restore purchases, cross device, promo codesrevenuecat/purchase-flow (Phase 5)
Receive server side events from RevenueCatrevenuecat/webhooks
Debug a specific purchase, receipt, or entitlement in productionrevenuecat/error-handling or revenuecat/testing

If the user's goal does not match any row, stay here and keep clarifying intent before routing.

Phase 3: Sanity check

Before you leave this skill and route to a downstream one, confirm out loud:

  1. You can name which of the three raw pillars (client billing, server Play Developer API, RTDN) the user's question touches.
  2. You can state whether the user is asking about a Product, a Package, an Offering, or an Entitlement. These are not interchangeable.
  3. You know whether the user needs Offerings (what to sell) or CustomerInfo (what the user already owns). Most confusion comes from mixing these two.
  4. You have picked exactly one downstream skill to invoke next, or you have a concrete clarifying question.

If any of the four fail, reread Phase 1 or the chapter before proceeding.

References

Foire aux questions

À quoi sert la compétence IA Understanding Revenuecat ?

Use this skill to orient an agent to the RevenueCat Android SDK (10.x) architecture. Covers how RevenueCat reorganizes BillingClient, Google Play Developer API, and RTDN into a single SDK, and how Products, Packages, Offerings, Entitlements, and CustomerInfo connect.

Pourquoi utiliser Understanding Revenuecat sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Understanding Revenuecat se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Understanding Revenuecat dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/RevenueCat/play-billing-skills/tree/main/revenuecat/understanding-revenuecat. TypingMind lit le fichier SKILL.md et l’installe sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Understanding Revenuecat ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Understanding Revenuecat ?

Autant que vous le souhaitez. Vous pouvez utiliser Understanding Revenuecat avec tout modèle qui prend en charge les compétences : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Understanding Revenuecat est-elle gratuite ?

Oui. Cette compétence est publiée sur GitHub par RevenueCat sous licence Apache-2.0. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, gabarits ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇