claude-skills/

Anthropic公式スキル・プラグインの日本語ディレクトリ

last sync 22h ago
スキルOfficialdevelopment

💰create-revenuecat-project

プラグイン
rc

説明

RevenueCatプロジェクトをゼろから完全にセットアップします — アプリ、プロダクト、エンタイトルメント、オファリング、パッケージを正しい順序で作成します。 次のような場合に使用: ユーザーが新しいRevenueCatプロジェクトを作成したい場合、アプリ内課金を設定したい場合、サブスクリプションやマネタイズの構成を行いたい場合、またはiOS・Android・Web向けのIAPインフラをゼロから構築したい場合。

原文を表示

Set up a complete RevenueCat project from scratch — creates apps, products, entitlements, offerings, and packages in the correct order. Use when the user wants to create a new RevenueCat project, configure in-app purchases, set up subscriptions or monetization, or bootstrap IAP infrastructure for iOS, Android, or Web.

ユースケース

  • 新しいRevenueCatプロジェクトを作成したい
  • アプリ内課金を設定したい
  • サブスクリプション構成を行いたい
  • IAPインフラをゼロから構築したい

本文(日本語訳)

RevenueCat プロジェクト ブートストラップ

RevenueCat プロジェクトをゼロから完全にセットアップする手順をガイドします。

手順

重要: すべてのツール呼び出しには RevenueCat MCP サーバーを使用してください。 MCP サーバーは複数のプロジェクトにアクセスできる場合があります。 まず必ず list-projects を実行して、アクセス可能なすべてのプロジェクトを取得してください。 複数のプロジェクトが返された場合は、どのプロジェクトを使用するか、または新しいプロジェクトを作成するかをユーザーに確認してください。


フェーズ 1: 要件の確認

開発者のニーズを把握するために、以下の項目を質問します:

  1. 対応プラットフォーム — 「どのプラットフォーム向けにアプリを開発していますか?」 (iOS / Android / Web / 複数プラットフォーム)

  2. ビジネスモデル — 「どのような収益化を予定していますか?」 (サブスクリプション / 買い切り / 消耗型アイテム / それらの組み合わせ)

  3. サブスクリプションのプラン構成(該当する場合) — 「どのようなサブスクリプションオプションを提供したいですか?」 (よくある例: 月額 + 年額、単一プラン、フリーミアム + プレミアム)

  4. アプリの詳細情報 — バンドル ID(iOS、例: com.company.appname)、パッケージ名(Android)、表示名


フェーズ 2: リソースの作成

依存関係があるため、以下の順番で実行してください。

1. プロジェクトの確認 / 作成

  • list-projects でアクセス可能なプロジェクトを一覧表示
  • 複数ある場合: どれを使用するか、または新規作成するかをユーザーに確認
  • 新規作成する場合は create-project MCP ツールを使用
  • 以降のすべての呼び出しに使用するため project_id を保存

2. アプリの作成(プラットフォームごとに実施)

  • モバイルアプリの場合: App Store Connect / Google Play Console でのアプリ設定済みかどうかをユーザーに確認します。 設定済みの場合は create-app ツールでアプリを作成してください(type: app_store | play_store)。 未設定の場合は自動生成された test_store アプリを使用し、App Store Connect / Google Play Console との連携は後から設定できることをユーザーに伝えてください。
  • Web アプリの場合: type を rc_billing として create-app を実行

3. プロダクトの作成(サブスクリプション / 購入アイテムごとに実施)

  • create-product ツールを使用

4. エンタイトルメントの作成(機能 / アクセスレベルごとに実施)

  • create-entitlement ツールを使用

5. プロダクトをエンタイトルメントに紐付け

  • attach-products-to-entitlement ツールを使用

6. デフォルトオファリングの作成

  • create-offering ツールを使用(lookup_key: "default"

7. オファリングにパッケージを作成

  • create-package ツールを使用 (サブスクリプションの場合は $rc_monthly$rc_annual などを使用)

8. プロダクトをパッケージに紐付け

  • attach-products-to-package ツールを使用

9. API キーの取得

  • list-app-public-api-keys ツールを使用

フェーズ 3: セットアップ完了サマリーと次のステップ

以下の形式で完全なセットアップサマリーを提示します:

Project Setup Complete!
=======================

Project: {project_name} ({project_id})

Apps Created:
  iOS: {app_name} - API Key: appl_xxxxx
  Android: {app_name} - API Key: goog_xxxxx

Products:
  - monthly_premium (subscription, P1M)
  - annual_premium (subscription, P1Y)

Entitlements:
  - premium → monthly_premium, annual_premium

Offering: default (current)
  └── $rc_monthly → monthly_premium
  └── $rc_annual → annual_premium

Next Steps:
1. RevenueCat ダッシュボードでストアの認証情報を設定する
2. App Store Connect / Play Console でプロダクトを作成する
3. アプリに SDK を追加する(/rc:create-app を参照)
4. "default" オファリングを使用してペイウォール UI を実装する

エラー処理

いずれかのステップが失敗した場合:

  1. 発生したエラーを具体的に報告する
  2. 修正方法を提案する (例: 「バンドル ID がすでに使用されている可能性があります」)
  3. そのステップの再試行またはスキップを提案する
  4. 可能であれば残りのステップを続行する
原文(English)を表示

RevenueCat Project Bootstrap

Guide through setting up a complete RevenueCat project from scratch.

Instructions

Important: Use the RevenueCat MCP server for all tool calls. The MCP server may have access to multiple projects. Always use list-projects first to retrieve all accessible projects. If multiple projects are returned, ask the user which project to use or if they want to create a new one.

Phase 1: Discovery

Ask targeted questions to understand the developer's needs:

  1. Platforms — "Which platforms are you building for?" (iOS, Android, Web, or multiple)
  2. Business Model — "What type of monetization are you planning?" (subscriptions, one-time purchases, consumables, or a mix)
  3. Subscription Tiers (if applicable) — "What subscription options do you want to offer?" (common: Monthly + Annual, single tier, Freemium + Premium)
  4. App Details — Bundle ID (iOS, e.g. com.company.appname), package name (Android), and display name

Phase 2: Create Resources

Execute in this order — dependencies matter.

  1. Verify/Create Project list-projects - list accessible projects If multiple: ask user which to use, or offer to create a new one To create a new project, use the create-project MCP tool Store project_id for all subsequent calls

  2. Create Apps (for each platform):

    • For mobile apps, ask if the user already has set up their app in App Store Connect / Google Play Console. If so, create an app using the create-app tool (type: app_store | play_store). If not, use the automatically generated test_store app and tell the user that they can set up the integration with App Store Connect / Google Play Console later.
    • For web apps, create-app with type rc_billing
  3. Create Products (for each subscription/purchase): create-product tool

  4. Create Entitlements (for each feature/access level): create-entitlement tool

  5. Attach Products to Entitlements: attach-products-to-entitlement tool

  6. Create Default Offering: create-offering tool (lookup_key: "default")

  7. Create Packages in Offering: create-package tool (for subscriptions, use $rc_monthly, $rc_annual, etc.)

  8. Attach Products to Packages: attach-products-to-package tool

  9. Get API Keys: list-app-public-api-keys tool

Phase 3: Summary & Next Steps

Provide a complete setup summary:

Project Setup Complete!
=======================

Project: {project_name} ({project_id})

Apps Created:
  iOS: {app_name} - API Key: appl_xxxxx
  Android: {app_name} - API Key: goog_xxxxx

Products:
  - monthly_premium (subscription, P1M)
  - annual_premium (subscription, P1Y)

Entitlements:
  - premium → monthly_premium, annual_premium

Offering: default (current)
  └── $rc_monthly → monthly_premium
  └── $rc_annual → annual_premium

Next Steps:
1. Configure store credentials in RevenueCat dashboard
2. Create products in App Store Connect / Play Console
3. Add SDK to your app (see /rc:create-app)
4. Implement paywall UI using the "default" offering

Error Handling

If any step fails:

  1. Report the specific error clearly
  2. Suggest fixes (e.g., "Bundle ID may already be in use")
  3. Offer to retry or skip that step
  4. Continue with remaining steps if possible

原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。