Логотип Understanding Billing

Understanding Billing

Организация
RevenueCat
understanding-billing

Use this skill when a developer is new to Google Play Billing or needs to orient themselves before picking an implementation task. Maps their goal to the right pillar (Play Billing Library, Google Play Developer API, Play Console plus RTDNs) and routes them to the concrete skill to invoke next.

Add to TypingMind

Обзор

ИздательRevenueCat
Репозиторийplay-billing-skills
Название навыкаunderstanding-billing
Звёзды
58
Форки
0
Файлы в комплекте
Только инструкции
ЛицензияApache-2.0
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Всё необходимое — в инструкциях

    Всё необходимое для модели содержится в инструкциях — никаких дополнительных файлов для синхронизации.

  • Открытый исходный код

    Издатель навыка на GitHub — RevenueCat. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Understanding Billing в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/RevenueCat/play-billing-skills/tree/main/google-play/understanding-billing
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/RevenueCat/play-billing-skills.git /tmp/play-billing-skills
mkdir -p .claude/skills
cp -r /tmp/play-billing-skills/google-play/understanding-billing .claude/skills/understanding-billing
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Understanding Billing в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Understanding Billing, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Understanding Billing не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

Phase 0: Intent

Tell the user: "I will orient you to Google Play Billing's three pillars, map your goal to the right pillar, and point you at the concrete skill to run next."

Phase 1: Discovery

Before touching code, confirm the developer understands the three pillars and the four actors. Each pillar owns a different slice of the system:

PillarSurfaceRole
Play Billing Library (PBL)Android client, Gradle dep com.android.billingclient:billing-ktxQuery products, launch purchase dialog, receive results on device
Google Play Developer APIServer REST API at androidpublisher.googleapis.comVerify purchases, manage subscriptions, manage catalog. Source of truth
Google Play ConsoleWeb dashboardCreate products, set prices, configure RTDNs and API access

A fourth piece, Cloud Pub/Sub, carries Real Time Developer Notifications (RTDNs) from Google to your backend when purchase or subscription state changes.

The four actors in every transaction:

ActorResponsibility
Your appQuery products, launch purchase flow, forward purchase tokens to backend
Google Play Store appHosts the billing service PBL connects to, renders the purchase dialog, and talks to Google's servers
Your backendVerify tokens against the Developer API, store entitlements, process RTDNs
Google Play serversProcess payments, run renewals and payment recovery, emit RTDNs

Ask the developer which of these surfaces they already have set up: Play Console account, service account credentials, Pub/Sub topic, backend, Android app.

Phase 2: Plan

Map the developer's goal to the pillar(s) they need, then to the next skill.

Developer goalPrimary pillarNext skill
First time onboarding, no account yetPlay Consolegoogle-play/setup
Show prices and launch a purchase from the appPBLgoogle-play/integrating-pbl
Verify a purchase token on the serverDeveloper APIgoogle-play/backend-architecture
Receive renewal and cancellation eventsRTDN plus Developer APIgoogle-play/rtdn
Create or edit products, base plans, offersPlay Console or catalog APIgoogle-play/catalog-management
Handle subscription lifecycle statesDeveloper API plus RTDNgoogle-play/subscription-states
Upgrade an existing PBL 7 or 8 integrationPBLgoogle-play/pbl-v7-to-v9-migration or google-play/pbl-v8-to-v9-migration
Offer alternative billing or external linksPBL plus Developer APIgoogle-play/alternative-billing

Decision notes and tradeoffs:

  • Treat the Developer API as the source of truth. PBL is convenience. Your backend should verify every purchase token before granting entitlements.
  • Acknowledge every purchase within 3 days. Unacknowledged purchases auto refund.
  • PBL feature availability depends on the Google Play Store app version on the device. Use isFeatureSupported() before calling feature specific APIs.
  • Subscriptions have a lifecycle (active, paused, grace period, on hold, canceled, expired). Plan for state handling on the server side, not just the app.
  • Entitlements are your problem. Google does not store what each user has access to.

Phase 3: Execute

This chapter is conceptual. There is no code to run here. Route the developer to the implementation skill that matches the goal you identified in Phase 2.

Core vocabulary the next skill will assume you know:

TermMeaning
Product ID (SKU)Unique string per product, for example premium_monthly. Cannot be reused after deletion
Purchase TokenGoogle generated string identifying a transaction. Primary key for server verification
Order IDFinancial transaction ID. Subscriptions append a sequence like GPA.1234-5678-9012..1 per renewal
EntitlementThe access you grant after verifying a purchase. You track this, not Google
AcknowledgementRequired confirmation within 3 days or Google refunds the purchase
ConsumptionMarks a consumable one time product as used so it can be bought again. Implicitly acknowledges
Base PlanA billing period plus price inside a subscription product
OfferPromotional phase on a base plan (trial, intro price). Emits an offer token for purchase
RTDNPush notification via Cloud Pub/Sub when purchase or subscription state changes
Linked Purchase TokenPoints a new token back to the prior one on upgrade or downgrade. Follow the chain on the server

Product types the next skill will branch on:

TypeSubtypeNotes
One timeConsumableBuyable repeatedly after consumption. Virtual currency, boosts
One timeNon consumablePermanent. Ad removal, unlocks
Subscriptionauto-renewingStandard recurring. Google charges until canceled
SubscriptionPrepaidFixed period, no auto renewal. User tops up to extend
SubscriptionInstallmentSelect markets (BR, FR, IT, ES). Minimum payment commitment

High level purchase flow the next skill will implement:

  1. App queries product details through PBL.
  2. App shows products with localized prices.
  3. User taps Buy. App calls launchBillingFlow().
  4. Google Play dialog collects payment.
  5. Google processes payment. May enter pending for cash payments.
  6. PBL fires PurchasesUpdatedListener.
  7. App sends purchase token to backend.
  8. Backend calls Developer API to verify.
  9. Backend records entitlement, app unlocks content.
  10. Backend acknowledges within 3 days. For subscriptions, backend processes RTDNs for the rest of the lifecycle.

Phase 4: Verify

Sanity check the developer's understanding before moving on:

  • Can they name the three pillars and what each one owns?
  • Do they know which pillar is the source of truth? (Answer: Google Play Developer API)
  • Do they know the acknowledgement deadline? (Answer: 3 days, else auto refund)
  • Can they state whether their product is one time (consumable vs non consumable) or subscription (auto renewing, prepaid, installment)?
  • Do they know that entitlement tracking is their responsibility, not Google's?
  • Have they picked the next skill to invoke based on the Phase 2 table?

If any answer is unclear, re-read the relevant section of the full chapter before proceeding. If the developer is trying to sell physical goods, services performed in the physical world, peer to peer payments, or content consumable outside the app, Google Play Billing is not required. Alternative billing and external link programs vary by region (South Korea, India, EEA, United States, Japan, United Kingdom, Australia and other user choice billing markets); route to google-play/alternative-billing.

References

Часто задаваемые вопросы

Что делает навык ИИ Understanding Billing?

Use this skill when a developer is new to Google Play Billing or needs to orient themselves before picking an implementation task. Maps their goal to the right pillar (Play Billing Library, Google Play Developer API, Play Console plus RTDNs) and routes them to the concrete skill to invoke next.

Зачем использовать Understanding Billing в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Understanding Billing — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Understanding Billing в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/RevenueCat/play-billing-skills/tree/main/google-play/understanding-billing. TypingMind прочитает файл SKILL.md и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Understanding Billing?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Understanding Billing?

С любым количеством. В TypingMind вы можете использовать Understanding Billing с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Understanding Billing?

Да. Навык опубликован на GitHub по лицензии Apache-2.0. Издатель — RevenueCat. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇