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 rtdn-referencegit 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/rtdn-reference)<a href="https://agentmods.dev/skills/revenuecat/play-billing-skills/rtdn-reference"><img src="https://agentmods.dev/badge/skills/revenuecat/play-billing-skills/rtdn-reference/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/rtdn-reference"><img src="https://agentmods.dev/badge/skills/revenuecat/play-billing-skills/rtdn-reference.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.00055 | $0.02336 |
| Opus 5 | $0.00028 | $0.01168 |
| Sonnet 5 | $0.00011 | $0.00467 |
| Haiku 4.5 | $0.00006 | $0.00234 |
Grade A, and why
rtdn-reference 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 12d 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 — 197 lines — stays where its author put it; the contents beside it link to each section on GitHub.
RTDN Reference
Phase 0: Intent
Tell the user: "I will look up the RTDN notification type you asked about and recommend handling."
Phase 1: Locate
Map the user's question to one of the tables in Phase 2:
- Integer code given (for example
notificationType: 5): determine which notification family the user is in.- If the payload wraps the code in
subscriptionNotification, use the Subscription Notification Types table. - If the payload wraps the code in
oneTimeProductNotification, use the One Time Product Notification Types table. - If the payload has
voidedPurchaseNotification, use the Voided Purchase Notification section. - If the payload has
testNotification, use the Test Notification section.
- If the payload wraps the code in
- Event name given (for example
SUBSCRIPTION_ON_HOLD): search the Type column in the Subscription or One Time Product table. - Symptom given (for example "user lost access after failed payment"): match the trigger phrase in the Trigger column. Account hold and grace period map to codes 5 and 6 respectively in the subscription table.
- Unassigned code (14, 15, 16, 21): report that the code is reserved and not emitted.
After locating the row, jump to Phase 3 for the handling guidance for that family.
Phase 2: Reference tables
RTDN Message Structure
Every RTDN message arrives as a Cloud Pub/Sub message with a base64 encoded JSON payload in the data field. The decoded JSON has this structure:
{
"version": "1.0",
"packageName": "com.example.app",
"eventTimeMillis": "1234567890123",
"subscriptionNotification": { },
"oneTimeProductNotification": { },
"voidedPurchaseNotification": { },
"testNotification": { }
}
Only one notification field is present per message.
Subscription Notification Types
| Code | Type | Trigger | Subscription State After | Required Action |
|---|---|---|---|---|
| 1 | SUBSCRIPTION_RECOVERED |
Payment recovered from grace period, account hold, or pause resumes | ACTIVE |
Grant access. Call subscriptionsv2.get to confirm state. |
| 2 | SUBSCRIPTION_RENEWED |
Active subscription successfully renewed | ACTIVE |
Extend entitlement. Update expiryTime in your database. |
| 3 | SUBSCRIPTION_CANCELED |
Subscription canceled (user, developer, or system) | CANCELED |
Check canceledStateContext for reason. User retains access until expiryTime. |
| 4 | SUBSCRIPTION_PURCHASED |
New subscription purchased | ACTIVE |
Verify purchase. Grant access. Acknowledge within 3 days. |
| 5 | SUBSCRIPTION_ON_HOLD |
Grace period expired, entered account hold | ON_HOLD |
Revoke access. Notify user to fix payment method. |
| 6 | SUBSCRIPTION_IN_GRACE_PERIOD |
Renewal payment failed, entered grace period | IN_GRACE_PERIOD |
Retain access. Notify user about payment issue. Show in app message. |
| 7 | SUBSCRIPTION_RESTARTED |
User restored canceled subscription from Play Store before expiration | ACTIVE |
Grant access. Same purchase token. |
| 8 | SUBSCRIPTION_PRICE_CHANGE_CONFIRMED |
(Deprecated) User confirmed a price change | No state change | Deprecated. Use type 19 instead. |
| 9 | SUBSCRIPTION_DEFERRED |
Subscription billing date extended via subscriptionsv2.defer |
ACTIVE |
Update expiryTime in your database. Extend access. |
| 10 | SUBSCRIPTION_PAUSED |
Subscription paused (effective at end of current period) | PAUSED |
Revoke access when pause begins. |
| 11 | SUBSCRIPTION_PAUSE_SCHEDULE_CHANGED |
Pause schedule modified (pause set, changed, or removed) | Varies | Call API to check current pause schedule. |
| 12 | SUBSCRIPTION_REVOKED |
Subscription revoked (refund, developer revocation) | EXPIRED |
Immediately revoke access. |
| 13 | SUBSCRIPTION_EXPIRED |
Subscription expired after cancellation or account hold failure | EXPIRED |
Revoke access. Clean up entitlement records. |
| 17 | SUBSCRIPTION_ITEMS_CHANGED |
Items in subscription bundle changed (add ons) | Varies | Call API to get updated line items. |
| 18 | SUBSCRIPTION_CANCELLATION_SCHEDULED |
Installment subscription cancellation scheduled at end of commitment | ACTIVE (until commitment ends) |
Note the scheduled cancellation. User retains access through commitment period. |
| 19 | SUBSCRIPTION_PRICE_CHANGE_UPDATED |
Price change details updated for existing subscribers | Varies | Call API to get updated price change information. |
| 20 | SUBSCRIPTION_PENDING_PURCHASE_CANCELED |
Pending subscription purchase was canceled | EXPIRED |
Do not grant access. Clean up any pending records. |
| 22 | SUBSCRIPTION_PRICE_STEP_UP_CONSENT_UPDATED |
Price step up consent period begun or user provided consent (South Korea) | Varies | Call API to check consent status. |
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.
- 12d ago First seen · 197 lines · 55 tokens per session scan A afaf6d4b420c
rtdn-reference is a skill published in the GitHub repository RevenueCat/play-billing-skills (53 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 55 tokens to every session and 2,336 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.