Catalog Management 标志

Catalog Management

组织
RevenueCat
catalog-management

Use this skill when managing Google Play product and subscription catalogs programmatically with the Google Play Developer API. Covers create, update, activation, deactivation, and deletion for monetization.onetimeproducts, monetization.subscriptions, and legacy inappproducts endpoints, plus regional pricing automation.

Add to TypingMind

概览

发布者RevenueCat
代码仓库play-billing-skills
技能名称catalog-management
星标数
58
复刻数
0
附带文件
仅含指令
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 RevenueCat 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Catalog Management AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/RevenueCat/play-billing-skills/tree/main/google-play/catalog-management
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
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/catalog-management .claude/skills/catalog-management
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Catalog Management,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Catalog Management。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Catalog Management 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Catalog Management

Manage Google Play product catalogs at scale through the Android Publisher API. This skill helps you choose between Play Console and API based workflows, wire up the right endpoints for one time products and subscriptions, and keep regional pricing in sync with your source of truth.

Phase 1: Discovery

Confirm the basics before writing catalog code.

  1. Service account permission. The service account must hold Manage store presence ("Edit pricing, in-app products, and pricing templates") on every app you manage. Without it, write calls to inappproducts, monetization.onetimeproducts, and monetization.subscriptions return 403. Verify in Play Console under Users and permissions, then grant app level access to every package you intend to manage.
  2. API product surface. Identify which endpoint family each SKU currently lives under. Catalogs only ever managed in Play Console were migrated automatically and live under monetization.onetimeproducts, as do products created through that service. Products created or managed through the inappproducts service stay there until you migrate them (an update through monetization.onetimeproducts migrates them). Once migrated, the legacy surface stops serving that product.
  3. Existing catalog shape. List the current catalog with monetization.onetimeproducts.list and monetization.subscriptions.list. Record product IDs, base plan IDs, offer IDs, and activation state so you know what you are mutating.
  4. Quota posture. Review quota usage in the Google Cloud Console under APIs and Services > Quotas for the Google Play Android Developer API. The three tiers you depend on are the per minute query limit, the hourly modification limit, and the hourly latency sensitive modification limit.

Phase 2: Plan

Choose the management model that matches your scale.

Catalog sizeRecommended surfaceNotes
Under 100 products, rare changesPlay Console UINo automation overhead. Manual review before every change.
100 to 10,000 productsbatchUpdate with allowMissing=true, latency tolerantChunks of 100 clear the full catalog in minutes.
Over 10,000 productsbatchUpdate with pacing, latency tolerantAdd inter batch delay, schedule off peak, run dry runs locally.

Pick the right update mechanism per operation:

  • Use patch with an updateMask for targeted field changes on a single product.
  • Use monetization.subscriptions.batchUpdate for subscriptions and their nested base plans. Offers are a separate resource: write them with monetization.subscriptions.basePlans.offers.batchUpdate (or create) and activate them with offers.activate or offers.batchUpdateStates; new offers stay DRAFT until activated.
  • Use inappproducts.update only when you want to replace an entire legacy product resource and you send every field.

Plan the activation state explicitly. Base plans created through the API start in DRAFT. Users cannot purchase until you call monetization.subscriptions.basePlans.activate. One time products work the same way for new purchase options: a purchase option that has never been activated stays in Draft, invisible to the Play Billing Library, until you activate it with purchaseOptions.batchUpdateStates (and its offers with purchaseOptions.offers.activate). Updating a product never changes the state of its existing purchase options. Write the activation step into your runbook so you do not ship dark products.

Plan reconciliation before you plan writes. Define a policy for each diff class:

  • Missing remotely: create via batch with allowMissing=true.
  • Divergent: update via batch with the narrowest updateMask your system manages.
  • Missing locally: deactivate or delete based on whether any base plan has ever been activated.

Add a safety rail: if a reconciliation run proposes changes to more than a threshold percentage of the catalog, fail closed and require manual review.

Phase 3: Execute

Endpoint reference

CapabilityOne time productSubscription
Createmonetization.onetimeproducts.patch or batchUpdate with allowMissing=true (there is no create)monetization.subscriptions.create
Targeted updatemonetization.onetimeproducts.patchmonetization.subscriptions.patch
Bulk create/updatemonetization.onetimeproducts.batchUpdatemonetization.subscriptions.batchUpdate
Listmonetization.onetimeproducts.listmonetization.subscriptions.list
Deletemonetization.onetimeproducts.delete / batchDeletemonetization.subscriptions.delete (only if never activated)
Activatemonetization.onetimeproducts.purchaseOptions.batchUpdateStates (activatePurchaseOptionRequest); offers: purchaseOptions.offers.activatemonetization.subscriptions.basePlans.activate
DeactivatepurchaseOptions.batchUpdateStates (deactivatePurchaseOptionRequest); offers: purchaseOptions.offers.deactivatemonetization.subscriptions.basePlans.deactivate
Activate offerpurchaseOptions.offers.activate (see Activate row)monetization.subscriptions.basePlans.offers.activate
Price migrationn/amonetization.subscriptions.basePlans.migratePrices

Create or update a one time product in bulk

kotlin
val request = BatchUpdateOneTimeProductsRequest().apply {
    requests = chunk.map { product ->
        UpdateOneTimeProductRequest().apply {
            oneTimeProduct = product
            allowMissing = true
            updateMask = "listings,purchaseOptions,taxAndComplianceSettings"
            // Required. Use the regionVersion.version returned by monetization.convertRegionPrices.
            regionsVersion = RegionsVersion().setVersion(currentRegionsVersion)
            latencyTolerance =
                "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT"
        }
    }
}
androidPublisher.monetization()
    .onetimeproducts()
    .batchUpdate(packageName, request)
    .execute()

Send chunks of 100. Each batch counts as one query against the per minute and hourly modification tiers.

Patch a subscription listing

kotlin
val subscription = Subscription().apply {
    listings = listOf(
        SubscriptionListing().apply {
            languageCode = "en-US"
            title = "Premium Plan"
            description = "Access all premium features"
        }
    )
}
androidPublisher.monetization().subscriptions()
    .patch(packageName, productId, subscription)
    .setUpdateMask("listings")
    .setRegionsVersionVersion(currentRegionsVersion)
    .execute()

Every patch needs the regionsVersion.version query parameter (Java client: setRegionsVersionVersion(...)); in batchUpdate it goes in each request's regionsVersion field. Use the regionVersion.version returned by monetization.convertRegionPrices.

Activate a base plan

kotlin
androidPublisher.monetization().subscriptions()
    .basePlans()
    .activate(
        packageName, productId, basePlanId,
        ActivateBasePlanRequest()
    )
    .execute()

A subscription is not purchasable until at least one base plan is activated.

Archive rather than delete

For one time products, prefer removing them from your storefront while leaving the catalog entry intact, so restore flows still resolve product IDs. Only call monetization.onetimeproducts.delete when you are sure no restore path references the product.

For subscriptions, deactivate all base plans to stop new signups while existing subscribers continue renewing:

kotlin
androidPublisher.monetization().subscriptions()
    .basePlans()
    .deactivate(
        packageName, productId, basePlanId,
        DeactivateBasePlanRequest()
    )
    .execute()

Delete the subscription itself only when no base plan has ever been activated. After activation, deactivation is the terminal state.

Regional pricing automation

Regional price updates are high volume operations, so route them through batch methods with latency tolerant mode. Build the region map with monetization.convertRegionPrices (POST applications/{packageName}/pricing:convertRegionPrices), which applies Play's country pricing patterns and returns the regionVersion to send as regionsVersion, then submit batchUpdate calls of up to 100 products per request.

New prices apply to new subscribers only. Moving existing subscribers with monetization.subscriptions.basePlans.migratePrices is a price change that Google announces to them; for increases, choose priceIncreaseType deliberately (opt in increases cancel subscribers who do not accept). Do not run it automatically after a price sync. See the price-changes skill.

Handle quota errors

On HTTP 429 with reason: rateLimitExceeded, back off exponentially and resume. Keep batches at latency tolerant mode whenever visibility within 24 hours is acceptable, which keeps the hourly latency sensitive tier free for real time fixes like pricing corrections.

References

常见问题

Catalog Management AI 技能有什么作用?

Use this skill when managing Google Play product and subscription catalogs programmatically with the Google Play Developer API. Covers create, update, activation, deactivation, and deletion for monetization.onetimeproducts, monetization.subscriptions, and legacy inappproducts endpoints, plus regional pricing automation.

为什么在 TypingMind 中使用 Catalog Management?

因为您只需安装一次,就能搭配任何模型使用。Catalog Management 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Catalog Management?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/RevenueCat/play-billing-skills/tree/main/google-play/catalog-management。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Catalog Management?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Catalog Management 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Catalog Management 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Catalog Management AI 技能免费吗?

是的。RevenueCat 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇