/revenuecat:audiencesfrom RevenueCat
Queries RevenueCat customer audiences with filters on products, spend, status, dates, and attribution. Builds dashboard links for segmented customer lists.
Ships in RevenueCat. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Answer any questions about "which customers" by previewing audiences, and also offering a link to
the audience you used. Filters select the segment; sort_by / sort_direction on
preview-audience order the returned sample.
A count of purchases or new subscriptions in a period ("how many bought in August", "how many
subscribed last week") is a chart, not an audience. Load querying-charts and use actives_new
for a subscription product, or the revenue chart's Transactions measure otherwise. Those charts
count events, not distinct people.
A count of distinct customers ("how many customers have ever bought this product", "how many people
currently have it") stays here. Answer it from preview-audience stats.total_customers, with
allPurchasedProductIds or latestProduct. Do not send that question to actives_new or
Transactions.
There is no first-class CLI command for audiences; use the MCP tools below.
Do not tell the user RevenueCat cannot filter or segment customers. Audiences filter on the fields below, including:
latestProduct, allPurchasedProductIds, latestPurchasedOffering,
entitlements, offerstotalSpent (filter, and sort_by=total_spent), totalRenewals (filter
only; there is no renewal sort)status, trial, auto-renew intent, ownershipplatform, latestStore, country, storefrontcustomAttribute:{key}Map the question onto those fields, then follow filtering ad-hoc audiences.
Use preview-audience to read matches; do not create-audience just to inspect a sample.
To rank or name a superlative on a sortable sample field, pass sort_by and sort_direction as
top-level preview-audience parameters (not inside body):
sort_by: status, latest_auto_renew_intent, first_seen_at, last_seen_at, total_spentsort_direction: asc or desc (default asc)sort_by=total_spent and sort_direction=desc returns the highest spenders first. Name the top
spender from the first customer_sample row. The sample is capped (typically 50), so it is the
top/bottom 50 matches, not every customer.
totalRenewals is a filter only — it is not a sort_by value and is not a sample column. Filter
on a high threshold and report the matches; do not invent a renewal count or claim a unique
maximum from an unsorted sample.
Without sort_by, customer_sample is unordered. Rank or name customers only from fields
customer_sample returned. Omit sort_by when the question is a gap on one of those fields
(last seen to churn) — ranking on it selects the sample you then measure. See
dates the sample does not carry.
latestEntitlements holds only the entitlements of the customer's latest purchase, so a customer
with two subscriptions lists one of them. Never use it for "has A and B", "also has", or
"currently has": filter on activeEntitlements contains A AND activeEntitlements contains B.
activeEntitlements can still list an entitlement after it has expired. Add
status isNotAnyOf expired,paused,incomplete to the same group; it drops expired customers and
keeps those with no status, such as gift recipients.
Get the project ID from list-projects.
Pick fields and operators from the field tables. Do not invent field or operator names.
For project-specific fields, fetch the valid values with get-audience-filter-options first
(see fetching project-specific values).
Assemble the rule JSON: one group per OR-branch, conditions inside a group for AND, values encoded per value formats.
Call the preview-audience tool with the rules.
tool_name: 'preview-audience'; parameters: {project_id: str, sort_by: str = ..., sort_direction: str = ..., body: { rules: dict } }
preview-audience returns stats — total_customers, active_subscriptions, active_trials,
and total_revenue in currency — plus customer_sample, matching customers with
app_user_id, email, status, total_spent, latest_product_name, and first/last seen.
Answer "how many" from stats. Name individual customers only from customer_sample; its size
is not the count. When sorted, treat the order as the ranking for that sort_by. When unsorted,
say it is a sample of matches, not a ranking. When stats.is_approximate is true the counts and
revenue are estimated from a sample: give them as approximate ("about 6,400 customers"), not as
exact figures.
The result includes a "Dashboard URL for this result". Use it verbatim.
customer_sample has first and last seen, status, and spend. It has no cancellation or expiration
timestamp. A per-customer gap that needs one — last seen to churn — stays on preview-audience
with body.rules for the population and last_seen_at, then list-subscriptions for at most 10
of the sampled app_user_ids (customer_id). Read ends_at (when access ends) and
auto_renewal_status. Do not look up every row. Do not page through list-customers.
status=expired matches every expired customer, not a subscriber-only set. Name the filter. Bound
latestExpirationAt to a recent window; an all-time expired preview is dominated by old accounts.
list-subscriptions does not return the opt-out timestamp. Cancellation (subscriptionOptOutAt,
auto-renewal turning off) and loss of access (latestExpirationAt, ends_at) are different dates.
Say which one a figure uses. A condition compares a field to a value, never to another field: a rule
can isolate "expired, and seen in the last 30 days" but not "seen 30 days before expiring".
Do that arithmetic in a short script over the sample rows plus the subscription dates you fetched.
Report
the real n, which date you used, how many gaps fall on each side, and the minimum and maximum. Do
not report percentiles or one typical value from that sample.
A trial that converted is no longer trialing, so isCurrentlyTrialing and status=trialing drop
it. Do not add either.
trialEndAt on the day matches every customer whose trial ends that calendar day, including
trials that already ended. trialEndAt within the next hours matches only trials still due to
end. That preview excludes trials that already ended today, so do not read how many converted
today from it.
stats are current activity, not the outcome of the trial ending that day.
active_subscriptions counts active production subscriptions, including cancelled, grace period,
and billing retry. A customer with another paid subscription counts even when the trial ending
today did not convert, and the count can exceed total_customers because it counts
subscriptions, not customers. active_trials counts active production trials, including
cancelled trials and trials in a grace period, so it is not "still going to convert." Do not
partition total_customers into converted, still running, and ended unpaid, and do not read that
split from customer_sample status.
How many trial conversions have already happened is the actives_new chart's Trial Conversions
measure. Load querying-charts. For "will any more convert today", total_customers on the
within preview is how many trials are still due to end, not how many will convert. A trial with
latestAutoRenewIntent false is set to cancel.
When the audience is for a targeting rule, put the filter rule in the rule's
audience_rules, as the targeting-rules skill describes. Do not call create-audience for it
(unless explicitly asked to do so).
If you have an audience ID but no link, first call get-audience.
The result includes a "Dashboard URL for this result". Use it verbatim.
If you only have list-audiences output, link with customer_list_id, the field returned
alongside id:
https://app.revenuecat.com/projects/{project_id}/customer-lists/{customer_list_id}
An audience's id (aud…) and its customer_list_id (list…) are different identifiers.
The dashboard route only resolves customer_list_id; an aud… id in that slot renders
"Audience not found".
Correct:
https://app.revenuecat.com/projects/1ab2c3d4/customer-lists/list1a2b3c4d5e
Wrong (the audience id instead of the customer_list_id):
https://app.revenuecat.com/projects/1ab2c3d4/customer-lists/aud1a2b3c4d5e6f7a8b
Do not add a filters param to a saved-audience link — the audience carries its own rules. If the
response has no customer_list_id, link to /customer-lists and name the audience rather than
guessing an id.
Use this only when no tool result gave you a "Dashboard URL for this result" line.
Get the project ID from list-projects.
Assemble the rule JSON as above.
Serialize and URL-encode the rule with a short script — do not encode by hand:
import json
from urllib.parse import quote
rule = {
"groups": [
{"conditions": [{"field": "platform", "operator": "is", "value": "android"}]},
]
}
print(quote(json.dumps(rule, separators=(",", ":")), safe=""))
Append it as the filters query param on the all-customers list:
https://app.revenuecat.com/projects/{project_id}/customer-lists/all-customers?filters={encoded_rule}
Filters only work on the all-customers list. The unfiltered Audiences home is
/projects/{project_id}/customer-lists.
Correct (compact JSON, whole value URL-encoded):
?filters=%7B%22groups%22%3A%5B%7B%22conditions%22%3A%5B%7B%22field%22%3A%22platform%22%2C%22operator%22%3A%22is%22%2C%22value%22%3A%22android%22%7D%5D%7D%5D%7D
Wrong (raw JSON, spaces, unencoded quotes/braces):
?filters={"groups": [{"conditions": [...]}]}
A filtered all-customers link is ad-hoc - nothing about it is saved, and the user will not find
it in their Audiences list later. Say so in one short sentence when you share one, and offer to
save it: "This view isn't saved - want me to save it as an audience so you can find it later?"
That sentence is an addition to the response you would have written anyway, not a replacement for it.
Offer once per conversation. If the user does not take it up, build later links without the offer and do not raise it again.
If they accept, call create-audience with the same rule you built for the link - rules takes
the identical groups/conditions shape - then link to it from the result.
Do not offer when the link is already to a saved audience.
The rules object is this shape:
{
"groups": [
{
"conditions": [{ "field": "platform", "operator": "is", "value": "android" }]
}
]
}
value is always a JSON string — booleans as "true"/"false", numbers as "42", lists as a
comma-separated string, date ranges and relative dates as stringified JSON (see
value formats).The Audiences preview table shows only Customer, Subscription Status, Auto-Renewal Status, Spent, and Latest Purchase. Other attributes appear in the CSV from Export all, or on a customer's profile.
Use these exact field strings. Tables and export columns are documented in
Audiences.
Operators: is, isNot, contains, doesNotContain, isEmpty, isNotEmpty.
| Field | Meaning |
|---|---|
customerId | App user ID |
originalAppUserId | Original app user ID |
email | |
phoneNumber | Phone number |
locale | Locale |
platformVersion | Platform (OS) version |
projectId | Project ID (e.g. proj1ab2c3d4) |
projectName | Project name |
appConfigId | App ID (e.g. app1ab2c3d4) |
appConfigName | App name |
idfa | IDFA |
idfv | IDFV |
gpsAdId | GPS ad ID |
latestPurchasedOffering | Latest purchased offering |
latestOffer | Latest offer identifier |
latestEntitlements | Latest purchase's entitlements |
activeEntitlements | Active entitlement identifiers |
allPurchasedProductIds | All purchased product identifiers |
Operators: equal, notEqual, greaterThan, greaterThanOrEqual, lessThan,
lessThanOrEqual, contains, doesNotContain, isEmpty, isNotEmpty. Values compare as
versions, so 1.10.0 is greater than 1.9.0. Both are the customer's last-seen version, not the
version they purchased on.
| Field | Meaning |
|---|---|
appVersion | App version |
sdkVersion | SDK version |
Operators: is, isNot, isAnyOf, isNotAnyOf, isEmpty, isNotEmpty.
| Field | Values |
|---|---|
platform | iOS, android, web, macOS, amazon, roku, tvOS, visionOS, watchOS |
status | active, trialing, in_grace_period, in_billing_retry, paused, expired, incomplete, unknown |
latestStore | app_store, play_store, promotional, mac_app_store, stripe, amazon, roku, rc_billing, paddle, external |
anyActiveStore | Any active store — same store identifiers as latestStore |
latestOwnershipType | PURCHASED, FAMILY_SHARED |
latestOfferType | no_offer, free_trial, introductory_offer, offer_code, promotional_offer, win_back_offer, unspecified_offer |
priceExperimentVariant | a, b, c, d |
country | Last seen country — ISO 3166-1 alpha-2 codes (e.g. US, DE) |
latestStoreCountry | ISO 3166-1 alpha-2 country codes |
storefront | Store country — ISO 3166-1 alpha-2 codes |
mediaSource | project-specific — fetch valid values |
campaign | project-specific — fetch valid values |
adGroup | project-specific — fetch valid values |
ad | project-specific — fetch valid values |
keyword | project-specific — fetch valid values |
creative | project-specific — fetch valid values |
priceExperimentId | project-specific — fetch valid values |
latestProduct | product IDs of the project — fetch valid values |
Operators: is, isNot. Value is exactly "true" or "false".
| Field | Meaning |
|---|---|
hasActiveEntitlement | Has any active entitlement |
hasMadeSandboxPurchase | Has made a sandbox purchase |
hasMadeNonSubscriptionPurchase | Has made a non-subscription purchase |
latestAutoRenewIntent | Auto-renewal status (true = set to renew) |
isCurrentlyTrialing | Currently trialing |
isRcPromo | Has been granted an entitlement via RC (promotional) |
Operators: equal, notEqual, greaterThan, greaterThanOrEqual, lessThan,
lessThanOrEqual, isEmpty, isNotEmpty. Value is a numeric string, e.g. "50".
| Field | Meaning |
|---|---|
totalSpent | Total spent |
totalRenewals | Total number of renewals |
Operators: before, beforeOrOn, on, after, afterOrOn, within, between, notBetween,
isEmpty, isNotEmpty.
| Field | Meaning |
|---|---|
firstSeenAt | First seen |
lastSeenAt | Last seen |
firstPurchaseAt | First purchase |
mostRecentPurchaseAt | Most recent purchase |
mostRecentRenewalAt | Most recent renewal |
latestExpirationAt | Latest expiration |
trialStartAt | Trial start |
trialEndAt | Trial end |
subscriptionOptOutAt | Most recent cancellation |
trialOptOutAt | Most recent trial cancellation |
Customer attributes are filterable with the field customAttribute:{key}, where {key} is the
attribute key exactly as set on customers (e.g. customAttribute:favorite_team). They use the enum
operators (is, isNot, isAnyOf, isNotAnyOf, isEmpty, isNotEmpty). Fetch the known keys
and values with get-audience-filter-options (see
fetching project-specific values) — never invent a key.
isEmpty / isNotEmpty — set "value": "" (the value is ignored).isAnyOf / isNotAnyOf — comma-separated string: "value": "US,CA,MX".before, beforeOrOn, on, after, afterOrOn — calendar date "value": "2026-01-31"
(YYYY-MM-DD).between / notBetween — stringified JSON with exactly from and to:
"value": "{\"from\":\"2026-01-01\",\"to\":\"2026-01-31\"}" (from ≤ to).within — stringified JSON with exactly direction, value, unit:
"value": "{\"direction\":\"last\",\"value\":30,\"unit\":\"days\"}". direction is last or
next; unit is minutes, hours, or days; value is a non-negative integer.
before/beforeOrOn/after/afterOrOn also accept this relative format (not on).Fields marked project-specific (mediaSource, campaign, adGroup, ad, keyword, creative,
priceExperimentId, latestProduct) and custom attributes only match values that exist in the
project's data. Fetch the real values with the get-audience-filter-options tool.
Arguments:
project_id (required)fields (required, at least one) — the fields to load options for: any of the eight fields
above, customAttribute:{key} for one custom attribute, or customAttribute to list every
custom attribute key with its values. Pass only the fields you need.A custom-attribute entry may come back with cardinality_exceeded: true, meaning the attribute
has more distinct values than were returned — a value the user stated verbatim can still be valid
even if it is not in the list.
Fixed-value fields (country, platform, status, …) are not served by this tool — use the
values in the tables above. Never guess project-specific values — a filter on a non-existent value
silently matches zero customers.
What SKILL.md sets; muted values are Claude Code's defaults
revenuecat@pleaseai is listed by pleaseai/claude-code-plugins — review the source before installing
npx claudepluginhub pleaseai/claude-code-plugins --plugin revenuecat29 skills in this plugin
/ad-trackingAdd RevenueCat ad monetization tracking to an app so ad impressions, clicks, revenue and rewarded ads appear in RevenueCat Charts next to subscription revenue. Use when the user asks to track ad revenue in RevenueCat, add RevenueCat ad tracking, integrate the RevenueCat AdMob adapter, report AdMob, AppLovin MAX, Unity LevelPlay (ironSource) or Unity Ads events to RevenueCat, set up ad monetization or ad LTV, or pastes the "Add RevenueCat ad tracking to this app" prompt from the Ads page of the RevenueCat dashboard, on iOS, Android, Kotlin Multiplatform, Flutter, React Native, or Unity. Also use when ad events are missing or look wrong on the RevenueCat Ads page./app-valuationUse this skill when the user asks how much their app is worth, what they could sell their app for, how app valuations or acquisitions work, or how to prepare a subscription app for sale/exit./Other plugins' skills for the same job