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.
npx skills add RevenueCat/play-billing-skills --skill purchase-flowgit clone --depth 1 https://github.com/RevenueCat/play-billing-skillsWrote 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.
[](https://agentmods.dev/skills/revenuecat/play-billing-skills/purchase-flow)<a href="https://agentmods.dev/skills/revenuecat/play-billing-skills/purchase-flow"><img src="https://agentmods.dev/badge/skills/revenuecat/play-billing-skills/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.
<a href="https://agentmods.dev/skills/revenuecat/play-billing-skills/purchase-flow"><img src="https://agentmods.dev/badge/skills/revenuecat/play-billing-skills/purchase-flow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00048 | $0.02446 |
| Opus 5.5 | $0.00019 | $0.00978 |
| Sonnet 5.5 | $0.00010 | $0.00489 |
| Haiku 4.5 | $0.00005 | $0.00245 |
Grade A, and why
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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 224 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Purchase Flow
Implements the full client side purchase sequence: build BillingFlowParams, launch launchBillingFlow(), receive callbacks in PurchasesUpdatedListener, handle every response code, then verify, acknowledge, and grant access.
Phase 0: Intent
Use this skill when you need to:
- Launch a purchase from a "Buy" tap for a one time product or a subscription.
- Wire a
PurchasesUpdatedListenerand handle everyBillingResponseCode. - Decide where to verify, where to acknowledge, and how to grant entitlements idempotently.
- Support pending transactions (cash at convenience store, carrier billing, slow card auth).
- Sell subscriptions with add ons (several subscription items in one transaction).
Out of scope: connecting BillingClient, querying ProductDetails, subscription upgrades or downgrades, and retry or error taxonomy beyond the launch results listed below.
Phase 1: Discovery
Confirm the preconditions before you build params.
| Check | How | Why |
|---|---|---|
BillingClient connected |
billingClient.isReady == true |
Calls fail without a live connection. |
ProductDetails cached |
Held from a prior queryProductDetailsAsync |
Required input to ProductDetailsParams. |
| Pending purchases enabled | BillingClient.Builder.enablePendingPurchases(...) was called |
Users with delayed payment cannot buy otherwise. |
| Existing ownership known | Ran queryPurchasesAsync() recently |
Prevents ITEM_ALREADY_OWNED surprises. |
| Offer token resolved | Subs: from subscriptionOfferDetails. One time: from oneTimePurchaseOfferDetailsList when the product has several purchase options or offers |
A missing subs token returns DEVELOPER_ERROR; a missing one time token silently buys the default purchase option. |
Record the product type (INAPP vs SUBS), the selected basePlanId, and the chosen offerToken before moving on.
Phase 2: Plan
Decide the following before you call newBuilder().
Account identifiers
- obfuscatedAccountId: attach a one way hash of your internal user id. Never pass raw email or plain text. Helps Google Play detect fraud across devices.
- obfuscatedProfileId: attach only if your app has multiple profiles under one account (family streaming, kid profiles).
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.
- 1mo ago Changed · +4 lines 98832fa1f912
- 3mo ago First seen · 220 lines · 48 tokens per session scan A 7bb239074226
purchase-flow is a skill published in the GitHub repository RevenueCat/play-billing-skills (60 stars, last pushed 16d ago), licensed Apache-2.0. It adds 48 tokens to every session and 2,446 once invoked, about $0.0002 per session on Opus 5.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.
purchase-flow compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| purchase-flowRevenueCat/play-billing-skills | Skill | 60 | 16d ago | Apache-2.0 | A | 48 | Claude Code, Codex |
| play-billing-library-version-upgradeandroid/skills | Skill | 11k | 9d ago | Apache-2.0 | A | 39 | Claude Code |
| asc-revenuecat-catalog-syncrorkai/app-store-connect-cli-skills | Skill | 1.2k | 2d ago | MIT | A | 51 | Claude Code |
| axiom-implement-iapCharlesWiltgen/Axiom | Skill | 1.3k | today | MIT | A | 29 | Codex |
| subscription-lifecyclershankras/claude-code-apple-skills | Skill | 923 | 23d ago | MIT | A | 55 | Claude Code |
| google-playCraftOS-dev/CraftBot | Skill | 431 | 3d ago | MIT | A | 70 | Claude Code, Codex |
| subscription-offersrshankras/claude-code-apple-skills | Skill | 923 | 23d ago | MIT | A | 55 | Claude Code |