plan-changes

plan-changes is a skill for Claude Code, Codex from RevenueCat/play-billing-skills. It costs 84 tokens per session (2,528 once invoked), scanned A, original, Apache-2.0.

A guide to changing an existing Google Play subscription to another plan, such as moving from monthly to annual billing. It explains how Google Play handles access timing and charges during the switch.

In plain words
What is it for?
Use it when coding upgrades, downgrades, or same-price plan switches with Google Play Billing Library 9.x. It helps decide whether the old plan is replaced and how the new plan should be billed.
Why use it?
Subscription changes can give users the wrong access or charge them incorrectly if the replacement mode is mismatched. This guide helps choose the mode based on the type of change and the user's promotional status.

Skill for Claude CodeCodex

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

Good fit Use it when coding upgrades, downgrades, or same-price plan switches with Google Play Billing Library 9.x. It helps decide whether the old plan is replaced and how the new plan should be billed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/revenuecat/play-billing-skills/plan-changes
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 plan-changes
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 plan-changes

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/revenuecat/play-billing-skills/plan-changes"><img src="https://agentmods.dev/badge/skills/revenuecat/play-billing-skills/plan-changes.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,528 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.00084 $0.02528
Opus 5.5 $0.00034 $0.01011
Sonnet 5.5 $0.00017 $0.00506
Haiku 4.5 $0.00008 $0.00253

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

Security

Grade A, and why

plan-changes 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 11d 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/plan-changes/SKILL.md · 175 lines

How it starts

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

Plan Changes: Upgrades, Downgrades, and Plan Switches

Plan changes on Google Play Billing Library (PBL) 9.x always mint a new purchase token. You pick a replacement mode that controls two things: when the user gets access to the new plan, and how Google handles the money between the old and new agreement. This skill walks you through selecting the correct mode and wiring it into BillingFlowParams.

Phase 1: Scope the Change

Before touching code, answer four questions about the requested switch:

  1. Direction: is this an upgrade (new plan costs more), a downgrade (new plan costs less), or a lateral switch (same price, different cadence)?
  2. Billing period: are you moving between plans with the same billing period (monthly to monthly) or across periods (monthly to annual, recurring to prepaid)?
  3. Promotional state: is the user currently inside a free trial or introductory price window that should survive the switch?
  4. Additivity: is the new SKU replacing the old subscription, or should it sit alongside the old one as an add on?

Write those four answers down. Every decision in Phase 2 follows directly from them.

You also need three inputs from the client at runtime:

  • oldPurchaseToken: the purchase token for the subscription the user is leaving.
  • oldProductId: the product ID of the subscription being replaced (from the active Purchase.products), for SubscriptionProductReplacementParams.setOldProductId.
  • ProductDetails and offer token for the new plan, fetched through queryProductDetailsAsync.

If any is missing, stop and fetch it first. Launching the billing flow without a valid oldPurchaseToken produces a new standalone subscription when the target is a different subscription (within the same subscription, Play applies the base plan's default replacement mode).

Also confirm the current purchase is acknowledged (Purchase.isAcknowledged); Play blocks plan changes while it is pending acknowledgement. If the original purchase used setObfuscatedAccountId, pass the same value on the plan change BillingFlowParams.

Read the full file on GitHub · 175 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. 11d ago Changed · +5 lines · +15 tokens per session e7f2c3ac79b4
  2. 1mo ago First seen · 170 lines · 69 tokens per session scan A 0d27537b9706

Subscribe to this mod's changes

plan-changes is a skill published in the GitHub repository RevenueCat/play-billing-skills (58 stars, last pushed 12d ago), licensed Apache-2.0. It adds 84 tokens to every session and 2,528 once invoked, about $0.0003 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

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

gplay-iap-setup

In-app products, subscriptions, base plans, and offers setup for Google Play monetization, including bulk-localizing subscription display names, descriptions, and benefits across all locales. Use when configuring in-app purchases or subscription products.

hanamizuki/solopreneur · 51 tokens

rc-revenuecat-api-quick-reference

Use this skill as a quick reference for the RevenueCat Android SDK 10.x and REST API. Covers SDK init, common Purchases calls, CustomerInfo / Offerings access patterns, and the most used REST endpoints.

RevenueCat/ai-toolkit · 53 tokens