跳到正文
DEV Community· Eric Kang·· 1 小時前AI 評分60

BeatAPI 團隊先在自家網站運行開源 AI CMO BeatCMO,並介紹其架構

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

AI 導讀

BeatAPI 團隊介紹開源 AI CMO BeatCMO 的架構,並先在自家網站執行 /growth-diagnosis。BeatCMO v1.0.0 於 2026 年 11 月 27 日按 MIT 授權發佈,套件包含 30 個 Agent Skills;診斷報告須通過三項證據檢查,產品不會自行發佈內容、啟用廣告或合併網站修改。

正文

The scenario: you asked your coding agent for a growth plan

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.

The symptom: plans you can't defend

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?"

The cause isn't the model

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.

What that costs

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.

What we built: BeatCMO

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.

Architecture

1. One control plane, 29 specialists

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)
  • SEE: evidence and diagnosis, such as growth-diagnosis, site-audit, competitive-intel, audience-research.
  • BET: positioning, pricing, and pre-launch validation, such as positioning-angles and launch-stress-test.
  • SHIP: search and AI visibility, conversion and retention, distribution and creative.
  • LEARN: content-decay-and-links and performance-review.

/start-here onboards a business, keeps a shared strategy base under ./brand/, and routes requests.

2. Deterministic goal routing

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.

3. A shared strategy base that notices when your site changes

/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.

4. Evidence gates

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.

5. Human gates on anything irreversible

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

  • Content, social, and email: drafts go to ./campaigns/ with status: draft. Nothing is posted or sent without explicit approval.
  • Paid ads: new Meta ads are created 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.
  • Website fixes: changes are staged on a local fix/beatcmo-* branch or a .patch file. No pushes to main, no force-pushes, no automatic merges.
  • Credentials: keys are resolved locally and never printed. Hooks keep client folders under ./brands/<slug>/ from mixing.

6. One key, or none

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.

Customer zero: we ran it on beatapi.io

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

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

  1. Non-reciprocal hreflang on filter-parameter pages. Filtered model-list URLs such as /model?category=video carried hreflang annotations that weren't reciprocal. The fix removed hreflang from those filtered URLs, with canonical still pointing to /model.
  2. The last 2 internal links to /models. Two internal links still pointed to the old /models path, which redirects. They now link to /model directly.

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.

Try it

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


Written by the BeatAPI team with AI assistance.

來源:DEV Community · dev.to