Command Palette

Search for a command to run...

Назад к скиллам
скилл № 36279

revenuecat-audiences

Use before sharing a link to a filtered customer list or audience, and when identifying, filtering, or ranking the user's customers (a segment, who they are…

БесплатноБез исполняемых скриптов
RevenueCatот RevenueCat★ 80 звёзд на GitHub

Установить revenuecat-audiences в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Audience filters and dashboard links

Use Audiences to filter the user's customers and to share a dashboard link to that set. Filters select the segment; sort_by / sort_direction on preview-audience order the returned sample.

There is no first-class CLI command for audiences. Do not tell the user RevenueCat cannot filter or segment customers.

Identifying, filtering, or ranking customers

Audiences filter on the fields below, including:

  • Product and duration — latestProduct, allPurchasedProductIds, latestPurchasedOffering, entitlements, offers
  • Spend and renewals — totalSpent (filter, and sort_by: total_spent), totalRenewals (filter only; there is no renewal sort)
  • Subscription state — status, trial, auto-renew intent, ownership
  • Store, platform, and country — platform, latestStore, country, storefront
  • Dates — first seen, purchases, renewals, expiration, trial, cancellation
  • Attribution and experiments — media source, campaign, ad group, keywords, price experiment
  • Identity and custom attributes — app user ID, email, locale, customAttribute:{key}

Map the question onto those fields, filter, then read a sample.

  1. Fetch project-specific values with get-audience-filter-options for any field marked project-specific that the question uses (project_id, fields).
  2. Call preview-audience with project_id and body.rules in the filter rule shape (for a saved audience from list-audiences, pass body.audience_uuid instead). It is read-only and saves nothing. Do not create-audience just to inspect a segment.
  3. To rank or name a superlative, pass sort_by (status, latest_auto_renew_intent, first_seen_at, last_seen_at, total_spent) and sort_direction (asc default, or desc) as top-level parameters, not inside body. sort_by: total_spent with sort_direction: desc returns the highest spenders first, so the first customer_sample row is the top spender. The sample is capped (typically 50): it is the top or bottom matches, not every customer.
  4. Answer "how many" from stats (total_customers, active_subscriptions, active_trials, total_revenue in currency), never from the sample size. When stats.is_approximate is true, give counts and revenue as approximate ("about 6,400 customers").
  5. Name customers only from fields customer_sample returned (app_user_id, email, status, total_spent, latest_product_name, first/last seen). Without sort_by the sample is unordered: say it is a sample of matches, not a ranking.
  6. totalRenewals is a filter only, not a sort_by value or a sample column. Filter on a high threshold and report the matches; do not invent a renewal count or claim a unique maximum.
  7. Share the dashboard link. The preview-audience result for body.rules includes a line starting "Dashboard URL for this result"; link that exact URL. Build one yourself (constructing a link) only when no tool result gave you a URL.

Constructing a link

Use this only when no tool result gave you a "Dashboard URL for this result" line. Two shapes: a filtered all-customers link for ad-hoc exploration, and a saved-audience link after create-audience.

  1. Get the project ID from list-projects. For dashboard URLs, strip the proj prefix.
  2. Pick fields and operators from the field tables. Do not invent field or operator names.
  3. For project-specific fields, fetch valid values with get-audience-filter-options first.
  4. Assemble the rule JSON: one group per OR-branch, conditions inside a group for AND, values encoded per value formats.
  5. Serialize and URL-encode the rule with a short script (see encoding the rule) — do not encode by hand.
  6. Append it as the filters query param on https://app.revenuecat.com/projects/{project_id}/customer-lists/all-customers.

URL format

https://app.revenuecat.com/projects/{project_id}/customer-lists/all-customers?filters={encoded_rule}
  • {project_id} — short hex ID from list-projects with proj stripped.
  • Filters only work on the all-customers list. The unfiltered Audiences home is /projects/{project_id}/customer-lists.

Linking to a saved audience

The create-audience and get-audience results include a "Dashboard URL for this result" line; link that exact URL. 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

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл revenuecat-audiences?

Use before sharing a link to a filtered customer list or audience, and when identifying, filtering, or ranking the user's customers (a segment, who they are, a product or duration, spend, renewals, status, country, attribution).

Как установить скилл revenuecat-audiences?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл revenuecat-audiences запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить revenuecat-audiences с