Skip to content

Business operating system for Claude Code — 57 skills, 21 agents, smart daemon. Unified inbox (WhatsApp/Email/Slack/Telegram), autonomous PR merge, full-AWS monitoring, revenue (Stripe+RevenueCat), e-commerce (Shopify), marketing (Klaviyo/Meta/GA4), voice (Bland/ElevenLabs), APM (Datadog/NewRelic/OTEL), YOLO mode.

fix: migrate RevenueCat API calls from v1 to v2

auroracapital58a3d6e41676
diff --git a/claude-ops/.claude-plugin/plugin.json b/claude-ops/.claude-plugin/plugin.json
index 13e4da35..bc665b74 100644
--- a/claude-ops/.claude-plugin/plugin.json
+++ b/claude-ops/.claude-plugin/plugin.json
@@ -179,7 +179,7 @@
},
"revenuecat_api_key": {
"title": "RevenueCat API Key",
- "description": "RevenueCat V1 API key for mobile subscription revenue tracking.",
+ "description": "RevenueCat API key for mobile subscription revenue tracking (V2 API).",
"type": "string",
"sensitive": true,
"default": ""
diff --git a/claude-ops/agents/revenue-tracker.md b/claude-ops/agents/revenue-tracker.md
index e9277057..9e81ac27 100644
--- a/claude-ops/agents/revenue-tracker.md
+++ b/claude-ops/agents/revenue-tracker.md
@@ -120,7 +120,7 @@ Only run if `REVENUECAT_API_KEY` is set AND a project ID is available (from `$RE
```bash
curl -s -H "Authorization: Bearer $REVENUECAT_API_KEY" \
- "https://api.revenuecat.com/v1/projects/$REVENUECAT_PROJECT_ID/metrics/overview" 2>/dev/null
+ "https://api.revenuecat.com/v2/projects/$REVENUECAT_PROJECT_ID/metrics/overview" 2>/dev/null
```
Extract `mrr`, `revenue` (trailing 30d), `active_subscriptions`, `active_trials`.
@@ -129,7 +129,7 @@ Extract `mrr`, `revenue` (trailing 30d), `active_subscriptions`, `active_trials`
```bash
curl -s -H "Authorization: Bearer $REVENUECAT_API_KEY" \
- "https://api.revenuecat.com/v1/projects/$REVENUECAT_PROJECT_ID/metrics/active_subscribers" 2>/dev/null
+ "https://api.revenuecat.com/v2/projects/$REVENUECAT_PROJECT_ID/metrics/active_subscribers" 2>/dev/null
```
### Churn rate
diff --git a/claude-ops/skills/ops-settings/SKILL.md b/claude-ops/skills/ops-settings/SKILL.md
index a94e59e8..95c89ccd 100644
--- a/claude-ops/skills/ops-settings/SKILL.md
+++ b/claude-ops/skills/ops-settings/SKILL.md
@@ -100,7 +100,7 @@ When a specific integration is selected (via argument or user pick from dashboar
| Integration | Smoke test command |
|-------------|-------------------|
| Stripe | `curl -s -u "${new_key}:" https://api.stripe.com/v1/balance \| jq .object` → must be "balance" |
-| RevenueCat | `curl -s -H "Authorization: Bearer ${new_key}" "https://api.revenuecat.com/v1/subscribers/test_user" \| jq .subscriber` → non-null |
+| RevenueCat | `curl -s -H "Authorization: Bearer ${new_key}" "https://api.revenuecat.com/v2/projects" \| jq '.items \| length'` → non-zero |
| Telegram | `node ${CLAUDE_PLUGIN_ROOT}/telegram-server/index.js --health 2>&1` → "healthy" |
| Slack | `curl -s -H "Authorization: Bearer ${new_token}" https://slack.com/api/auth.test \| jq .ok` → true |
| Shopify | `curl -s -H "X-Shopify-Access-Token: ${new_token}" "https://${store_url}/admin/api/2024-01/shop.json" \| jq .shop.name` → non-null |
diff --git a/claude-ops/skills/setup/SKILL.md b/claude-ops/skills/setup/SKILL.md
index 2a7b74a2..5157a434 100644
--- a/claude-ops/skills/setup/SKILL.md
+++ b/claude-ops/skills/setup/SKILL.md
@@ -2279,9 +2279,9 @@ Agent(
On `[Paste RevenueCat API key manually]`:
```
-Enter your RevenueCat V1 API Key:
- Find it: app.revenuecat.com → Project settings → API keys → V1 secret key
- Format: rcb_XXX (V2) or legacy secret (starts with sk_)
+Enter your RevenueCat API Key:
+ Find it: app.revenuecat.com → Project settings → API keys → Secret key
+ Format: rcb_XXX (V2 secret) or sk_XXX (legacy secret key)
Enter your RevenueCat Project ID:
Find it in the URL: app.revenuecat.com/projects/<project_id>/...
@@ -2290,7 +2290,7 @@ Enter your RevenueCat Project ID:
Smoke test:
```bash
curl -s -H "Authorization: Bearer $REVENUECAT_API_KEY" \
- "https://api.revenuecat.com/v1/projects/$REVENUECAT_PROJECT_ID/metrics/overview" | jq '.mrr // .object'
+ "https://api.revenuecat.com/v2/projects/$REVENUECAT_PROJECT_ID/metrics/overview" | jq '.metrics // .object'
```
Expect a numeric `mrr` or an object descriptor. If the response is `{"code": 7243, ...}` (auth error), re-ask.