Open source · deterministic pipeline · eval-gated

Cadence — An SEO Content Agent That Lints Every Post Before It Ships

Cadence is an open-source content agent that takes a topic to a publish-ready blog post in one pipeline run. It picks the next unused topic, outlines it, drafts the title, meta description, slug, body, FAQ and JSON-LD schema, then runs a structural SEO linter and revises once if the draft fails. The result is saved as an MDX file.

Try it live ↓View on GitHub

Draft and lint a post

Pick a topic and Cadence drafts the full post, then grades it pass or fail. No API key is used, and the same topic always produces the same audited draft.

Cadence · content pipelinedeterministic · no API key · runs on this site
TopicProduct-led growth vs sales-led growth
Target keywordproduct-led growth
NicheSaaS marketing

What Cadence produces and checks

The parts of a post that are tedious to get right by hand, checked the same way every time.

What a draft contains

  • SEO title — 50 to 60 characters
  • Meta description — 150 to 160 characters
  • Slug and H1 — the H1 includes the target keyword
  • Intro and body — the keyword appears in the first 100 words, followed by H2 and H3 sections
  • FAQ and schema — three questions with answers, plus Article and FAQPage JSON-LD

What the linter checks

  • Lengths — title and meta description within range, and a minimum word count
  • Keyword placement — in the title, the H1 and the intro
  • Structure — enough H2 sections and a FAQ present
  • Schema — the JSON-LD parses and is valid
  • Filler — no phrases from the banned-filler list

How does Cadence work? Pick → draft → validate → save

A plain tool-calling loop with no agent framework, so the logic is readable.

1 · pick_topic

novelty-checked

Takes the next unused topic from a niche queue, so the same post is never written twice.

2 · draft_post

outline + draft

Outlines the H2 and H3 structure, then writes the title, meta description, slug, body, FAQ and JSON-LD.

3 · validate_seo

structural lint

Runs the linter over the draft. If it fails, the agent revises once and lints again.

4 · save_post

MDX

Writes a publish-ready MDX file with YAML frontmatter and the JSON-LD block.

Eval results on the golden dataset

  • 12 cases, including traps — a topic whose naive title would be too short, topics where the keyword is not in the topic string, and keyword-placement traps in the intro and H1.
  • 100% SEO validity — every structural check passes; the gate is 95%.
  • 100% keyword placement and schema validity — title, H1 and intro carry the keyword, and the Article and FAQPage JSON-LD is valid.
  • 0% duplicate slugs — and no banned filler phrases. The suite exits non-zero on any regression.

Limits, stated plainly

  • These numbers measure structure, not results. Cadence makes no claim about traffic or rankings.
  • A post can pass every structural check and still be thin or wrong. The linter does not check facts.
  • The default provider is a deterministic mock, which is what makes runs reproducible. Model-written prose needs an OpenAI-compatible provider.
  • Cadence writes the file. Publishing it, and deciding whether it should be published, is still yours.

Frequently Asked Questions

What is Cadence?

Cadence is an open-source content agent that takes a topic to a publish-ready blog post in one pipeline run. It picks the next unused topic, outlines it, drafts the title, meta description, slug, body, FAQ and JSON-LD schema, then runs a structural SEO linter and revises once if the draft fails. The result is saved as an MDX file.

Does Cadence publish posts automatically?

It saves a publish-ready MDX file. A FastAPI endpoint, POST /publish, runs the pipeline for a niche, so a scheduler can call it; what happens to the file afterwards is up to your site's build.

Why lint the structure instead of trusting the model?

Model drafts are inconsistent about the mechanical parts: a title that is too long, a keyword missing from the H1, a broken JSON-LD block. Those are cheap to check with code, so Cadence checks them every time and revises when one fails.

Do I need an API key?

Not for the default run. The built-in provider is deterministic and needs no key, which is also how the eval suite runs. You can switch to an OpenAI-compatible provider.

Can another agent use Cadence's tools?

Yes. The same tools are exposed over MCP on stdio, so a client such as Claude Desktop or an IDE can draft and validate posts directly.