Now inviting automation leaders: publish your playbook as a skill, under your own name. Publish yours →
Automation Skills
All skills/Marketing loops/Seo-operator
Reference · Marketing loops

Seo-operator

Part of Marketing loops. Install the skill and your agent reads this page when it needs the depth.

The SEO Operator

A recipe for handing an agent the whole SEO job for one site, run from the site's own repo on a schedule. It doesn't add new mechanics. It bundles the SEO loops from the catalog, gives them one shared memory, and sets the rules that keep an always-on agent useful instead of busy.

Use it when the user wants SEO run for them rather than advice about SEO, and the agent can work in the repo that builds the marketing site. If the site lives in a hosted builder with no repo access, run the same loops in draft mode and hand the changes to a human.

Before the first run

Settle five things with the owner and write them at the top of the operator brief (below):

Setting What to capture
Site The production URL
Conversion The one action that counts (trial, demo request, purchase). Traffic that never reaches it isn't the goal
Competitors 3–8 names, or permission to find them from the SERPs and AI answers
Ship mode "Open a PR for review" (default) or "merge when checks pass." Auto-merge needs the owner's explicit say-so; see loop-guardrails.md
Data access Which of Search Console, analytics, a rank or backlink tool, and an AI-visibility tool the agent can read

Then confirm the foundation: tracking works (the tracking-QA loop), and .agents/product-marketing.md exists. If it doesn't, build it with the product-marketing skill first. The operator reads product facts from there; it doesn't keep a second copy.

Shared memory

Agents start every run with no memory, so everything the operator knows lives in files. Use the loop-state convention (.agents/loops/) for run logs, plus one folder for SEO working files:

.agents/seo/
  brief.md          # the five settings above + any owner preferences
  claims.md         # claims ledger: each customer-facing fact, its source of truth, the pages that state it
  queries.csv       # query map: query, intent, page, status (live / planned / gap), position, last checked
  queue.md          # work queue, ranked by expected conversions per hour of effort
  prompts.md        # AI prompt panel by awareness stage, with each run's results
  snapshots/        # competitor sitemaps and key pages, for diffing
  reports/          # one file per weekly report
.agents/loops/seo-operator.log   # one line per run, acted or not

Two rules make the query map work. Every page owns one primary query, and every query has at most one page. Two pages chasing the same query is a defect: merge them and redirect the weaker one. A query with no page is a gap and goes in the queue.

Every fact in claims.md cites where it came from (a file in the product repo, the live pricing page). Facts from memory don't go in.

Run schedule

Every run (daily, or on each deploy) Weekly Monthly
Site health crawl Striking-distance push Rebuild the query map (keyword-gap)
Claim drift Ranking-drop watch Content decay
Ship the top item in the queue Indexing check Comparison-page review (competitors asset audit)
Append to the run log Internal linking Backlink prospecting + directory submissions
AI-answer check One free-tool candidate (free-tools)
Competitor watch (sitemap diff)
Weekly report

Each cell is a catalog loop or a step defined below; run it with that loop's self-check, state, and stop rules. Skip any loop whose data isn't connected and say so in the report.

Site health crawl. Fetch the sitemap and request every URL. Flag non-200s, redirect chains, wrong canonicals, stray noindex, robots blocks, broken internal links, orphan pages, duplicate or missing titles and descriptions, and pages whose main content isn't in the server-rendered HTML. The seo-audit skill covers each check.

Indexing check. Compare the sitemap to what Search Console reports as indexed. For each unindexed URL, find the cause (thin, duplicate, orphaned, blocked, canonicalized elsewhere) and fix that, not the symptom. If indexing can't be verified, report "not verified." Never report a page as indexed without checking.

Competitor watch. Diff each competitor's sitemap against last week's snapshot to see what they published, then check which of those pages rank. Queue a response only where you can build a better page, not for every page they ship.

The first run

  1. Learn the repo. How routes and posts are created, and where titles, meta descriptions, canonicals, the sitemap, robots.txt, and structured data come from. Add pages the way the repo already does.
  2. Learn the product from the code and the live site until you can explain it better than the homepage does. Fill claims.md.
  3. Build the query map from buyers, not search volume: the problems they search, category terms, competitor names, "alternative" and "vs" queries, integrations, use cases, pre-purchase questions.
  4. Crawl the site and log every problem.
  5. Write the queue, then ship the top three fixes in the agreed ship mode, so the first run ends with real changes instead of a plan.

Operating rules

The writing gate

Before writing any new page, read the current top results for its query and write one sentence on what the new page will have that none of them do: original data, a real example from the product, a working tool, a clearer answer. If you can't write that sentence, don't write the page. This is the same information-gain test as in content-strategy.

Then:

The weekly report

One screen, written to .agents/seo/reports/YYYY-MM-DD.md:

## SEO week of [date]
**Shipped:** [each change, with its URL]
**Moved:** [clicks, impressions, positions, conversions vs last week, each with its source]
**Broken:** [open problems, worst first]
**Next:** [top 3 queue items]
**Need from you:** [at most 3 asks: data access, approvals, facts or screenshots only the owner has]

If a number can't be sourced, leave it out rather than estimating it.

When not to run an operator

Publish your skill

Copy this prompt into Claude Code, Codex or any agent. It walks you through your first skill in about 20 minutes, with you as the author.

Click to copy.