Kai daily ad review

From cgallic/kai-cmo-harness · View interactive version

Kai daily ad review is an AI agent skill from the GitHub repository cgallic/kai-cmo-harness. Daily ad performance check-in across platforms. Pulls live metrics from Meta, Google, and LinkedIn via deterministic scripts, compares against benchmarks and previous period, flags overspend/underperformers/policy issues, and outputs a quick daily summary with action items. Use when "daily ad review

How to use this skill

Skill file

Daily ad performance check-in. Pull live data via scripts, compare against benchmarks, flag problems, output a summary with action items.

This is NOT the same as /kai-ad-campaign (which creates/evaluates campaigns end-to-end). This is a fast daily pulse check — meant to run every morning or on-demand.

Phase 0: Pull Ad Data

Run the unified pull script. It auto-detects which platforms have credentials and pulls everything.

python scripts/ads/pull_all.py

This writes structured JSON to workspace/ads/pulls/YYYY-MM-DD/:

To pull a specific platform only: python scripts/ads/pull_all.py --platforms meta

What the scripts pull (comprehensive)

Meta (scripts/ads/meta.py pull):

Google (scripts/ads/google.py pull):

LinkedIn (scripts/ads/linkedin.py pull):

If a platform isn't configured

The script will skip it and log which env vars are missing. At minimum, Meta should be configured:

META_ACCESS_TOKEN=<long-lived token>
META_AD_ACCOUNT_ID=<numeric, without act_ prefix>

Phase 1: Read and Analyze Pull Data

Read the JSON files from today's pull:

import json
from pathlib import Path

date = "YYYY-MM-DD"  # today's date
pull_dir = Path(f"workspace/ads/pulls/{date}")

# Read whatever's available

> **Kai root note:** `knowledge/`, `harness/`, and `scripts/` paths in this skill live in the Kai install, not the user's project. Resolve them against the first ancestor directory of this SKILL.md that contains a `knowledge/` folder (the Kai plugin root, `~/.claude/kai`, or the kai-cmo-harness repo). `MARKETING.md`, `memory/`, and any output files live in the current project. If a referenced `scripts/` command is not available in this install, say so, skip it, and continue with the file-based guidance — never fabricate its output.
for f in pull_dir.glob("*.json"):
    with open(f) as fh:
        data = json.load(fh)
    # Analyze...

Key metrics to extract per platform

From Meta (meta.json):

From Google (google.json):

From LinkedIn (linkedin.json):

Phase 2: Cross-Reference with PostHog

Load: harness/references/posthog-marketing-queries.md

If PostHog is connected, pull:

This connects ad spend to actual on-site behavior.

Phase 3: Benchmark Comparison

Performance Benchmarks

| Metric | Poor | OK | Good | Great |

|--------|------|----|------|-------|

| CTR | < 0.5% | 0.5-1% | 1-2% | > 2% |

| CPC | > $5 | $3-5 | $1.50-3 | < $1.50 |

| CPL | > $50 | $30-50 | $15-30 | < $15 |

| ROAS | < 1x | 1-2x | 2-4x | > 4x |

| Frequency | > 4.0 | 3.0-4.0 | 1.5-3.0 | 1.0-1.5 |

Adjust benchmarks to the vertical (from MARKETING.md if available).

Trend Detection

Compare today vs 7-day average:

Audience Performance (from LAL tagging)

Compare ad set performance by audience_type:

Phase 4: Issue Detection

Flag these automatically:

| Issue | Trigger | Severity |

|-------|---------|----------|

| Overspend | Daily spend pace > 120% of budget | HIGH |

| Zero impressions | Active ad with 0 impressions today | HIGH |

| CTR crash | CTR < 50% of 7-day avg | HIGH |

| CPC spike | CPC > 150% of 7-day avg | MEDIUM |

| No conversions | Spend > $50 today with 0 conversions | MEDIUM |

| Creative fatigue | CTR declining 3+ consecutive days | MEDIUM |

| Frequency overload | Frequency > 3.5 on any ad set | MEDIUM |

| Quality warning | Any ad with BELOW_AVERAGE quality ranking | MEDIUM |

| Budget underspend | < 50% of daily budget used by midday | LOW |

| Learning phase | Ad set in learning phase > 7 days | LOW |

| LAL underperform | LAL CPL > broad/interest CPL | LOW |

| Wasted search spend | Google search term with > $20 spend, 0 conversions | MEDIUM |

Phase 5: Daily Summary Output

Output format — keep it scannable:

# Daily Ad Review — [Date]

## Snapshot
| Metric | Today | 7-Day Avg | Trend |
|--------|-------|-----------|-------|
| Spend | $X | $X/day | up/down/flat |
| Impressions | X | X/day | |
| Reach | X | X/day | |
| Frequency | X.X | X.X | |
| Clicks | X | X/day | |
| CTR | X% | X% | |
| CPC | $X | $X | |
| Conversions | X | X/day | |
| CPL | $X | $X | |

## Flags
- [HIGH] Overspend: Campaign "X" pacing 140% of daily budget
- [MEDIUM] Frequency: Ad set "Y" at 3.8 — rotate creative or expand audience
- [MEDIUM] Quality: Ad "Z" has BELOW_AVERAGE engagement ranking

## Audience Performance
| Audience Type | Ad Sets | Spend | Leads | CPL | CTR |
|---------------|---------|-------|-------|-----|-----|
| Lookalike 1% | 2 | $X | X | $X | X% |
| Custom Retarget | 1 | $X | X | $X | X% |
| Interest | 1 | $X | X | $X | X% |
| Advantage+ | 1 | $X | X | $X | X% |

## Campaign Breakdown
| Campaign | Spend | Clicks | CTR | CPC | Conversions | CPL | Status |
|----------|-------|--------|-----|-----|-------------|-----|--------|

## Top Performers
1. [Ad name] — [metric that makes it stand out]
2. [Ad name] — [metric]

## Underperformers
1. [Ad name] — [what's wrong] — **Action:** [pause/adjust/replace creative]
2. [Ad name] — [what's wrong] — **Action:** [specific fix]

## Quality Diagnostics
| Ad | Quality | Engagement | Conversion |
|----|---------|------------|------------|
(only show non-ABOVE_AVERAGE entries)

## Action Items
- [ ] [Specific action with campaign/ad name]
- [ ] [Specific action]
- [ ] [Specific action]

Write output to workspace/ads/daily-reviews/[YYYY-MM-DD]-daily-review.md.

Phase 6: Historical Tracking

If previous daily reviews exist in workspace/ads/daily-reviews/, compare:

If previous pull data exists in workspace/ads/pulls/, diff today's metrics against yesterday's for precise trend detection.

If the same flag appears 3+ days in a row, escalate: recommend running /kai-ad-campaign in evaluation mode for a deeper audit.

Scheduling

This skill is designed to run daily. Recommend the user set up a schedule:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.