integrating-pbl

integrating-pbl is a skill for Claude Code, Codex from RevenueCat/play-billing-skills. It costs 45 tokens per session (2,349 once invoked), scanned A, original, Apache-2.0.

A setup guide for adding Google Play Billing Library 9.x to an Android app. The library provides the Android code needed to connect to Google Play and read available products.

In plain words
What is it for?
Adding or upgrading the billing library, creating BillingClient, handling its connection, fixing connection callbacks, and querying product details.
Why use it?
Billing integrations can fail when the dependency, connection lifecycle, or product lookup is wired incorrectly. This guide helps establish and check that client-side foundation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Adding or upgrading the billing library, creating BillingClient, handling its connection, fixing connection callbacks, and querying product details.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/revenuecat/play-billing-skills/integrating-pbl
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/play-billing-skills --skill integrating-pbl
Clone the repo
git clone --depth 1 https://github.com/RevenueCat/play-billing-skills

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/revenuecat/play-billing-skills/integrating-pbl/github.svg)](https://agentmods.dev/skills/revenuecat/play-billing-skills/integrating-pbl)
Your own site
<a href="https://agentmods.dev/skills/revenuecat/play-billing-skills/integrating-pbl"><img src="https://agentmods.dev/badge/skills/revenuecat/play-billing-skills/integrating-pbl/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 integrating-pbl

Your own site · 80×15
<a href="https://agentmods.dev/skills/revenuecat/play-billing-skills/integrating-pbl"><img src="https://agentmods.dev/badge/skills/revenuecat/play-billing-skills/integrating-pbl.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,349 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.
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.00045 $0.02349
Opus 5.5 $0.00018 $0.00940
Sonnet 5.5 $0.00009 $0.00470
Haiku 4.5 $0.00005 $0.00235

Measured 1mo ago against content hash f979e69b68b6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

integrating-pbl 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.

google-play/integrating-pbl/SKILL.md · 249 lines

How it starts

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

Integrating the Play Billing Library

You are wiring the Play Billing Library into an Android app. This skill covers the client side setup: adding the dependency, building BillingClient, managing the connection, and querying products. Follow the phases in order.

Phase 0: Intent

Confirm what the caller actually wants before you touch code. Pick one:

Intent Signal
First time integration No com.android.billingclient dependency yet
Upgrading PBL Existing BillingClient on an older version
Fixing connection bugs SERVICE_DISCONNECTED, missing onBillingSetupFinished callbacks
Adding product queries BillingClient exists, no queryProductDetailsAsync call

If the request is ambiguous, ask. Do not write Gradle edits or Kotlin until you know the target state.

Phase 1: Discovery

Inspect the project before changing anything.

Check the Gradle setup:

grep -r "com.android.billingclient" --include="*.gradle*"

Check existing BillingClient usage:

grep -rn "BillingClient" --include="*.kt" --include="*.java" src/

Record these facts:

Fact Why it matters
Current PBL version Drives migration steps (PBL 8 and 9 require PendingPurchasesParams)
Context passed to builder Any context works; BillingClient uses its application context
Whether enablePendingPurchases is called Missing call throws IllegalArgumentException on build()
Whether auto reconnection is enabled Absent means you own retry logic
Where BillingClient is instantiated ViewModel, singleton, or Application scoped
Whether KTX is on the classpath Decides callback vs coroutine style
compileSdk PBL 9 needs 35+ (androidx.core 1.15.0)
minSdk PBL 8.1+ needs 23+
Kotlin version billing-ktx 9.x needs Kotlin 2.2+; on older Kotlin use plain billing

If you find multiple BillingClient instances in one process, flag it. One instance per process is the rule.

Phase 2: Plan

Read the full file on GitHub · 249 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. 1mo ago Changed · +18 lines f979e69b68b6
  2. 3mo ago First seen · 231 lines · 45 tokens per session scan A 3af68d8fbbbb

Subscribe to this mod's changes

integrating-pbl is a skill published in the GitHub repository RevenueCat/play-billing-skills (60 stars, last pushed 16d ago), licensed Apache-2.0. It adds 45 tokens to every session and 2,349 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.

Related

integrating-pbl compared with skills from other repositories

integrating-pbl next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
integrating-pblRevenueCat/play-billing-skillsSkill6016d agoApache-2.0A45Claude Code, Codex
play-billing-library-version-upgradeandroid/skillsSkill11k9d agoApache-2.0A39Claude Code
asc-revenuecat-catalog-syncrorkai/app-store-connect-cli-skillsSkill1.2k2d agoMITA51Claude Code
axiom-implement-iapCharlesWiltgen/AxiomSkill1.3ktodayMITA29Codex
subscription-lifecyclershankras/claude-code-apple-skillsSkill92323d agoMITA55Claude Code
google-playCraftOS-dev/CraftBotSkill4313d agoMITA70Claude Code, Codex
subscription-offersrshankras/claude-code-apple-skillsSkill92323d agoMITA55Claude Code