rc-purchase-flow

rc-purchase-flow is a skill for Claude Code from RevenueCat/ai-toolkit. It costs 51 tokens per session (1,299 once invoked), scanned A, original, MIT.

A guide to completing an Android purchase with RevenueCat. It explains what the SDK does during one purchase call and how to use the returned purchase and access information.

In plain words
What is it for?
Use it when adding one-time purchases or subscriptions, granting access after payment, restoring purchases, or handling purchase errors in an Android app.
Why use it?
It removes the need to build each step of the Google Play purchase process yourself, including verification, acknowledgement, and consumption. It also explains how to handle failed purchases and restored access.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the revenuecat-play-billing plugin — 20 skills shipped together

not rated 65repo +1 8d ago A scan Socket: passSnyk: warnSkillSpector: pass 51 tokens original MIT

Good fit Use it when adding one-time purchases or subscriptions, granting access after payment, restoring purchases, or handling purchase errors in an Android app.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/revenuecat/ai-toolkit/rc-purchase-flow
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add RevenueCat/ai-toolkit --skill rc-purchase-flow
Clone the repo
git clone --depth 1 https://github.com/RevenueCat/ai-toolkit

Made for: Claude Code.

Or install revenuecat-play-billing, the plugin that ships this one along with the rest of its 20 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rc-purchase-flow

README.md
[![agentmods](https://agentmods.dev/badge/skills/revenuecat/ai-toolkit/rc-purchase-flow/github.svg)](https://agentmods.dev/skills/revenuecat/ai-toolkit/rc-purchase-flow)
Your own site
<a href="https://agentmods.dev/skills/revenuecat/ai-toolkit/rc-purchase-flow"><img src="https://agentmods.dev/badge/skills/revenuecat/ai-toolkit/rc-purchase-flow/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rc-purchase-flow

Your own site · 80×15
<a href="https://agentmods.dev/skills/revenuecat/ai-toolkit/rc-purchase-flow"><img src="https://agentmods.dev/badge/skills/revenuecat/ai-toolkit/rc-purchase-flow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,299 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 12 Jun 2026
  • Snyk warn 12 Jun 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.01299
Opus 5 $0.00026 $0.00649
Sonnet 5 $0.00010 $0.00260
Haiku 4.5 $0.00005 $0.00130

Measured 10d ago against content hash 400cb8d23056, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

rc-purchase-flow scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

revenuecat-play-billing/skills/rc-purchase-flow/SKILL.md · 132 lines

How it starts

The opening of the file, as written. The whole thing — 132 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Purchase Flow

A RevenueCat purchase on Android is two lines of code. The SDK handles the billing params, the Play sheet, the purchase token round trip, server side verification, and acknowledgment. You decide which package to pass in and what to do with the returned entitlements.

Phase 1: Understand what awaitPurchase() does

One call to Purchases.sharedInstance.awaitPurchase(params) runs six steps under the hood. You do not write any of this.

Step What happens
1 Builds BillingFlowParams with the correct ProductDetailsParams from your Package
2 Calls BillingClient.launchBillingFlow() against the activity you passed
3 Suspends until the PurchasesUpdatedListener result arrives
4 If OK, posts the Play purchase token to the RevenueCat backend
5 Backend verifies via purchases.subscriptionsv2.get or purchases.products.get
6 SDK acknowledges (subs or non-consumables) or consumes (consumables) within the 3 day Google window

The call returns PurchaseResult(storeTransaction, customerInfo). Retriable failures are retried automatically.

See the Purchase Flow chapter on revenuecat.com for the six-step diagram and the full picture.

Phase 2: Prepare the package

You need a Package from offerings before you can purchase. Fetch offerings, let your UI pick one, and hold the activity.

val offerings = Purchases.sharedInstance.awaitOfferings()
val pkg = offerings.current?.monthly ?: return

If you need a specific offer instead of the default, resolve a SubscriptionOption and pass that to PurchaseParams.Builder instead of the package.

val option = pkg.product.subscriptionOptions
    ?.firstOrNull { it.tags.contains("promo_50_off") }
    ?: pkg.product.defaultOption
    ?: return

For EU personalized pricing, chain .isPersonalizedPrice(true) on the builder so Play shows the customized price notice.

Read the full file on GitHub · 132 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 132 lines · 51 tokens per session scan A 400cb8d23056

Subscribe to this mod's changes

rc-purchase-flow is a skill published in the GitHub repository RevenueCat/ai-toolkit (65 stars, last pushed 8d ago), licensed MIT. It adds 51 tokens to every session and 1,299 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

play-billing-library-version-upgrade

Use this skill when upgrading or migrating an Android project from any legacy Google Play Billing Library (PBL) version to the latest stable version of PBL.

android/skills · 39 tokens

asc-revenuecat-catalog-sync

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.

rorkai/app-store-connect-cli-skills · 51 tokens

axiom-implement-iap

Use when the user wants to add in-app purchases, implement StoreKit 2, or set up subscriptions.

CharlesWiltgen/Axiom · 29 tokens

google-play

Google Play Developer API (Android Publisher) integration with managed OAuth. Manage apps, subscriptions, in-app purchases, and reviews. Use this skill when users want to interact with Google Play Console programmatically. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway).

CraftOS-dev/CraftBot · 70 tokens

subscription-lifecycle

Generates StoreKit 2 subscription lifecycle management — grace periods, billing retry, offer codes, win-back offers, upgrade/downgrade paths, and subscription status monitoring. Use when user needs post-purchase subscription state handling beyond the initial paywall.

rshankras/claude-code-apple-skills · 55 tokens

subscription-offers

Generates StoreKit 2 code for all subscription offer types — introductory, promotional, offer codes, and win-back. Includes eligibility checks, offer presentation, and the preferredSubscriptionOffer modifier. Use when adding subscription offers, free trials, or promotional pricing.

rshankras/claude-code-apple-skills · 55 tokens