marketing-machine
A claim-provenance and brand-compliance harness for marketing content. It reads your codebase
to establish what the product actually does, enforces the rules mechanically, then renders cards
(PNG) and video (MP4) from a single HTML contract.
The pitch: your marketing copy cannot outrun what your product actually does, and the build checks.

Built for teams that already work with a coding agent — Claude Code, Cursor, or anything that reads
AGENTS.md — and want the marketing it produces to survive an audit.
The long version: Marketing That Quotes the Code
walks the whole pipeline end to end — including what it deliberately refuses to do. (Written with
this tool; it ends with its own verification table.)
Requirements: Node 20+ (record needs 22+ for the global WebSocket) and a Chrome/Edge/Chromium
found at runtime. ffmpeg-static is an optional dependency, used by video only — linting, scanning
and card rendering have zero dependencies.
Quick start
git clone https://github.com/cagatayuncu/marketing-machine ../marketing-machine
cd your-repo
node ../marketing-machine/scripts/init.mjs --agent claude # or cursor, agents, all
Then, in your agent: setup — the skill completes its own configuration, installs the fonts
the renderer needs, proposes the brand-role mapping, and asks you only for the things a codebase
cannot answer (your one-liner, your stage, which claims you will defend).
From there you talk to it:
| You say | It does |
|---|
setup | completes config, fonts and brand roles; offers the CI gate |
| "write a post about inventory turnover" | drafts to the anatomy, adds the mandatory verification table, lints |
| "make a card for post 12" | picks a format (default: no visual), renders a PNG in your brand, writes alt text |
| "render the intro video" | verifies a single frame first, then records the MP4 |
| "review this draft" | runs the linter, then the judgment passes a linter cannot do |
The skill lands wherever your agent reads instructions — .claude/skills/ for Claude Code,
.cursor/rules/ for Cursor, an AGENTS.md section for everything else. Per-agent detail:
Installing it as an agent skill.
Other ways to get the toolchain:
- Claude Code plugin — no clone, no paths:
/plugin marketplace add cagatayuncu/marketing-machine, then /plugin install marketing-machine. The toolchain travels inside the plugin.
- skills CLI —
npx skills add cagatayuncu/marketing-machine; the skill clones the toolchain itself on first use.
- Vendor it — copy the directory into
tools/marketing-machine/. Best for teams: the installed path stays relative.
- Submodule —
git submodule add https://github.com/cagatayuncu/marketing-machine tools/marketing-machine to pin a version and pull updates.
- Fork it — add your own rule packs (
rules/lang.<code>.json) and card templates on top.
Prefer driving it by hand? Every step is a plain command:
node <marketing-machine>/scripts/doctor.mjs # environment and config
node <marketing-machine>/scripts/scan.mjs # product-facts draft
node <marketing-machine>/scripts/lint.mjs # enforce
node <marketing-machine>/scripts/render-card.mjs <name>
node <marketing-machine>/scripts/record.mjs <name>
npm link inside this directory gives you mkt as a shorthand for all of them.
What init derives from your codebase
| Value | Source |
|---|
| Product name | package.json name, or the .sln/.slnx name |
| Domain | homepage, or the first external link in the README |
| Brand colors | The stylesheet declaring the most of them — CSS custom properties, SCSS/Less variables, or a Tailwind theme. Prefixed token conventions (--color-bg, --c-primary, --theme-text) are understood |
| Font families | font-family declarations, matched to the packages that ship them — including a Google Fonts @import, which names the equivalent @fontsource package |
| Languages | The localisation directory, with a key count per language |
| Legal routes | Routes like /privacy or /terms found in the code — these become the linter's draft-link blocklist |
| Source roots | Directories that actually contain code |
Anything it cannot find is left as [VERIFY: ...]. doctor lists those, and unmapped brand roles
block rendering rather than falling back to someone else's palette.
Why