Skip to main content
skill CX Codex

revenuecat-experiments — Claude Code skill: setup and install

Prepares and manages RevenueCat A/B tests through MCP tools. It sets up variant offerings, duplicates paywalls, and controls the experiment lifecycle.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add RevenueCat/ai-toolkit --skill revenuecat-experiments -a claude-code
Open on GitHub

What revenuecat-experiments does

This skill configures subscription A/B tests through RevenueCat MCP tools. An experiment compares two to four offerings, contrasting control offering_a against variants offering_b through offering_d. The assistant inspects setups via list-offerings and prepares a draft with create-experiment.

RevenueCat MCP server access is required. If an app renders paywalls via custom native code and paywall_id is null, this skill cannot modify the layout: you must edit such paywalls directly in your application codebase. Newly generated variant paywalls remain in draft status, so they require manual publishing via publish-paywall before enrollment begins.

Calling start-experiment demands explicit user approval because live traffic gets redirected. Stopping a test with stop-experiment is final. You cannot resume a stopped experiment, and enrolled users drop back to the default offering immediately. For modifying paywall design or store items, the workflow references revenuecat-paywall-design and revenuecat-store-state.

What it helps with

  • prepare variant offerings and paywalls for an A/B test
  • create an experiment draft with target metrics in RevenueCat
  • swap products or introductory offers in package configurations
  • publish treatment paywalls prior to starting enrollment
  • manage experiment states during testing runs

Example prompts for the agent

  • Set up a draft A/B test comparing our current offering against a discounted variant.
  • Duplicate our control offering into offering_b and publish its treatment paywall.
  • Pause the active RevenueCat experiment to halt new customer enrollments.

How to install revenuecat-experiments

1Skills CLI (Vercel)

npx skills add RevenueCat/ai-toolkit --skill revenuecat-experiments -a claude-code

2Manually: put the files in place

~/.claude/skills/revenuecat-experiments/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/revenuecat-experiments/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about revenuecat-experiments

How to install revenuecat-experiments in Claude Code?

Run npx skills add RevenueCat/ai-toolkit --skill revenuecat-experiments -a claude-code in your terminal.

What does revenuecat-experiments do?

The skill configures RevenueCat subscription A/B tests. It duplicates offerings, coordinates variant paywalls, defines experiment metrics, and controls testing states via MCP tools.

Can the skill modify a paywall if paywall_id is null?

No, a null paywall_id indicates that the paywall UI is built directly in the app code. The skill detects this condition and prompts you to apply changes in your application codebase manually.

Source text

SKILL.md · MIT
---
name: revenuecat-experiments
description: Use when the user asks to create, prepare, or set up a RevenueCat experiment (A/B test), to prepare its variant offerings or paywalls, or to start, pause, resume, or stop an experiment via the RevenueCat MCP experiment tools
---

# Setting up and managing experiments

A RevenueCat experiment compares two to four offerings: `offering_a` (the control) against `offering_b`–`offering_d` (the treatments). Enrolled customers are served their variant's offering instead of the project's current offering. Setting up an experiment means preparing one offering per variant, then creating the experiment as a draft.

Refer to the MCP tool schemas for the exact parameters of each tool; the `create-experiment` schema also lists the available experiment types with their recommended primary and secondary metrics.

## Preparing the variants

Keep the variants identical except for the one aspect under test, otherwise results cannot be attributed to the change. For example, when measuring the impact of a lower subscription price, both variants should share the same paywall design and packages, differing only in the price of the products.

**Control.** When the control variant is "what production does today", pass the current offering (`is_current` in `list-offerings`) directly as `offering_a_id` — do not duplicate it. Duplicate only when control itself needs changes relative to production.

**Treatments.** First check with `list-offerings` whether an offering already exists that matches what the treatment should serve, and reuse it instead of duplicating. Otherwise, start each treatment from a duplicate of the offering closest to it (usually the control offering). `duplicate-offering` copies the packages (attaching the same existing products) and, if the source offering has a paywall, also copies it as a new unpublished draft; it returns the new offering, including its new `paywall_id`. Pass `source_paywall_version: published` so the treatment copies the paywall customers see in production rather than unfinished draft edits; this fails when the source paywall was never published, so use the default (`draft`) only then. Then apply the one change under test:

- Paywall change (copy, layout, CTA, pricing display, ...): this requires the app to use RevenueCat Paywalls — a paywall is an optional property of an offering. If the control offering has none (`paywall_id` is `null`), the app renders its own paywall in code, so the paywall change has to be made in the app rather than through RevenueCat; tell the user. Otherwise, load `revenuecat-paywall-design` and edit the duplicated paywall with `edit-paywall-ai`. Request only the minimum changes required to measure the desired effect, and verify the result by looking at the resulting paywall.
- Price, trial, or introductory-offer change: these live on store products, so the treatment offering needs different products. Check with `list-products` whether suitable products already exist; create only the missing ones and their store counterparts (see the `revenuecat-store-state` skill). Then swap them into the duplicated offering's packages: detach the copied products with `detach-products-from-package`, then attach the new ones with `attach-products-to-package`.
- Brand-new paywall: duplicate the offering with `include_paywall: false`, then load `revenuecat-paywall-design` and call `create-paywall-ai` with the new offering's `offering_id` so the generated draft is attached to it directly. A paywall and an offering pair 1:1 — `attach-offering-to-paywall` fails if either side is already paired; undo a wrong pairing with `detach-offering-from-paywall` (unpublish the paywall first if it is published).

**Publish treatment paywalls.** A duplicated or newly created paywall is an unpublished draft, and a variant only serves the published version. If new paywalls were created in previous steps, publish each treatment paywall with `publish-paywall` before the experiment starts. This is the exception to the rule against proactive publishing, and it is safe: the treatment offering is not the current offering, so no customer sees the paywall until the experiment starts enrolling.

## Creating the experiment

Create a draft with `create-experiment`: display name, `enrollment_percentage`, the variant offering IDs, `experiment_type`, a `primary_metric` (plus `secondary_metrics`) matching the hypothesis, `enrollment_mode` (`only_new` unless the user explicitly wants to include existing customers), and any targeting and notes. Creating never starts the experiment. Adjust a draft with `update-experiment`.

Before starting, verify each variant: treatment paywalls are published, packages contain the intended products, and any new products are available on the stores.

## Lifecycle

- `start-experiment` begins enrolling real customers — only run it with the user's explicit confirmation.
- `pause-experiment` stops enrollment but keeps serving enrolled customers their variant and keeps collecting data.
- `resume-experiment` continues enrollment.
- `stop-experiment` is terminal: enrolled customers fall back to the default offering and the experiment can never be restarted.

To interpret results once the experiment is running, use the `revenuecat-experiment-analysis` skill.

© RevenueCat · MIT · RevenueCat/ai-toolkit

Similar skills

All skills for Mobile →

From the same set38

rc-understanding-revenuecat Orients an agent in the RevenueCat Android SDK 10.x architecture before it writes any code. Useful when you are coming from raw Play Billing. CX Codex +1 617installs rc-one-time-products Provides best practices for Android one-time purchases via RevenueCat SDK without manual BillingClient plumbing. Helpful for consumable items and lifetime access. CX Codex +1 613installs rc-cancellations-pauses-winback Surfaces cancellation, pause and winback state in Android apps on RevenueCat. Saves you from guessing what happened to a subscriber's access. CX Codex +1 612installs rc-revenuecat-vs-raw-billing A skill that helps you pick between RevenueCat and raw Google Play Billing, showing what the SDK takes over and what stays with your team. CX Codex +1 601installs rc-alternative-billing A skill that maps which Google Play alternative billing programs RevenueCat's Android SDK handles and which you build yourself. CX Codex +1 603installs revenuecat-sdk-compatibility This skill checks whether a RevenueCat SDK version supports a feature and how many subscribers are stuck on older versions. CX Codex +1 491installs revenuecat-cli A skill that teaches your agent to drive RevenueCat with the official rc CLI: projects, products, paywalls, image and font uploads. Useful when MCP lacks the operation. CX Codex +1 403installs rc Configure RevenueCat projects, apps, products, entitlements, and offerings from Claude Code. Account access requires browser-based OAuth authentication. ★ 76repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor