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.02126 |
| Opus 5 | $0.00025 | $0.01063 |
| Sonnet 5 | $0.00010 | $0.00425 |
| Haiku 4.5 | $0.00005 | $0.00213 |
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 13d 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 — 177 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 30 days | Revoke | SUBSCRIPTION_STATE_ON_HOLD |
| Recovered | SUBSCRIPTION_RECOVERED |
n/a | Restore immediately | SUBSCRIPTION_STATE_ACTIVE |
| Terminal failure | SUBSCRIPTION_CANCELED or SUBSCRIPTION_EXPIRED |
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, Google resets the billing date to the recovery date. Persist the new
expiryTimefromSubscriptionPurchaseV2; cached pre failure dates will be wrong. - If you disable account hold, the subscription cancels immediately after grace period ends. Enabling both (for example 7 day grace + 30 day hold = 37 day recovery window) is the usual recommendation.
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.
- 13d 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 (53 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 50 tokens to every session and 2,126 once invoked, about $0.0003 per session on Opus 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.
Other skills, from other repositories
amazon-reviews-api-skill
This skill helps users automatically extract Amazon product reviews via the Amazon Reviews API. Agent should proactively apply this skill when users express needs like getting reviews for Amazon product with ASIN B07TS6R1SF, analyzing customer feedback for a specific Amazon item, getting ratings and comments for a…
amazon-competitor-analyzer
Scrapes Amazon product data from ASINs using browseract.com automation API and performs surgical competitive analysis. Compares specifications, pricing, review quality, and visual strategies to identify competitor moats and vulnerabilities.
asc-subscription-localization
Bulk-localize subscription, subscription-group, and in-app purchase display names across App Store locales using asc, including API 4.4.1 version-scoped v2 resources. Use when filling or updating subscription/IAP names and descriptions without App Store Connect UI work.
food-order
Reorder previous Foodora orders, preview cart contents, and track delivery ETA/status with ordercli. Use when the user wants to reorder food, check delivery status, or browse recent Foodora order history. Never confirm an order without explicit user approval.
product-description-generator
E-commerce product description generator for any platform. Generates optimized titles, bullet points, descriptions, and backend keywords using competitor research + keyword scoring + FABE copywriting. Two modes: (A) Create — generate listing from product specs with optional competitor analysis, (B) Optimize — improve…
amazon-price-tracker
Amazon price monitoring and competitive pricing intelligence. Real-time price tracking, Buy Box analysis, promotion detection, and dynamic pricing strategy optimization. Use when the user asks about price monitoring, competitor pricing, Buy Box tracking, or pricing strategy.