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.
Shell agent-teamsai-agentai-automationanthropicautonomous-agentawsbusiness-operationsclaudeclaude-codeclaude-code-plugindevopsecommerceinbox-zeroklaviyomarketingmcpmorning-briefingpr-automationshopifyterminal
Fix seven logic bugs in phase 10-15 planning documents
Cursor Agentd5b723989e96
diff --git a/.planning/phases/phase-10/10-01-PLAN.md b/.planning/phases/phase-10/10-01-PLAN.mdindex e73574a1..f069aa5c 100644--- a/.planning/phases/phase-10/10-01-PLAN.md+++ b/.planning/phases/phase-10/10-01-PLAN.md@@ -62,7 +62,7 @@ Add `### Google Ads` credential resolution block after the existing credential b# 6-variable cascade: preferences.json → env → DopplerGADS_DEV_TOKEN="${google_ads_dev_token:-${GOOGLE_ADS_DEV_TOKEN:-$(doppler secrets get GOOGLE_ADS_DEV_TOKEN --plain 2>/dev/null)}}"GADS_CLIENT_ID="${google_ads_client_id:-${GOOGLE_ADS_CLIENT_ID:-}}"-GADS_CLIENT_SECRET=${google_ads_client_secret:-${GOOGLE_ADS_CLIENT_SECRET:-}}+GADS_CLIENT_SECRET="${google_ads_client_secret:-${GOOGLE_ADS_CLIENT_SECRET:-}}"GADS_REFRESH_TOKEN="${google_ads_refresh_token:-${GOOGLE_ADS_REFRESH_TOKEN:-$(doppler secrets get GOOGLE_ADS_REFRESH_TOKEN --plain 2>/dev/null)}}"GADS_CUSTOMER_ID="${google_ads_customer_id:-${GOOGLE_ADS_CUSTOMER_ID:-}}"GADS_LOGIN_CUSTOMER_ID="${google_ads_login_customer_id:-${GOOGLE_ADS_LOGIN_CUSTOMER_ID:-}}"@@ -105,7 +105,7 @@ Add `#### Google Ads` sub-section in Step 3j with the following steps:- **Step C**: Browser OAuth flow — launch localhost:8080 redirect server (`run_in_background: true`), construct `accounts.google.com/o/oauth2/auth` URL with `https://www.googleapis.com/auth/adwords` scope, print URL for user to open, capture authorization code from redirect, exchange for refresh token via `oauth2.googleapis.com/token`- **Step D**: Customer ID discovery — call `listAccessibleCustomers` to enumerate accounts; if multiple, AskUserQuestion to select; auto-detect MCC and set `GADS_LOGIN_CUSTOMER_ID`- **Step E**: Smoke test — `listAccessibleCustomers` round-trip; print ✓ or error message-- **Step F**: Save to `preferences.json` under `marketing.google_ads.*`+- **Step F**: Save to `preferences.json` under `marketing.projects.<project>.google_ads.*` (project slug from setup context — matches `get_cred` / `ops-marketing-dash` resolution path)Add `google-ads`, `gads` shortcuts to the setup routing table.diff --git a/.planning/phases/phase-11/11-01-PLAN.md b/.planning/phases/phase-11/11-01-PLAN.mdindex 6f221366..05bb18de 100644--- a/.planning/phases/phase-11/11-01-PLAN.md+++ b/.planning/phases/phase-11/11-01-PLAN.md@@ -50,6 +50,7 @@ Implement Meta Ads campaign management sub-commands in `ops-marketing/SKILL.md`:Implement `meta create-campaign` sub-command:- AskUserQuestion: campaign name, objective (OUTCOME_AWARENESS / OUTCOME_TRAFFIC / OUTCOME_ENGAGEMENT / OUTCOME_LEADS / OUTCOME_APP_PROMOTION / OUTCOME_SALES), daily budget (USD), special ad category (NONE / CREDIT / EMPLOYMENT / HOUSING / ISSUES_ELECTIONS_POLITICS)+- Convert USD dollars to cents before the API call: `daily_budget=$(awk "BEGIN{printf \"%.0f\", usd_amount * 100}")` — Meta's `daily_budget` is an integer in the account's minor currency unit (cents for USD)- POST to `https://graph.facebook.com/v19.0/{META_AD_ACCOUNT_ID}/campaigns`:```json{@@ -93,7 +94,7 @@ Implement `meta target <ADSET_ID>` sub-command:"instagram_positions": [...]}```-- PATCH to `https://graph.facebook.com/v19.0/{ADSET_ID}` with targeting spec+- POST to `https://graph.facebook.com/v19.0/{ADSET_ID}` with targeting spec (Meta Graph API updates use POST, not PATCH)- Require AskUserQuestion confirmation (Rule 5) before applying### Task 3: Creative Assembly sub-command@@ -149,6 +150,7 @@ Implement `meta audiences` sub-command (two modes):Implement `meta advantage` sub-command:- AskUserQuestion: campaign name, daily budget (USD), pixel ID, catalog ID (optional)+- Convert USD dollars to cents: `daily_budget=$(awk "BEGIN{printf \"%.0f\", usd_amount * 100}")` (same cents conversion as create-campaign)- POST to `/{META_AD_ACCOUNT_ID}/campaigns` with `objective: OUTCOME_SALES`, `smart_promotion_type: AUTOMATED_SHOPPING_ADS`, `status: PAUSED`- Auto-create ad set with `destination_type: WEBSITE`, linking pixel- Print campaign + ad set IDs; instruct user to add creatives before enablingdiff --git a/.planning/phases/phase-13/13-01-PLAN.md b/.planning/phases/phase-13/13-01-PLAN.mdindex 549c92a8..8e063f4b 100644--- a/.planning/phases/phase-13/13-01-PLAN.md+++ b/.planning/phases/phase-13/13-01-PLAN.md@@ -179,7 +179,9 @@ Cohort (Week) W0 W1 W2 W3 W4**File**: `claude-ops/skills/ops-marketing/SKILL.md` → `## ga4` section-AskUserQuestion: audience name, dimension for export (e.g. `city`, `deviceCategory`).+AskUserQuestion: audience name or numeric audience ID, dimension for export (e.g. `city`, `deviceCategory`).++If the user supplies a name (not numeric ID), resolve it first: GET `https://analyticsadmin.googleapis.com/v1beta/properties/{GA4_PROPERTY_ID}/audiences` and match `displayName` → numeric `<AUDIENCE_ID>`; if multiple matches, AskUserQuestion to disambiguate; if user supplies a numeric ID directly, use it as `<AUDIENCE_ID>`.POST to `https://analyticsdata.googleapis.com/v1alpha/properties/{GA4_PROPERTY_ID}/audienceExports`:diff --git a/.planning/phases/phase-14/14-01-PLAN.md b/.planning/phases/phase-14/14-01-PLAN.mdindex 3fb1e06a..f4750d7d 100644--- a/.planning/phases/phase-14/14-01-PLAN.md+++ b/.planning/phases/phase-14/14-01-PLAN.md@@ -81,6 +81,12 @@ WABA_ACCOUNT_ID="${WHATSAPP_BUSINESS_ACCOUNT_ID:-$(claude plugin config get what[ -z "$WABA_TOKEN" ] && WABA_TOKEN="$(doppler secrets get WHATSAPP_BUSINESS_TOKEN --plain 2>/dev/null)"[ -z "$WABA_PHONE_ID" ] && WABA_PHONE_ID="$(doppler secrets get WHATSAPP_PHONE_NUMBER_ID --plain 2>/dev/null)"[ -z "$WABA_ACCOUNT_ID" ] && WABA_ACCOUNT_ID="$(doppler secrets get WHATSAPP_BUSINESS_ACCOUNT_ID --plain 2>/dev/null)"+# preferences.json fallbacks (written by setup wizard Task 5)+if [ -f "$PREFS_PATH" ]; then+ [ -z "$WABA_TOKEN" ] && WABA_TOKEN="$(jq -r '.whatsapp_business.token // empty' "$PREFS_PATH" 2>/dev/null)"+ [ -z "$WABA_PHONE_ID" ] && WABA_PHONE_ID="$(jq -r '.whatsapp_business.phone_number_id // empty' "$PREFS_PATH" 2>/dev/null)"+ [ -z "$WABA_ACCOUNT_ID" ] && WABA_ACCOUNT_ID="$(jq -r '.whatsapp_business.business_account_id // empty' "$PREFS_PATH" 2>/dev/null)"+fi```Credential guard: if `WABA_TOKEN` or `WABA_PHONE_ID` empty, print setup hint and stop.diff --git a/.planning/phases/phase-15/15-01-PLAN.md b/.planning/phases/phase-15/15-01-PLAN.mdindex 18fd0222..dfd2acc9 100644--- a/.planning/phases/phase-15/15-01-PLAN.md+++ b/.planning/phases/phase-15/15-01-PLAN.md@@ -156,7 +156,7 @@ BLENDED_ROAS=$(awk "BEGIN{if ($TOTAL_SPEND > 0) printf \"%.2f\", $TOTAL_VALUE /**Health score computation** (0–100 composite):- ROAS trend (0–40 pts): blended ROAS ≥ 3.0 → 40, ≥ 2.0 → 30, ≥ 1.5 → 20, ≥ 1.0 → 10, < 1.0 → 0-- Spend efficiency (0–30 pts): CTR ≥ 2% → 30, ≥ 1% → 20, ≥ 0.5% → 10+- Spend efficiency (0–30 pts): blended paid CTR — Meta `meta.ctr` and Google Ads `metrics.ctr` (from `GADS_DATA`) weighted by click volume; if only one paid channel is configured, use that channel's CTR; if neither has CTR data, 0 pts: ≥ 2% → 30, ≥ 1% → 20, ≥ 0.5% → 10- Channel diversification (0–30 pts): 3+ channels with spend → 30, 2 channels → 20, 1 channel → 10- `health_status`: score ≥ 80 → `"EXCELLENT"`, ≥ 60 → `"GOOD"`, ≥ 40 → `"FAIR"`, < 40 → `"POOR"`