Token导航 LogoToken导航TokenDH.com
开发需要联网unknown未标认证来源可访问许可证需确认审计未展示

revenuecatrevenuecat 文档

Agent Skill

revenuecat 用于补充开发相关能力,适合在 Local Agent 中需要让 Agent 承接开发相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

294

周安装

12

下载量

94
Local Agent

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:revenuecat(revenuecat 文档)
来源仓库:https://smithery.ai
仓库路径:revenuecat
安装命令:
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。当前暂无明确安装命令,请以来源页面说明为准。

简介

用于查阅 RevenueCat 订阅与支付集成文档。

  • 适合配置产品层级、Webhook 与数据同步。
  • 可解释沙箱测试流程与生产环境差异。适用宿主包括 Local Agent,接入前应确认版本、权限和运行环境要求。
  • 需遵循官方安全指南与隐私政策。revenuecat 属于开发类 Skill,可作为该场景下的辅助能力补充。
  • 安装前应确认 API key 权限与计费关联风险。

SKILL.md

RevenueCat Skill

Expert assistance for implementing in-app subscriptions and purchases using RevenueCat across iOS, Android, Flutter, React Native, and web platforms.

When to Use This Skill

This skill should be triggered when:

  • SDK Setup: Initializing RevenueCat SDK in iOS, Android, Flutter, or React Native apps
  • Subscription Implementation: Adding subscription or in-app purchase functionality
  • Entitlement Checks: Verifying user access to premium features or content
  • Purchase Flow: Implementing buy buttons, handling transactions, or processing purchases
  • Restore Purchases: Adding restore functionality for users switching devices
  • Offerings/Products: Fetching and displaying subscription options or product catalogs
  • Paywall Design: Building or configuring paywalls and purchase screens
  • Customer Info: Retrieving subscription status or customer data
  • Debugging Purchases: Troubleshooting subscription issues or transaction failures
  • REST API Integration: Server-side subscription validation or webhook handling

Quick Reference

SDK Configuration

Swift (iOS)

import RevenueCat

Purchases.logLevel = .debug
Purchases.configure(withAPIKey: "your_public_api_key", appUserID: "user_123")

Kotlin (Android)

Purchases.logLevel = LogLevel.DEBUG
Purchases.configure(PurchasesConfiguration.Builder(this, "your_public_api_key").build())

Flutter

await Purchases.setLogLevel(LogLevel.debug);
PurchasesConfiguration configuration = PurchasesConfiguration("your_public_api_key");
await Purchases.configure(configuration);

React Native

Purchases.setLogLevel(Purchases.LOG_LEVEL.DEBUG);
Purchases.configure({ apiKey: "your_public_api_key" });

Checking Entitlements

Swift

let customerInfo = try await Purchases.shared.customerInfo()
if customerInfo.entitlements["pro"]?.isActive == true {
    // User has premium access
}

Kotlin

Purchases.sharedInstance.getCustomerInfoWith(
    onSuccess = { customerInfo ->
        if (customerInfo.entitlements["pro"]?.isActive == true) {
            // User has premium access
        }
    }
)

React Native

const customerInfo = await Purchases.getCustomerInfo();
if (customerInfo.entitlements.active["pro"] !== undefined) {
    // User has premium access
}

Fetching Offerings

Swift

Purchases.shared.getOfferings { (offerings, error) in
    if let packages = offerings?.current?.availablePackages {
        self.display(packages)
    }
}

Kotlin

Purchases.sharedInstance.getOfferingsWith({ error -> }) { offerings ->
    offerings.current?.availablePackages?.let { packages ->
        // Display packages
    }
}

Making a Purchase

Swift

Purchases.shared.purchase(package: package) { (transaction, customerInfo, error, userCancelled) in
    if customerInfo.entitlements["pro"]?.isActive == true {
        // Unlock premium content
    }
}

Kotlin

Purchases.sharedInstance.purchase(
    packageToPurchase = aPackage,
    onError = { error, userCancelled -> },
    onSuccess = { storeTransaction, customerInfo ->
        if (customerInfo.entitlements["pro"]?.isActive == true) {
            // Unlock premium content
        }
    }
)

Restoring Purchases

Swift

Purchases.shared.restorePurchases { customerInfo, error in
    // Check customerInfo to see if entitlement is now active
}

Kotlin

Purchases.sharedInstance.restorePurchases(
    onError = { error -> },
    onSuccess = { customerInfo ->
        // Check customerInfo to see if entitlement is now active
    }
)

REST API - Get Customer Info

curl --request GET \
  --url https://api.revenuecat.com/v1/subscribers/app_user_id \
  --header 'Authorization: Bearer PUBLIC_API_KEY'

Key Concepts

Entitlements

A level of access, features, or content that a user is "entitled" to. Most apps use a single entitlement (e.g., "pro"). Created in the RevenueCat dashboard and linked to products. When a product is purchased, its associated entitlements become active.

Offerings

The set of products available to a user. Configured remotely in the dashboard, allowing you to change available products without app updates. Access via offerings.current for the default offering.

Packages

Containers for products within an offering. Include convenience accessors like .monthly, .annual, .lifetime. Each package contains a storeProduct with pricing details.

CustomerInfo

The central object containing all subscription and purchase data for a user. Retrieved via getCustomerInfo() or returned after purchases. Contains the entitlements dictionary for access checks.

App User ID

Unique identifier for each user. Can be provided during configuration or auto-generated as an anonymous ID. Used to sync purchases across devices.

Reference Files

This skill includes comprehensive documentation in references/:

  • other.md - General RevenueCat documentation and overview

For detailed implementation patterns beyond the quick reference, consult the official documentation at https://www.revenuecat.com/docs/

Working with This Skill

For Beginners

  1. Start by configuring the SDK in your app's initialization code
  2. Create entitlements and offerings in the RevenueCat dashboard
  3. Implement a simple entitlement check before showing premium content
  4. Add a purchase button using purchase(package:)
  5. Include a "Restore Purchases" button for App Store compliance

For Intermediate Users

  • Implement dynamic paywalls by fetching offerings and displaying packages
  • Handle multiple entitlements for tiered access levels
  • Set up customer info listeners for real-time subscription updates
  • Use the REST API for server-side validation

For Advanced Users

  • Configure webhooks for server-side event handling
  • Implement A/B testing with different offerings
  • Set up integrations with analytics and attribution platforms
  • Handle edge cases like grace periods and billing retry

Common Patterns

Paywall Display Logic

// Show paywall only if user doesn't have active subscription
if customerInfo.entitlements["pro"]?.isActive != true {
    showPaywall()
}

Conditional Offerings

if user.isPaidDownload {
    packages = offerings?.offering(identifier: "paid_download_offer")?.availablePackages
} else {
    packages = offerings?.current?.availablePackages
}

Important Notes

  • Always initialize the SDK early in your app's lifecycle
  • Use debug logging during development (Purchases.logLevel =.debug)
  • The SDK automatically finishes/acknowledges transactions
  • Only call restorePurchases from user interaction (like a button tap)
  • Use public API keys from Project Settings; never expose secret keys
  • Test Store allows development testing without real charges

Resources

Official Documentation

references/

Organized documentation extracted from official sources with detailed explanations and code examples.

scripts/

Add helper scripts here for common automation tasks.

assets/

Add templates, boilerplate, or example projects here.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Local Agent

76.16%
按下载量换算72

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills