rc-revenuecat-vs-raw-billing — скилл для Claude Code: RevenueCat
Скилл помогает решить, брать RevenueCat или писать Google Play Billing напрямую: показывает, что уходит на сторону SDK, а что остаётся вашей команде.
npx skills add RevenueCat/ai-toolkit --skill rc-revenuecat-vs-raw-billing -a claude-codeЧто делает rc-revenuecat-vs-raw-billing
Скилл разбирает выбор между RevenueCat и прямой интеграцией Google Play Billing Library на Android. Внутри три таблицы: клиентская часть, серверная и список того, что остаётся на вас при любом варианте. По ним видно, какие куски кода исчезают, какие переезжают в бэкенд RevenueCat, а какие никуда не денутся.
Отдельный раздел с эвристикой превращает таблицы в решение. Если вам нужны отложенная подписка, отзыв подписки или альтернативный биллинг, который RevenueCat не покрывает, скилл советует всё равно держать путь через сырой PBL для этих вызовов. Аутентификация, ваша база пользователей, paywall и проверка доступа к платному контенту на сервере остаются вашими в обоих случаях — appUserID и проверку прав через REST API или вебхуки никто не отменяет.
Ставить есть смысл, когда вы как раз выбираете и не хотите держать в голове десяток пунктов сравнения. Если у вас уже есть зрелый биллинг-бэкенд с проверенными токенами и отлаженной машиной состояний, выигрыш меньше, и это повод честно взвесить, что вы получите от клиентских упрощений и каталога в дашборде.
Какие задачи решает
- решить, писать ли свой сервис проверки чеков или отдать это RevenueCat
- понять, какие части BillingClient останутся в приложении после перехода
- оценить объём серверной работы: RTDN, машина состояний подписки, дедупликация токенов
- найти случаи, где без сырого Google Play Billing не обойтись
- проверить, что аутентификация и гейт платного контента всё ещё на вашей стороне
Примеры запросов агенту
- Сравни RevenueCat и сырой Google Play Billing для нашего Android-приложения: что уходит в SDK, а что остаётся нам
- У нас есть свой бэкенд биллинга с проверкой токенов — стоит ли переходить на RevenueCat?
- Нужны отложенная подписка и отзыв подписки. Что придётся оставить на прямых вызовах Google Play API?
Как установить rc-revenuecat-vs-raw-billing
1Через Skills CLI (Vercel)
npx skills add RevenueCat/ai-toolkit --skill rc-revenuecat-vs-raw-billing -a claude-code2Вручную: положить файлы
~/.claude/skills/rc-revenuecat-vs-raw-billing/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/rc-revenuecat-vs-raw-billing/
1Через Skills CLI (Vercel)
npx skills add RevenueCat/ai-toolkit --skill rc-revenuecat-vs-raw-billing -a codex2Вручную: положить файлы
.agents/skills/rc-revenuecat-vs-raw-billing/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add RevenueCat/ai-toolkit --skill rc-revenuecat-vs-raw-billing -a cursor2Вручную: положить файлы
.cursor/skills/rc-revenuecat-vs-raw-billing/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install RevenueCat/ai-toolkit rc-revenuecat-vs-raw-billing2Вручную: положить файлы
.github/skills/rc-revenuecat-vs-raw-billing/SKILL.md1Через Skills CLI (Vercel)
npx skills add RevenueCat/ai-toolkit --skill rc-revenuecat-vs-raw-billing -a gemini-cli2Командой платформы
gemini skills install https://github.com/RevenueCat/ai-toolkit --path revenuecat-play-billing/skills/rc-revenuecat-vs-raw-billingВручную: положить файлы
.devin/skills/rc-revenuecat-vs-raw-billing/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add RevenueCat/ai-toolkit --skill rc-revenuecat-vs-raw-billing -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора25
Похожие
Рядом в теме «Мобильная разработка»
Всё по теме «Мобильная разработка» →Вопросы о rc-revenuecat-vs-raw-billing
Как установить rc-revenuecat-vs-raw-billing в Claude?
Выполните npx skills add RevenueCat/ai-toolkit --skill rc-revenuecat-vs-raw-billing -a claude-code. Скилл окажется в ~/.claude/skills/rc-revenuecat-vs-raw-billing/SKILL.md.
Что делает этот скилл?
Даёт сравнение RevenueCat и прямой интеграции Google Play Billing на клиенте и на сервере, плюс список задач, которые остаются на вашей команде при любом выборе.
Что всё равно придётся делать самому?
Аутентификацию, свою базу пользователей, paywall и проверку доступа к платному контенту на сервере. Ещё нужен приёмник вебхуков, а создание товаров идёт в Play Console.
Исходный текст
SKILL.md · MIT
--- name: rc-revenuecat-vs-raw-billing description: Use this skill to decide whether to use RevenueCat or raw Google Play Billing on Android. Provides a side by side reference of what RevenueCat handles versus what remains your responsibility at both client and backend layers. license: Apache-2.0; see LICENSE metadata: author: RevenueCat source: revenuecat-handbook appendix B keywords: - android - revenuecat - comparison - decision - raw-billing --- # RevenueCat vs Raw Google Play Billing ## Phase 0: Intent Use this skill when you are choosing between integrating RevenueCat or wiring Google Play Billing Library (PBL) directly, and you need to see which concerns disappear, which shift, and which still land on your team. The decision covers both the Android client and any server side infrastructure that supports subscriptions or one time purchases. Typical questions this skill answers: - If I adopt RevenueCat, what client code no longer exists in my app? - What backend pieces (receipt verification, RTDN, state machine) does RevenueCat replace? - What do I still own regardless of which path I pick? - Is there a concern where raw PBL is the only option today? ## Phase 1: Locate the Concern Before reading the tables, identify what you are actually evaluating. Sort your requirement into one of these buckets and jump to the matching section: | Bucket | Examples | Go to | |---|---|---| | Client purchase plumbing | BillingClient, listeners, acknowledgement, consumption | Client side table | | Server purchase truth | Token validation, RTDN, entitlement state machine | Server side table | | Out of scope for either | Auth, your user DB, paywall UI, push | Your responsibility table | If the concern is split (for example, RevenueCat verifies the token but you still need to gate premium content on your API), you own the integration glue even though the verification itself is handled. ## Phase 2: Side by Side Reference ### Client side | Concern | Raw PBL | RevenueCat | |---|---|---| | BillingClient setup and configuration | You write | Handled internally | | Connection lifecycle and reconnection | You write | Handled internally | | PurchasesUpdatedListener | You write | Replaced by purchase callbacks | | queryProductDetailsAsync() | You write | Replaced by awaitOfferings() / awaitGetProducts() | | launchBillingFlow() | You write | Called internally by awaitPurchase() | | Acknowledgement after purchase | You write | Handled automatically | | Consumption of consumables | You write | Handled automatically (mark product as consumable in dashboard) | | queryPurchasesAsync() on launch | You write | Handled internally on connection | | Retry logic for transient errors | You write | Handled internally by SDK | | BillingResponseCode handling | You write | Abstracted to PurchasesErrorCode | | In-app payment recovery messages | You write | Automatic (showInAppMessagesAutomatically = true) | | Subscription option selection for offers | You write | defaultOption selected automatically | ### Server side | Concern | Raw PBL | RevenueCat | |---|---|---| | Google Play Developer API integration | You build | RevenueCat backend | | Service account credential management | You manage | Configured once in RC dashboard | | Receipt verification on every purchase | You build | Automatic | | Purchase token validation and deduplication | You build | RevenueCat backend | | linkedPurchaseToken chain traversal | You build | RevenueCat backend | | RTDN processing and dispatch | You build | RevenueCat processes, sends webhooks | | Cloud Pub/Sub setup | You set up | Not needed | | Subscription state machine on backend | You build | CustomerInfo computed by RC | | Entitlement computation across 7 states | You build | isActive computed by RC | | Grace period / account hold tracking | You build | billingIssueDetectedAt | | Cancellation with access-until-expiry logic | You build | isActive + unsubscribeDetectedAt | | Price cohort tracking | You build | RC backend handles | | Product-to-entitlement mapping | You build | Configured in RC dashboard | ### What remains your responsibility either way | Concern | Notes | |---|---| | User authentication system | You bring your own; pass user ID to RC | | Your own database of users | RC is not your primary user database | | Premium content server side | Verify via RC REST API or webhooks | | Webhook receiver endpoint | You build; RC sends, you receive | | Play Console product creation | Still done in Play Console | | Subscription deferral | Direct Google Play API call | | Subscription revocation | Direct Google Play API call | | Alternative billing programs | Limited RC support; may need raw PBL | | App UI (paywalls, onboarding) | You build (RC Paywalls UI optional) | | Push notifications for payment issues | You build on top of webhook events | ## Phase 3: Recommendation Heuristic Use these rules to convert the tables into a decision: 1. If your app needs subscription deferral, subscription revocation, or an alternative billing program that RevenueCat does not yet cover, plan to keep a raw PBL path for those specific calls regardless of your main choice. 2. If you would otherwise build a receipt verification service, an RTDN pipeline, and a subscription state machine from scratch, the server side table lists at least eight concerns that RevenueCat removes. Choose RevenueCat unless you have a concrete reason to own that stack. 3. If you already have a mature billing backend with verified tokens and tested state handling, the gain is smaller. Weigh it against RevenueCat's client side simplifications and dashboard driven catalog. 4. Always confirm the "remains your responsibility" row items are staffed. RevenueCat does not replace your auth, your user database, your paywall UI, or your premium content gate. Passing `appUserID` and verifying entitlements server side via the REST API or webhooks is still on you. 5. When in doubt, map every requirement to a row in one of the three tables. Anything that lands in the "remains your responsibility" table costs the same under either option and should not drive the decision. Quick gate: ```text need custom RTDN pipeline? -> raw PBL only if you must own it end to end need deferral or revocation? -> keep a raw PBL path for those API calls need fast time to production? -> RevenueCat, then add raw PBL escape hatches later ``` ## References - [Full chapter](https://www.revenuecat.com/guides/revenuecat-android-sdk/appendix-what-revenuecat-replaces)
© RevenueCat · MIT · RevenueCat/ai-toolkit