subscription-state-diagram

subscription-state-diagram is a skill for Claude Code, Codex from RevenueCat/play-billing-skills. It costs 35 tokens per session (2,179 once invoked), scanned A, original, Apache-2.0.

A reference diagram for Google Play subscription states and the events that move subscriptions between them. It also shows whether each state grants access and how purchase tokens behave.

In plain words
What is it for?
Use it to decide whether a customer should have access, identify the notification for a state change, look up notification codes, and check token or time-window behavior.
Why use it?
It gives you one map for understanding complicated cases such as renewals, pauses, payment problems, account holds, and resubscriptions.

Skill for Claude CodeCodex

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

Good fit Use it to decide whether a customer should have access, identify the notification for a state change, look up notification codes, and check token or time-window behavior.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/revenuecat/play-billing-skills/subscription-state-diagram"><img src="https://agentmods.dev/badge/skills/revenuecat/play-billing-skills/subscription-state-diagram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,179 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.00035 $0.02179
Opus 5.5 $0.00014 $0.00872
Sonnet 5.5 $0.00007 $0.00436
Haiku 4.5 $0.00003 $0.00218

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

Security

Grade A, and why

subscription-state-diagram 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/subscription-state-diagram/SKILL.md · 181 lines

How it starts

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

Subscription State Diagram

Phase 0: Intent

Use this skill when you need a single place to look up:

  • What states a Google Play subscription can be in.
  • Which RTDN (Real Time Developer Notification) moves a subscription from one state to the next.
  • Whether a given state grants access to paid content.
  • What token behavior to expect across renewals, pauses, holds, and resubscribes.

This is a reference skill. It does not write code for you. It hands you the map so you can point at a node, point at an edge, and then make a decision about access or acknowledgement.

Phase 1: Locate

Tell the skill which part of the state machine you care about. Pick the shortest path that matches your question.

You want to know... Jump to
What every state means and whether it grants access States at a Glance
Which RTDN fires on a specific transition Transition Table
Whether to grant access right now Access Decision Flowchart
What happens to the purchase token across events Token Lifecycle
The numeric code for a notification type RTDN Quick Reference
How long grace period, account hold, or token validity lasts Time Windows

A typical lookup looks like this:

  1. Name the current state (for example IN_GRACE_PERIOD).
  2. Name the event you observed (for example RTDN type 5).
  3. Find the row in the From IN_GRACE_PERIOD table.
  4. Read the target state and the access rule.

Phase 2: Reference Diagram

States at a Glance

State Access Description
PENDING No Purchase initiated, payment not yet processed
PENDING_PURCHASE_CANCELED No Pending transaction canceled; if linkedPurchaseToken is set, the previous subscription is unaffected
ACTIVE Yes Subscription is paid and current
IN_GRACE_PERIOD Yes Payment failed, Google is retrying, user keeps access
ON_HOLD No Grace period expired, access revoked, awaiting payment fix
PAUSED No User requested pause, access revoked
CANCELED Until expiry Canceled but not expired, access until expiryTime
EXPIRED No Subscription has ended

Read the full file on GitHub · 181 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 · +1 lines ec9f6c1f3ab6
  2. 3mo ago First seen · 180 lines · 35 tokens per session scan A d85e33df8ba5

Subscribe to this mod's changes

subscription-state-diagram is a skill published in the GitHub repository RevenueCat/play-billing-skills (60 stars, last pushed 16d ago), licensed Apache-2.0. It adds 35 tokens to every session and 2,179 once invoked, about $0.0001 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

subscription-state-diagram compared with skills from other repositories

subscription-state-diagram next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
subscription-state-diagramRevenueCat/play-billing-skillsSkill6016d agoApache-2.0A35Claude 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