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 content generators broken under macOS bash 3.2 + printf leading-dash (#535)

hypehouseagency23726fe633a6
diff --git a/claude-ops/scripts/lib/creative/landing.sh b/claude-ops/scripts/lib/creative/landing.sh
index a8806082..ef905508 100755
--- a/claude-ops/scripts/lib/creative/landing.sh
+++ b/claude-ops/scripts/lib/creative/landing.sh
@@ -154,7 +154,7 @@ You are a conversion-focused copywriter specializing in landing page hero sectio
Generate exactly 3 distinct landing-page hero copy variants for the product described below.
Each variant must contain:
- headline: 6-10 words, punchy, benefit-led
-- subhead: 1-2 sentences expanding the headline's promise (max 25 words)
+- subhead: 1-2 sentences expanding the promise of the headline (max 25 words)
- cta: 2-5 word call-to-action button text
</task>
<constraints>
@@ -222,7 +222,7 @@ if m:
printf '**Brand voice:** %s\n' "$brand_voice"
printf '**Product:** %s\n' "$brand_product"
printf '**Target persona:** %s\n\n' "$target_persona"
- printf '---\n\n'
+ printf '%s\n\n' '---'
printf '%s' "$variants_json" | jq -r '.variants[] | "## Variant \(.id)\n\n**Headline:** \(.headline)\n\n**Subhead:** \(.subhead)\n\n**CTA:** \(.cta)\n\n---\n"' 2>/dev/null || true
} > "$out_file"
diff --git a/claude-ops/scripts/ops-cron-competitor-daily.sh b/claude-ops/scripts/ops-cron-competitor-daily.sh
index b7d10726..d672af9a 100644
--- a/claude-ops/scripts/ops-cron-competitor-daily.sh
+++ b/claude-ops/scripts/ops-cron-competitor-daily.sh
@@ -81,7 +81,7 @@ COMPETITOR_COUNT=$(printf '%s' "$GROUPED" | jq 'length' 2>/dev/null || echo 0)
printf '# %s Competitor Intel — Daily Roll-up\n' "$BRAND_NAME"
printf '**Date:** %s \n' "$(TZ="$REPORT_TIMEZONE" date '+%a %d %b %Y %H:%M %Z')"
printf '**Signals:** %s med-severity events across %s competitor(s)\n\n' "$EVENT_COUNT" "$COMPETITOR_COUNT"
- printf '---\n\n'
+ printf '%s\n\n' '---'
if [[ "$COMPETITOR_COUNT" -eq 0 ]]; then
printf '_No med-severity signals in queue._\n'
diff --git a/claude-ops/scripts/ops-cron-seo-blog-gen.sh b/claude-ops/scripts/ops-cron-seo-blog-gen.sh
index 3ce35dce..b3dabf49 100755
--- a/claude-ops/scripts/ops-cron-seo-blog-gen.sh
+++ b/claude-ops/scripts/ops-cron-seo-blog-gen.sh
@@ -65,6 +65,22 @@ _gsc_token() {
printf '%s' "$tok"
}
+# ── GSC: resolve quota project for ADC user creds ────────────────────────────
+# User ADC credentials require a quota project header (x-goog-user-project) for
+# the Search Console API. Prefer an explicit env var, then the quota_project_id
+# recorded in the ADC file, then gcloud config.
+_gsc_quota_project() {
+ if [ -n "${GOOGLE_CLOUD_QUOTA_PROJECT:-}" ]; then
+ printf '%s' "$GOOGLE_CLOUD_QUOTA_PROJECT"; return
+ fi
+ local adc="${HOME}/.config/gcloud/application_default_credentials.json"
+ if [ -f "$adc" ]; then
+ local qp; qp="$(jq -r '.quota_project_id // empty' "$adc" 2>/dev/null)"
+ [ -n "$qp" ] && { printf '%s' "$qp"; return; }
+ fi
+ gcloud config get-value billing/quota_project 2>/dev/null | grep -v '^(unset)$' || true
+}
+
# ── GSC: pull search analytics ────────────────────────────────────────────────
_gsc_top_queries() {
local site_url="$1"
@@ -92,11 +108,16 @@ _gsc_top_queries() {
dataState: "final"
}')"
+ local quota_proj quota_hdr=()
+ quota_proj="$(_gsc_quota_project)"
+ [ -n "$quota_proj" ] && quota_hdr=(-H "x-goog-user-project: ${quota_proj}")
+
local resp
resp="$(curl -gsS --max-time 30 \
-X POST \
"https://searchconsole.googleapis.com/webmasters/v3/sites/${site_enc}/searchAnalytics/query" \
-H "Authorization: Bearer ${access_token}" \
+ "${quota_hdr[@]}" \
-H "Content-Type: application/json" \
-d "$payload" 2>/dev/null || echo '{}')"
diff --git a/claude-ops/scripts/ops-cron-social-calendar.sh b/claude-ops/scripts/ops-cron-social-calendar.sh
index c4fea6ab..5cf0155c 100755
--- a/claude-ops/scripts/ops-cron-social-calendar.sh
+++ b/claude-ops/scripts/ops-cron-social-calendar.sh
@@ -136,7 +136,7 @@ SYSTEM
Brand name: ${brand_name}
Brand voice: ${brand_voice}
Product: ${brand_product}
-This week's content context (reference where relevant): ${week_content}
+Content context for this week (reference where relevant): ${week_content}
</context>
<user_input>
Generate ${count} ${platform} posts.