pbl-v8-to-v9-migration

pbl-v8-to-v9-migration is a skill for Claude Code, Codex from RevenueCat/play-billing-skills. It costs 107 tokens per session (3,672 once invoked), scanned A, original, Apache-2.0.

A guide to moving an Android app from Google Play Billing Library 8.x to 9.x. It explains the small compatibility changes needed for this library upgrade.

In plain words
What is it for?
Updating the billing dependency, checking target SDK and AndroidX requirements, adjusting changed compatibility details, and testing optional billing features.
Why use it?
Library upgrades can require build settings and code adjustments even when existing APIs remain available. This guide helps identify the current version and apply the required v9 changes.

Skill for Claude CodeCodex

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

Good fit Updating the billing dependency, checking target SDK and AndroidX requirements, adjusting changed compatibility details, and testing optional billing features.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/revenuecat/play-billing-skills/pbl-v8-to-v9-migration
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 pbl-v8-to-v9-migration
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 pbl-v8-to-v9-migration

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/revenuecat/play-billing-skills/pbl-v8-to-v9-migration"><img src="https://agentmods.dev/badge/skills/revenuecat/play-billing-skills/pbl-v8-to-v9-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,672 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.00107 $0.03672
Opus 5.5 $0.00043 $0.01469
Sonnet 5.5 $0.00021 $0.00734
Haiku 4.5 $0.00011 $0.00367

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

Security

Grade A, and why

pbl-v8-to-v9-migration 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/pbl-v8-to-v9-migration/SKILL.md · 186 lines

How it starts

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

Phase 0: Intent

Announce to the user: "I will migrate this project from PBL 8 to PBL 9."

State the key fact up front so the user calibrates effort correctly: the v9 delta is small, but it is not zero. PBL 8.0.0 removed the methods of the old surface (querySkuDetailsAsync, queryPurchaseHistoryAsync, the String overload of queryPurchasesAsync, the parameterless enablePendingPurchases()). PBL 9.0.0 (released 2026-05-19) then deleted the deprecated types those methods left behind: BillingClient.SkuType, SkuDetails, SkuDetailsParams, SkuDetailsResponseListener, QueryPurchaseHistoryParams, and BillingFlowParams.Builder.setSkuDetails(). A v8 app that still references any of them stops compiling. On top of that, v9 raises the build floor (compileSdk 35, and Kotlin 2.2 if you use billing-ktx), changes two behaviors, and adds one optional feature. The latest release is 9.1.0 (2026-06-18), which adds the Billing Choice APIs on top of 9.0.0; target it.

If the project calls querySkuDetailsAsync, queryPurchaseHistoryAsync, or the parameterless enablePendingPurchases(), it does not compile against v8 at all, so the real baseline is pre-v8. Stop and route the user to pbl-v7-to-v9-migration, which does the v8 work first. Leftover references to the SkuType constants or the SkuDetails types alone are normal in a v8 codebase: they are the v9 removals handled in Step 2.

Phase 1: Discovery

Gather the facts before changing anything.

  1. Locate the dependency. Open build.gradle, build.gradle.kts, or libs.versions.toml and find com.android.billingclient:billing or billing-ktx. Confirm the version reads 8.x.x. If it reads 7.x or lower, switch to the pbl-v7-to-v9-migration skill. Record which artifact is used; billing-ktx adds a Kotlin requirement.
  2. Scan for the types v9 removed. Grep for SkuType, SkuDetails, SkuDetailsParams, SkuDetailsResponseListener, QueryPurchaseHistoryParams, and setSkuDetails(. Every hit is a compile error on v9.
  3. Check the build floor. Read compileSdk, minSdk, targetSdk, and the Kotlin Gradle plugin version. v9 needs compileSdk 35 or higher (it depends on androidx.core:core:1.15.0, which declares a minimum compileSdk of 35, so the build fails below it) and minSdk 23 (unchanged since PBL 8.1). With billing-ktx, the Kotlin Gradle plugin must be 2.2 or newer. targetSdk is not set by PBL; record it for the note in Step 3.
  4. Check for a pinned androidx.core. v9's blocked store reclassification needs androidx.core 1.9 or later. PBL 9 already pulls 1.15.0 transitively, so this only breaks if the build forces a lower version. Grep the build files for androidx.core together with force, strictly, or resolutionStrategy.
  5. Scan for developer provided billing. Grep for DeveloperProvidedBillingDetails, getLinkUri, enableDeveloperBillingOption, and enableBillingProgram. These are the External Payments APIs from PBL 8.3. If any hit, the nullable getLinkUri() change in Step 5 applies. If none hit, you can skip that step.
  6. Scan error handling. Grep for BillingResponseCode.ERROR and BillingResponseCode.BILLING_UNAVAILABLE. Note every place that branches on a generic ERROR for an unavailable store, because v9 reclassifies the blocked store case.
  7. Note in app messaging usage. Grep for showInAppMessages and InAppMessageParams. If present, the optional price increase messaging step applies.

Read the full file on GitHub · 186 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 · +23 lines · +23 tokens per session 73fc859a9595
  2. 3mo ago First seen · 163 lines · 84 tokens per session scan A e494f921f4d6

Subscribe to this mod's changes

pbl-v8-to-v9-migration is a skill published in the GitHub repository RevenueCat/play-billing-skills (60 stars, last pushed 16d ago), licensed Apache-2.0. It adds 107 tokens to every session and 3,672 once invoked, about $0.0004 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

pbl-v8-to-v9-migration compared with skills from other repositories

pbl-v8-to-v9-migration next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pbl-v8-to-v9-migrationRevenueCat/play-billing-skillsSkill6016d agoApache-2.0A107Claude Code, Codex
kotlin-specialistJeffallan/claude-skillsSkill13kyesterdayMITA86Claude Code
wear-compose-m3android/skillsSkill11k9d agoApache-2.0A108Claude Code
ink-custom-brush-builderandroid/skillsSkill11k9d agoApache-2.0A159Claude Code
swiftui-devOrkas-AI/OrkasSkill7.7ktodayMITA3Claude Code, Codex
build-android-binarymicrosoft/power-platform-skillsSkill1.2ktodayMITA150Claude Code
kotlin-androidericrisco/rsc-harnessSkill695yesterdayMITA78Claude Code, Codex