rc-catalog-management — скилл для Claude Code: каталог
Ведёт каталог Android-товаров между Play Console и панелью RevenueCat: импорт продуктов, привязка к entitlement, сборка офферов.
npx skills add RevenueCat/ai-toolkit --skill rc-catalog-management -a claude-codeЧто делает rc-catalog-management
Скилл описывает рабочий процесс из четырёх фаз: понять, спланировать, выполнить, проверить. Он держит в голове разделение ролей: Play Console — источник истины по продуктам, базовым планам и ценам, а панель RevenueCat решает, какой SKU увидит какой пользователь и под каким ключом entitlement. Из приложения или бэкенда вы не дёргаете напрямую эндпоинты Google Play Developer monetization.subscriptions и monetization.onetimeproducts — вместо этого работаете через RevenueCat.
Порядок шагов жёсткий. Сначала продукт создаётся в Play Console (Monetize → Products → Subscriptions, базовый план, опционально интро-оффер), потом импортируется в панель RevenueCat и привязывается к entitlement вроде pro, затем добавляется в оффер как пакет с идентификатором $rc_monthly или $rc_annual. Отдельная фаза — плейсменты и правила таргетинга по версии ОС, стране или кастомному атрибуту. Правки офферов и таргетинга подхватываются на следующем запуске приложения, релиз сборки не нужен.
Если после awaitOfferings() пакет приходит null, скилл перечисляет три частые причины: оффер не помечен как Current, продукт не привязан к пакету или Play ещё не разнёс продукт по своим системам. Ещё одна ошибка — создавать оффер до импорта продукта. Для массовых правок из бэкенда предусмотрен REST API RevenueCat по продуктам, entitlement и офферам; к Google при этом всё равно не обращаетесь.
Какие задачи решает
- создать новый продукт-подписку в Play Console и довести его до оффера
- привязать продукт к entitlement, чтобы клиент видел активную подписку
- собрать пакеты
$rc_monthlyи$rc_annualв оффере без релиза приложения - настроить таргетинг по стране или версии ОС через плейсменты
- разобраться, почему
awaitOfferings()возвращаетnullдля пакета
Примеры запросов агенту
- Добавь новую подписку premium_annual: создай продукт в Play Console, импортируй в RevenueCat и привяжи к entitlement pro
- Собери оффер default с пакетами $rc_monthly и $rc_annual и отметь его как Current
- Почему awaitOfferings() возвращает null для месячного пакета? Проверь оффер, привязку продукта и статус в Play Console
Как установить rc-catalog-management
1Через Skills CLI (Vercel)
npx skills add RevenueCat/ai-toolkit --skill rc-catalog-management -a claude-code2Вручную: положить файлы
~/.claude/skills/rc-catalog-management/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/rc-catalog-management/
1Через Skills CLI (Vercel)
npx skills add RevenueCat/ai-toolkit --skill rc-catalog-management -a codex2Вручную: положить файлы
.agents/skills/rc-catalog-management/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add RevenueCat/ai-toolkit --skill rc-catalog-management -a cursor2Вручную: положить файлы
.cursor/skills/rc-catalog-management/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install RevenueCat/ai-toolkit rc-catalog-management2Вручную: положить файлы
.github/skills/rc-catalog-management/SKILL.md1Через Skills CLI (Vercel)
npx skills add RevenueCat/ai-toolkit --skill rc-catalog-management -a gemini-cli2Командой платформы
gemini skills install https://github.com/RevenueCat/ai-toolkit --path revenuecat-play-billing/skills/rc-catalog-managementВручную: положить файлы
.devin/skills/rc-catalog-management/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add RevenueCat/ai-toolkit --skill rc-catalog-management -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора25
Похожие
Рядом в теме «Мобильная разработка»
Всё по теме «Мобильная разработка» →Вопросы о rc-catalog-management
Как установить rc-catalog-management в Claude?
Выполните npx skills add RevenueCat/ai-toolkit --skill rc-catalog-management -a claude-code. Скилл окажется в ~/.claude/skills/rc-catalog-management/SKILL.md.
Что делает rc-catalog-management?
Проводит по управлению каталогом Android-товаров: создание продукта в Play Console, импорт в панель RevenueCat, привязка entitlement, сборка офферов и пакетов, настройка таргетинга.
Можно ли менять офферы без обновления приложения?
Да. Клиент забирает конфигурацию из панели RevenueCat при вызове awaitOfferings(), поэтому правки офферов, замена пакетов и правила таргетинга применяются на следующем запуске приложения.
Исходный текст
SKILL.md · MIT
---
name: rc-catalog-management
description: Use this skill when managing the Android product catalog through the Play Console and the RevenueCat dashboard. Covers the two sided catalog flow (create in Play Console, import or map in RevenueCat), entitlement and offering maintenance, and why you do not call the Google Play Developer API directly.
license: Apache-2.0; see LICENSE
metadata:
author: RevenueCat
source: revenuecat-handbook chapter 17
keywords:
- android
- revenuecat
- catalog
- dashboard
- offerings
- entitlements
---
# Catalog Management
Manage the Android product catalog across two surfaces: the Google Play Console (source of truth for products) and the RevenueCat dashboard (entitlements, offerings, targeting). You do not call the Google Play Developer `monetization.subscriptions` or `monetization.onetimeproducts` endpoints from your app or backend.
## Phase 1: Understand
Read this phase before you touch anything.
### Why two surfaces
| Surface | Owns | Examples |
|---|---|---|
| Google Play Console | Underlying products, base plans, offers, prices | `premium_monthly`, base plan `p1m`, intro offer |
| RevenueCat dashboard | Entitlements, Offerings, Packages, Targeting | `pro` entitlement, `default` offering, `$rc_monthly` package |
Play Console holds the billable SKU. RevenueCat decides which SKU gets surfaced to which user and under which entitlement key.
### What changes without an app update
When your app calls `awaitOfferings()`, it fetches whatever the RevenueCat dashboard has configured. Offering edits, package swaps, and targeting rules propagate on the next app launch. No binary release is required.
### When to use the REST API
If you need to automate catalog edits from a backend (for example, seeding dozens of offerings across environments), use the RevenueCat REST API for products, entitlements, and offerings. You still do not talk to Google directly. Play Console remains the product source of truth.
## Phase 2: Plan
Before you make a change, decide:
1. **Is this a new product, or a repackaging of an existing one?**
- New product: start in Play Console.
- Repackaging (new offering, new targeting, new entitlement mapping): stay in RevenueCat.
2. **Which entitlement does the product unlock?** If you do not have a matching entitlement, create one first.
3. **Which offering and package identifier?** Decide the package identifier (for example `$rc_monthly`, `$rc_annual`) so your paywall code keeps working.
4. **Does targeting need to change?** If different users should see different offerings, plan the placement name and the targeting rule (OS version, country, custom attribute).
## Phase 3: Execute
The end to end flow for adding a new subscription product.
### Step 1: Add the product in the Play Console
1. Open **Play Console** -> your app -> **Monetize** -> **Products** -> **Subscriptions**.
2. Click **Create subscription**.
3. Set the product ID (for example `premium_monthly`), name, and description.
4. Add a base plan (billing period, renewal type, price).
5. Optionally add offers (intro pricing, free trial).
6. Activate the subscription.
Wait a few minutes for Play to propagate the product.
### Step 2: Import into RevenueCat and attach an entitlement
1. Open the **RevenueCat dashboard** -> your project -> **Products**.
2. Click **Import** to sync from the Play Console. The new product appears in the list.
3. Open the product and attach it to an existing entitlement, or create a new one.
- Entitlement example: `pro`. Every product that unlocks pro features attaches to `pro`.
Your client code checks entitlements by key:
```kotlin
val isPro = customerInfo.entitlements["pro"]?.isActive == true
```
### Step 3: Wire the product into an Offering as a Package
1. In the dashboard, open **Offerings**.
2. Pick the offering you want to edit, or create a new one (for example `default`).
3. Add a **Package**. Choose a package identifier that matches your paywall:
- `$rc_monthly` for monthly
- `$rc_annual` for annual
- Or a custom identifier
4. Attach the Play Console product to the package.
5. Save. Mark the offering as Current if it should be the default.
Your client code stays the same:
```kotlin
val offerings = Purchases.sharedInstance.awaitOfferings()
val monthly = offerings.current?.monthly
```
### Step 4 (optional): Targeting
If different users should see different offerings, use placements.
1. In the dashboard, open **Targeting** -> **Placements**.
2. Create a placement (for example `paywall_upsell`).
3. Add rules (OS version, country, custom attribute) that map users to specific offerings.
Client code:
```kotlin
val offering = offerings.getCurrentOfferingForPlacement("paywall_upsell")
?: offerings.current
```
No app update is required when you change targeting rules later.
## Phase 4: Verify
Check the change landed before you close the task.
| Check | How |
|---|---|
| Product exists in Play | Play Console -> Subscriptions shows the product as Active |
| Product imported to RC | Dashboard -> Products lists the product |
| Entitlement mapping | Dashboard -> Entitlements shows the product under the right entitlement |
| Offering wiring | Dashboard -> Offerings shows the product attached to the expected package |
| Runtime fetch | Launch the app, call `awaitOfferings()`, confirm the package resolves |
| Entitlement unlock | Complete a test purchase, confirm `customerInfo.entitlements["pro"].isActive` is true |
If `awaitOfferings()` returns `null` for a package you expect, the most common causes are: the offering is not marked Current, the product is not attached to the package, or Play has not finished propagating the product.
## Common Mistakes
- Calling `monetization.subscriptions` from your backend. Use RevenueCat instead.
- Creating an offering before importing the product. Import first, then wire.
- Shipping hard coded product IDs in your paywall UI. Use package identifiers so you can swap products without an app release.
- Forgetting to mark an offering as Current. Clients that call `offerings.current` will see the old offering until you flip this.
## References
- [Full chapter](https://www.revenuecat.com/guides/revenuecat-android-sdk/catalog-management)
© RevenueCat · MIT · RevenueCat/ai-toolkit