rc-testing

rc-testing is a skill for Claude Code, Codex from RevenueCat/ai-toolkit. It costs 69 tokens per session (1,714 once invoked), scanned A, original, MIT.

A testing guide for a RevenueCat Android integration. It uses RevenueCat's Test Store for most purchase-flow checks and shows how to make the purchase code replaceable in unit tests.

In plain words
What is it for?
Use it to test successful, failed, and cancelled purchases, mock RevenueCat calls, configure separate test and release keys, and run Android unit tests in continuous integration.
Why use it?
It avoids depending on the Google Play test environment for everyday development. It also provides a way to test purchase-related app logic with simulated results and run those tests in GitHub Actions.

Skill for Claude CodeCodex

Part of the revenuecat-play-billing plugin — 20 skills shipped together

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.

agentmods
npx agentmods add skills/revenuecat/ai-toolkit/rc-testing
Any agent
npx skills add RevenueCat/ai-toolkit --skill rc-testing
Clone the repo
git clone --depth 1 https://github.com/RevenueCat/ai-toolkit

Made for: Claude Code, Codex.

Or install revenuecat-play-billing, the plugin that ships this one along with the rest of its 20 skills.

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 rc-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/revenuecat/ai-toolkit/rc-testing.svg)](https://agentmods.dev/skills/revenuecat/ai-toolkit/rc-testing)
Your own site
<a href="https://agentmods.dev/skills/revenuecat/ai-toolkit/rc-testing"><img src="https://agentmods.dev/badge/skills/revenuecat/ai-toolkit/rc-testing.svg" alt="Measured on agentmods" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,714 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00069 $0.01714
Opus 5 $0.00034 $0.00857
Sonnet 5 $0.00014 $0.00343
Haiku 4.5 $0.00007 $0.00171

Measured 5d ago against content hash 8599252f7d57, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

rc-testing 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 5d 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.

revenuecat-play-billing/skills/rc-testing/SKILL.md · 196 lines

How it starts

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

Testing RevenueCat on Android

Use this skill to stand up a fast test loop for a RevenueCat Android integration. The Test Store replaces the Google Play sandbox for most work, a BillingService interface makes Purchases mockable, and a small GitHub Actions job runs unit tests on every push.

Full source: see the full chapter on revenuecat.com.


Phase 1: Discovery

Before changing anything, learn what already exists. Answer each question with a file or a "no".

Check Where to look What you want
Test API key configured? app/build.gradle.kts, local.properties, env A test_... value bound to BuildConfig.RC_API_KEY in debug
Release key separate? build.gradle.kts release block A goog_... key, never test_...
Purchases wrapped? app/src/main/java/**/*Billing*.kt An interface that hides Purchases.sharedInstance
CI present? .github/workflows/*.yml A job running ./gradlew testDebugUnitTest
Secret wired? GitHub repo settings, workflow env: RC_TEST_STORE_KEY referenced from secrets
Test library? app/build.gradle.kts dependencies io.mockk:mockk and kotlinx-coroutines-test

If the project has none of these, start from scratch in Phase 3. If some exist, only fill the gaps.


Phase 2: Plan

Pick the test path per scenario. The Test Store is the default; fall back to Google Play sandbox only when you need store behavior the Test Store does not simulate.

Scenario Use
Success, failure, cancel paths Test Store
Unit tests of ViewModels mockk against BillingService
CI on every push Test Store + unit tests
Subscription renewal cycles Google Play Sandbox
Pending purchase (parental approval) Google Play Sandbox
Full end-to-end payment Google Play Sandbox

Write the plan as a short checklist in tasks/todo.md before coding. If the app ships subscriptions, keep one Sandbox pass in the pre-ship checklist even if the Test Store covers daily iteration.

Read the full file on GitHub · 196 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. 5d ago First seen · 196 lines · 69 tokens per session scan A 8599252f7d57

Subscribe to this mod's changes

rc-testing is a skill published in the GitHub repository RevenueCat/ai-toolkit (65 stars, last pushed 3d ago), licensed MIT. It adds 69 tokens to every session and 1,714 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.