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 payment-recoverygit 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/payment-recovery)<a href="https://agentmods.dev/skills/revenuecat/play-billing-skills/payment-recovery"><img src="https://agentmods.dev/badge/skills/revenuecat/play-billing-skills/payment-recovery/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/payment-recovery"><img src="https://agentmods.dev/badge/skills/revenuecat/play-billing-skills/payment-recovery.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.00050 | $0.02486 |
| Opus 5.5 | $0.00020 | $0.00994 |
| Sonnet 5.5 | $0.00010 | $0.00497 |
| Haiku 4.5 | $0.00005 | $0.00249 |
Grade A, and why
payment-recovery 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 — 184 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Payment Recovery: Grace Period and Account Hold
Google Play does not cancel a subscription the moment a renewal charge fails. It runs a two stage recovery process: grace period (user keeps access while Google retries) then account hold (access revoked while Google keeps retrying). Your job is to react to the right RTDNs, toggle entitlements at the right moments, and prompt the user to fix payment without forcing them to leave your app.
Phase 1: Understand
Map the stages, the RTDN for each transition, and the entitlement you should hold.
| Stage | Entry RTDN | Duration | User access | SubscriptionPurchaseV2 state |
|---|---|---|---|---|
| Silent grace period | none (always applies) | ~1 day | Active | SUBSCRIPTION_STATE_ACTIVE |
| Configured grace period | SUBSCRIPTION_IN_GRACE_PERIOD |
0 to 30 days (per base plan) | Keep full access | SUBSCRIPTION_STATE_IN_GRACE_PERIOD |
| Account hold | SUBSCRIPTION_ON_HOLD |
0 to 60 days (default 60 minus grace; grace + hold total 30 to 60) | Revoke | SUBSCRIPTION_STATE_ON_HOLD |
| Recovered from grace | SUBSCRIPTION_RENEWED |
n/a | Keep, clear warning | SUBSCRIPTION_STATE_ACTIVE (renewal date unchanged) |
| Recovered from hold | SUBSCRIPTION_RECOVERED |
n/a | Restore immediately | SUBSCRIPTION_STATE_ACTIVE (billing date moves to recovery date) |
| Terminal failure | SUBSCRIPTION_CANCELED (3), then SUBSCRIPTION_EXPIRED (13) |
n/a | Gone | canceled/expired |
Key facts to internalize before writing any code:
- The silent grace period of about 1 day always applies, even with a 0 day configuration. It is folded into any longer grace period you set (a 7 day window means 7 total days, not 7 + 1).
- Client side
Purchaseobjects look identical in grace period and in a healthy renewal:isAutoRenewing = true,purchaseState == PURCHASED. You cannot detect grace period fromqueryPurchasesAsync(). Source of truth is the server side RTDN plusSubscriptionPurchaseV2.subscriptionState. - Grace period
expiryTimepoints to the end of the grace window, not the original renewal date. - On recovery from account hold, Google moves the billing date to the recovery date; recovery during grace period keeps the original renewal date. Persist the new
expiryTimefromSubscriptionPurchaseV2either way; cached pre failure dates will be wrong. - If you disable account hold, the subscription cancels immediately after grace period ends. Google's default enables both, with account hold = 60 days minus the grace period.
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 · +7 lines 9d149c3d217d
- 3mo ago First seen · 177 lines · 50 tokens per session scan A 6f43d78fa36e
payment-recovery is a skill published in the GitHub repository RevenueCat/play-billing-skills (60 stars, last pushed 16d ago), licensed Apache-2.0. It adds 50 tokens to every session and 2,486 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.
payment-recovery compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| payment-recoveryRevenueCat/play-billing-skills | Skill | 60 | 16d ago | Apache-2.0 | A | 50 | Claude Code, Codex |
| amazon-reviews-api-skillbrowser-act/skills | Skill | 6.5k | 28d ago | MIT | A | 124 | Claude Code, Codex |
| amazon-competitor-analyzerbrowser-act/skills | Skill | 6.5k | 28d ago | MIT | A | 48 | Claude Code, Codex |
| cloudbase-wechat-integrationTencentCloudBase/CloudBase-AI-Toolkit | Skill | 1.2k | today | MIT | A | 94 | Claude Code |
| asc-subscription-localizationrorkai/app-store-connect-cli-skills | Skill | 1.2k | 2d ago | MIT | A | 60 | Claude Code |
| woo-guardamElnagdy/guard-skills | Skill | 1.3k | 8d ago | MIT | A | 216 | Codex |
| product-description-generatornexscope-ai/eCommerce-Skills | Skill | 1.6k | 21d ago | MIT | A | 126 | Claude Code, Codex |