# We Pointed Our Open-Source AI CMO at Our Own Site First: The Architecture Behind BeatCMO

> Source: <https://dev.to/beatapi_io/we-pointed-our-open-source-ai-cmo-at-our-own-site-first-the-architecture-behind-beatcmo-5015>
> Published: 2026-11-30 05:36:55+00:00

**Key takeaway:** BeatCMO gates report delivery on three scripts exiting 0 — check_client_html.py, check_keywords.py and check_evidence.py — so every keyword must match its raw search file and every cited source must resolve in evidence.json before output ships.

You run a developer tool. You open Claude Code, Codex, Cursor, or Gemini CLI and ask: "Audit our site and tell me what to fix for growth."

The answer comes back fast and sounds confident. Keyword volumes. A competitor's pricing. A list of "quick wins."

Then you try to check one of those numbers, and you can't find where it came from.

Nothing in the output is obviously wrong. That's the problem.

A search volume with no source. A competitor price that might be last year's. A recommendation that sounds like it could apply to any site.

You can't take that plan to a meeting, because the first question will be "where does this number come from?"

It's tempting to blame the model and try a bigger one. But the issue is structural.

Most marketing prompts give the agent instructions and no evidence layer. The agent is asked to produce conclusions, and nothing in the workflow forces it to keep the raw data behind each claim, or to stop when a claim has no source.

So it fills the gaps. Any model would.

A plan built on invented numbers doesn't fail loudly. It fails slowly.

You write pages for keywords nobody searches. You position against a competitor price that changed. You spend a sprint on "quick wins" that were never measured.

The cost is weeks of engineering and content time pointed at the wrong target.

BeatCMO is an open-source, evidence-first, multimodal AI CMO packaged as Agent Skills. It runs in Claude Code, Codex, Cursor, Gemini CLI, and any Agent Skills host. v1.0.0 shipped on November 27, 2026, under the MIT license.

```
npx skills add BeatAPI/BeatCMO
```

The rest of this post is about how it's put together, and what happened when we ran it on our own website first.

The package contains 30 skills: one control plane, `/start-here`, plus 29 specialist skills.

The specialists are arranged in a closed loop:

```
SEE (4)  →  BET (4)  →  SHIP (19)  →  LEARN (2)
```

`growth-diagnosis`, `site-audit`, `competitive-intel`, `audience-research`.` positioning-angles` and `launch-stress-test`.` content-decay-and-links` and `performance-review`.
`/start-here` onboards a business, keeps a shared strategy base under `./brand/`, and routes requests.

Routing doesn't depend on the model guessing which skill to call next. `route.py` maps requests to 9 fixed goals:

```
diagnose · unsure · traffic · leads · convert · saas-cro · authority · launch · retain
```

Every goal plan attaches a `bet_tracking` retest contract and closes with `/performance-review`. That skill is the only writer to `./brand/learnings.md`, so learnings come from verified results rather than from whichever skill ran last.

`/start-here` initializes five shared documents: `product-information.md`, `marketing-strategy.md`, `competitor-analysis.md`, `brand-voice.md`, and `content-strategy.md`.

`brand_context.py --refresh` flags documents older than 30 days and compares SHA-256 fingerprints of your live homepage and pricing page. If the site changed, downstream skills know their context may be stale.

This is the part that addresses the cause above.

`/growth-diagnosis` writes everything into a case folder:

```
raw/              raw API responses and fetched pages; raw/_calls.jsonl logs every call
evidence.json     claim-to-source ledger
render-data.json  structured report payload
<company>.html    standalone EN/ZH report
case-log.md       internal log, including gate exit codes
```

Before the report is delivered, three scripts must all exit `0`:

```
python3 check_client_html.py <case>/<id>.html
python3 check_keywords.py <case>
python3 check_evidence.py <case>
```

`check_client_html.py` blocks internal leakage in the client-facing HTML: tool and vendor names, internal endpoints, serialization artifacts like `undefined` or `NaN`.` check_keywords.py` requires every target keyword to have its own raw search file, to appear verbatim in the report, and to match the search volume in the raw data.`check_evidence.py` checks that every source cited in `evidence.json` exists, that every number in an entry appears in its cited file, and that numeric metrics in the report are registered in the ledger.
If a number has no source, the gate fails, and the report doesn't ship.

BeatCMO drafts and stages. It doesn't publish, spend, or merge.

`./campaigns/` with `status: draft`. Nothing is posted or sent without explicit approval.` PAUSED` and verified before the ads they replace are paused. Deleting old ads requires `--delete-old`. Nothing is switched to `ACTIVE`; a human does that.` fix/beatcmo-*` branch or a `.patch` file. No pushes to `main`, no force-pushes, no automatic merges.`./brands/<slug>/` from mixing.
Everything runs through one `BEATAPI_API_KEY`: web search, page reading, live SEO data, social data across 20+ platforms, and 32 creative capabilities (29 models plus 3 workflows).

Without a key, there's a zero-key baseline: the agent's built-in web search and fetch, free autocomplete mining, a local crawler, and prompt-only mode for creative work. You can try the workflow before you sign up for anything.

One more detail. `/launch-stress-test` uses `model:jev-1.14` to run a buyer panel. Those buyers are simulated. The repo labels the output as a simulated buyer-panel signal, and so do we: it's a pressure test before spending, not real users and not real conversions.

Before releasing it, we ran `/growth-diagnosis` against our own website.

The report passed all three gates. It also found two real indexing problems:

`/model?category=video` carried hreflang annotations that weren't reciprocal. The fix removed hreflang from those filtered URLs, with canonical still pointing to `/model`.`/models`.
Both fixes went into PR #173 on our website repo, merged on November 27, 2026.

Neither problem was dramatic. That's the point. These are the issues that sit quietly in a site for months, and an agent without an evidence trail would have had no reason to find them, or a way to prove they were there.

```
npx skills add BeatAPI/BeatCMO
```

Claude Code users can also install it as a plugin:

```
/plugin marketplace add BeatAPI/BeatCMO
/plugin install beatcmo@BeatCMO
```

Then start with one of these:

```
/growth-diagnosis https://your-site.com
/start-here https://your-site.com
```

Open the `raw/` folder and `evidence.json` next to the report. If a claim in the report can't be traced to a file, the gates are supposed to catch it. If they don't, that's a bug, and we'd like to hear about it.

[https://github.com/BeatAPI/BeatCMO](https://github.com/BeatAPI/BeatCMO)

*Written by the BeatAPI team with AI assistance.*
