К основному содержанию
скилл CX Codex

rc-setup — скилл для Claude Code: настройка RevenueCat для Android

Проведёт по дашборду RevenueCat и подключению Google Play: приложение, сервисный аккаунт, entitlements, offerings и публичный API-ключ.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add RevenueCat/ai-toolkit --skill rc-setup -a claude-code
Открыть на GitHub

Что делает rc-setup

Скилл ведёт настройку проекта RevenueCat под Android до состояния «дашборд готов, ключ на руках». Он разбит на четыре фазы: сначала проверка предпосылок, потом выбор маршрута по текущему состоянию проекта, затем сами шаги в дашборде и в конце проверка, что всё связано.

На входе нужен ряд вещей из Play Console и Google Cloud. Приложение в Play Console, точное имя пакета, товары или подписки с базовыми планами, JSON-ключ сервисного аккаунта и разрешение Financial data viewer для него. Если товаров ещё нет, скилл останавливается: их создание — задача Play Console, а не этого скилла. Отдельно проверяется, что имя пакета совпадает с Play Console, иначе подключение не пройдёт.

Дальше идут шаги: создать проект и Android-приложение, завести сервисный аккаунт в Google Cloud с включённым Google Play Android Developer API, пригласить его в Play Console, загрузить JSON в настройки Android-приложения, создать entitlements, импортировать товары и привязать их, собрать offering и отметить его как Current. В конце копируется публичный SDK-ключ для Android. Инициализация SDK — уже другая задача, её берёт скилл rc-configuring-the-sdk.

Какие задачи решает

  • создать Android-приложение в дашборде RevenueCat по имени пакета
  • подключить сервисный аккаунт Google Play к RevenueCat
  • завести entitlements под уровни доступа в приложении
  • импортировать товары из Play и привязать их к entitlements
  • собрать offering и назначить его текущим для пейволла

Примеры запросов агенту

  • помоги настроить RevenueCat для Android: создай приложение и подключи Google Play
  • загрузи JSON сервисного аккаунта в RevenueCat и проверь, что подключение прошло
  • создай entitlement pro_access и привяжи к нему товары из Play

Как установить rc-setup

1Через Skills CLI (Vercel)

npx skills add RevenueCat/ai-toolkit --skill rc-setup -a claude-code

2Вручную: положить файлы

~/.claude/skills/rc-setup/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/rc-setup/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Из того же набора25

revenuecat-migrate Скилл помогает перевести покупки в приложении на RevenueCat или обновить SDK до новой мажорной версии. Сначала определяет платформу, потом ведёт по шагам. CX Codex +1 700установок rc-webhooks Скилл для обработки вебхуков RevenueCat на сервере: разбирает схему событий, дедупликацию по event.id и разницу между отменой, истечением и продлением. CX Codex +1 650установок rc-security Проверяет безопасность интеграции RevenueCat в Android: режим проверки подписи, ключи API, идентификацию пользователей и проверку прав на сервере. CX Codex +1 649установок rc-backend Скилл для работы с состоянием RevenueCat на сервере: чтение подписчиков, выдача и отзыв entitlements, атрибуты через REST API. CX Codex +1 635установок rc-configuring-the-sdk Скилл проводит агента через подключение RevenueCat к Android-приложению: Gradle-зависимость, Purchases.configure, стратегия app user id и уровень логов. CX Codex +1 636установок rc-catalog-management Ведёт каталог Android-товаров между Play Console и панелью RevenueCat: импорт продуктов, привязка к entitlement, сборка офферов. CX Codex +1 627установок rc-subscription-states Скилл для Android-проектов на RevenueCat: подсказывает агенту, как проверять доступ к платному контенту через CustomerInfo и EntitlementInfo. CX Codex +1 623установок rc-error-handling Разбирает ошибки RevenueCat Android SDK: какой код что значит и что показать пользователю. Пригодится, когда платёжный флоу ломается на проде. CX Codex +1 627установок

Похожие

capacitor-in-app-purchases capawesome-team Скилл ведёт агента по шагам: настройка товаров в App Store Connect и Google Play Console, выбор плагина, покупки, валидация чеков и тесты в песочнице. CX Codex +1 728установок asc-revenuecat-catalog-sync rorkai Сверяет каталог подписок и встроенных покупок App Store Connect с продуктами RevenueCat. Нужен перед запуском или при устранении расхождений между каталогами. CX Codex +1 6 100установок asc-ppp-pricing rorkai Настраивает цены подписок и покупок в приложении по территориям. Нужен для локальной ценовой стратегии и проверки текущих цен. CX Codex +1 7 300установок paywall-optimization appeeky Скилл для аудита и A/B-тестов пейвола в подписочных приложениях. Помогает найти слабую ступень воронки и починить её. CX Codex +1 1 900установок app-store-screenshots 101-skills Создаёт материалы для карточек Apple App Store и Google Play: скриншоты, макеты устройств и ролики. Пригодится при подготовке листинга приложения. CX Codex +1 55 600установок android-aso appeeky Готовит тексты и графику для страницы в Google Play с учётом индексации полного описания. Помогает пройти аудит метаданных и составить план A/B-тестов. CX Codex +1 2 700установок

Рядом в теме «Мобильная разработка»

Всё по теме «Мобильная разработка» →

Вопросы о rc-setup

Как установить rc-setup в Claude?

Выполните npx skills add RevenueCat/ai-toolkit --skill rc-setup -a claude-code. Файл скилла окажется по пути ~/.claude/skills/rc-setup/SKILL.md.

Что делает rc-setup?

Проводит настройку проекта RevenueCat под Android: создание приложения, подключение Google Play через сервисный аккаунт, entitlements, offerings и получение публичного SDK-ключа.

Что нужно подготовить до запуска скилла?

Приложение в Play Console с точным именем пакета, товары или подписки с базовыми планами, JSON-ключ сервисного аккаунта Google Cloud и разрешение Financial data viewer для него.

Исходный текст

SKILL.md · MIT
---
name: rc-setup
description: "Use this skill when setting up a RevenueCat project for Android: creating the app in the dashboard, uploading the Google Play service account credentials, configuring entitlements and offerings, and getting the public SDK API key for the Android app."
license: Apache-2.0; see LICENSE
metadata:
  author: RevenueCat
  source: revenuecat-handbook chapter 2
  keywords:
  - android
  - revenuecat
  - setup
  - dashboard
  - api-key
  - service-account
---

# RevenueCat Android Setup

Configure a RevenueCat project so the Android SDK can fetch offerings, validate purchases, and grant entitlements. This skill covers the dashboard side of setup and the service account connection to Google Play.

The scope stops at "dashboard ready, API key in hand." SDK initialization code belongs to the [rc-configuring-the-sdk](../rc-configuring-the-sdk/) skill.

## Phase 1: Discovery

Confirm these items before you touch the RevenueCat dashboard. Missing any of them will block the connection step.

| Prerequisite | Where it lives | Why RevenueCat needs it |
|---|---|---|
| Google Play Console app | Play Console | Dashboard connects by package name |
| Package name | Play Console app listing | Must match your Android app exactly |
| In-app products or subscriptions | Play Console monetization | RevenueCat imports the catalog |
| Base plans for subscriptions | Play Console subscription | Billing Library 6+ requires them |
| Google Cloud service account JSON | Google Cloud Console | RevenueCat authenticates to the Play Developer API |
| Financial data viewer permission | Play Console users and permissions | Service account reads subscription state |

Ask the user:

- Is the app already published on Play (even as internal testing)?
- Are products live in Play Console, or still drafts?
- Do you have the service account JSON, or do you need the creation steps?

If products do not exist yet, pause. Product creation is a Play Console task outside this skill.

## Phase 2: Plan

Pick the route that matches the user's state.

| State | Route |
|---|---|
| No RevenueCat account | Start at Step 1, create account and project |
| Account exists, no Android app in project | Start at Step 2, add Android app |
| App exists, Play not connected | Jump to Step 3, upload service account |
| Play connected, no entitlements or offerings | Jump to Step 4 |
| Everything configured, need the API key | Jump to Phase 4 verification |

The default flow below runs end to end. Skip steps the user has already completed.

## Phase 3: Execute

### Step 1: Create the RevenueCat project and Android app

1. Sign up or log in at `app.revenuecat.com`.
2. Create a project. One project can hold Android, iOS, and web apps for the same product.
3. Inside the project, add an Android app. Enter the Play Console package name.

RevenueCat generates a public SDK API key per platform. You will copy the Android key at the end. Do not reuse iOS or web keys in the Android app.

### Step 2: Create a Google Cloud service account (if needed)

In Google Cloud Console, on the project linked to your Play Console:

1. Enable the Google Play Android Developer API.
2. Create a service account. Skip role grants on the Cloud side.
3. Create a JSON key for the service account and download it.

In Play Console, under Users and permissions:

1. Invite the service account email.
2. Grant app-level access to the app.
3. Grant the Financial data viewer permission. RevenueCat needs it to read subscription state.

### Step 3: Connect Google Play in RevenueCat

In the RevenueCat dashboard, open the Android app settings:

1. Confirm the package name matches Play Console.
2. Upload the service account JSON key file.
3. Save.

RevenueCat validates the credential by calling the Play Developer API. If validation fails, the common causes are missing API enablement, wrong project, or the service account not yet propagated in Play (allow up to 24 hours).

### Step 4: Create entitlements

Entitlements are the access levels your app checks. Define them once, reference them everywhere in client code.

In the dashboard under Entitlements, create one per access tier. Most apps ship with a single entitlement.

| Identifier | Description |
|---|---|
| `pro_access` | Unlocks premium features |
| `team_access` | Unlocks team features (second tier, optional) |

Use a stable identifier. Renaming an entitlement later means rewriting every feature gate.

### Step 5: Import products and attach entitlements

Under Products, click Import. RevenueCat pulls the Play catalog through the connected service account.

1. Select each product you want RevenueCat to manage.
2. Attach each product to an entitlement. Purchasing the product grants that entitlement.

A single entitlement can back many products (monthly, annual, lifetime all unlock `pro_access`).

### Step 6: Create an offering

Offerings drive what a user sees on the paywall. One offering groups multiple packages.

Under Offerings:

1. Create an offering (for example, `default`).
2. Add packages. Pick a package type (Monthly, Annual, Lifetime, or custom) and assign a product.
3. Mark one offering as Current.

The Android SDK fetches `offerings.current` to show the default paywall. Swap the current offering later from the dashboard without shipping an app update.

### Step 7: Copy the Android API key

In the Android app settings, copy the public SDK API key. This value is the second argument to `PurchasesConfiguration.Builder`. The skill configuring-the-sdk uses it.

```kotlin
// Handed off to configuring-the-sdk
val revenueCatApiKey = "goog_xxxxxxxxxxxxxxxxxxxxxxxx"
```

## Phase 4: Verify

Confirm the dashboard and Play Console are wired together before moving to SDK work.

| Check | How to verify | Pass signal |
|---|---|---|
| Service account accepted | RevenueCat app settings, Google Play section | Shows connected with a green indicator |
| Products imported | Products tab in dashboard | Play products appear with live prices |
| Entitlement attachments | Open each product | Shows the attached entitlement |
| Offering current | Offerings tab | One offering tagged Current |
| Package product links | Open the current offering | Each package shows a product identifier |
| API key scope | Project settings, API keys | Android key is distinct from iOS and web keys |

Ask the user to confirm each row. If a product shows no price, the service account is connected but the product is not active in Play. Fix the Play listing, then re-import.

Hand off to [rc-configuring-the-sdk](../rc-configuring-the-sdk/) with:

- The Android API key
- The current offering identifier
- The entitlement identifiers the app will check

## References

- [Full chapter](https://www.revenuecat.com/guides/revenuecat-android-sdk/setting-up-revenuecat)

© RevenueCat · MIT · RevenueCat/ai-toolkit

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой