A drop-in skill pack for AI coding agents.

Build sites that search engines rank and AI answer engines cite.

agent-audit

$ claude "audit my site's SEO"

Analyzing built output from /dist...

Rung 1: Reach (HTML serves content)

Rung 2: Read (Metadata & Core Vitals)

Rung 3: Understand (Missing JSON-LD)


Fixing Rung 3...

↳ Injected SoftwareApplication schema into index.html

↳ Added Organization schema to /about


Ready for review. Run `git diff` to see changes.

Sound familiar?

You vibe-coded a new app over a weekend. It looks great, the design is clean, the demo works. You ship it, and weeks later: nothing. No search traffic, no AI tools mentioning it.

The build is quietly full of SEO problems you can't see in a browser: an empty HTML shell that crawlers receive, missing titles and metadata, no structured data, pages wired to nothing. The site exists for a human with a browser, and barely exists for a search engine. That's the gap this closes.

Built for developers shipping real sites

Whether you're starting fresh, improving a site you built, or pointing an agent at an existing codebase, the audit is the same. Only the emphasis changes.

Starting a new site

Build it SEO-correct from the first commit, instead of fixing it after launch.

Improving a site you built

Audit what's live and raise it, without regressing pages that already rank.

An existing codebase + agent

Point your coding agent at the repo and have it diagnose and fix the SEO.

What's going wrong  →  what the pack does

My AI-built site isn't showing up in Google

Finds why crawlers can't see it, and fixes it

I edited the code but search didn't change

Verifies on the served HTML, not the source

I want to rank, not just look good

Works the SEO fundamentals in order, up to Rank

My site is slow or clunky on mobile

Diagnoses Core Web Vitals and mobile, fixes the causes

Engines don't understand my pages

Adds valid, honest structured data they can read

I can't risk breaking what already ranks

Audits safely, preserving URLs, canonicals and what works

Fixes keep silently breaking on deploys

Re-audits and catches regressions, even in CI

I'd also like AI answers to cite me

Adds the AEO layer, once the page can rank

Why doesn't it rank?

AI-built sites often look perfect in a browser but are nearly invisible to crawlers. Coding agents frequently edit JSX and declare "meta tags added" without verifying what's actually served in the built HTML. If a crawler receives a blank <div id="root">, your site can't rank, because to a search engine it isn't there.

Ranking in search is the goal, and it still starts with the fundamentals: a site that's crawlable, readable, well structured, and trustworthy. Get those right and the same foundations also make your pages eligible to be surfaced by AI answer engines like AI Overviews, ChatGPT and Perplexity. That's a layer on top, after the basics, not a replacement for them.

Most AI-built sites fail at the very bottom of the ladder. This skill pack fixes that, from the ground up.

See it on the served HTML

A site built as a single-page app looks perfect in your browser, and serves crawlers an empty shell. The pack checks what's actually served, and fixes it.

Before, what the crawler gets
<body>
  <div id="root"></div>
  <script src="/app.js"></script>
</body>
# curl returns an empty shell.
# No headings, no copy. Invisible.
After, content in the served HTML
<main>
  <h1>Web design that converts</h1>
  <p>Award-winning studio in Leeds…</p>
</main>
# curl now returns real content.
# Crawlable. Indexable. Citable.
Before, the <head>
<head>
  <meta charset="utf-8">
  <meta name="viewport" ...>
</head>
# No title, no description.
# Nothing to show in the results.
After, indexable metadata
<head>
  <title>Web design that converts | Studio</title>
  <meta name="description" content="…">
  <link rel="canonical" href="…">
</head>
# A real title and snippet.
# A reason to click.
Before, no structured data
<!-- nothing here -->
# Engines can't identify what
# this page actually is.
After, entities engines read
<script type="application/ld+json">
{ "@type": "Product",
  "name": "…", "offers": {…} }
</script>
# A real entity, honestly marked up.
# Eligible for rich results.

Verified by re-fetching the page, not by trusting that a source edit worked.

The Visibility Ladder

Begin with the foundation

Search visibility is built in order. The first four rungs make a page eligible; the fifth, Rank, is whether it deserves to win. Diagnose top to bottom, fix bottom to top. AEO (being cited by AI answers) is the layer on top, applied alongside ranking, never instead of it.

Reach

Rung 1 of 5

Can a crawler reach the page and see real content in the HTML it is served?

Read

Rung 2 of 5

Is there genuine, readable content, accurate metadata, and a fast mobile experience?

Understand

Rung 3 of 5

Can engines tell what the page is about, through valid structured data?

Connect

Rung 4 of 5

Is the page wired into a coherent site, with internal links and clean canonicals?

Rank

Rung 5 of 5

Is it good enough, and trusted enough, to win? Intent, depth and on-page authority you build, plus the off-site authority you earn.

Authority

Beside the ladder

Backlinks, brand and reputation are a major ranking factor, but you earn them off-site over time, not in code. The pack audits and strategises them, strictly white-hat. It never fakes them.

The first four rungs make a page eligible to compete. Rung five, Rank, is whether it deserves to win, and because ranking is earned it has two halves: what you build (intent, depth, on-page authority) and what you earn (links and reputation, beside the ladder). AEO, being cited in AI answers, is a layer on top, applied alongside ranking, never a replacement for it.

It's an audit that remembers

Not a one-shot fix. The pack writes a .seo/ folder into your project, so every run builds on the last, and catches regressions before they cost you.

First run

Audits all five rungs, fixes the safe wins, and records a baseline, a readable report, an issue tracker, and a history.

Every re-run

Re-verifies past fixes on the served HTML, catches regressions (a fix that quietly broke in a deploy), finds what's new, and advances.

In CI, automatically

Wire it into a deploy/PR check so a change that makes your site uncrawlable fails the build, not weeks later in lost traffic.

.seo/
.seo/
├── audit.md     # readable scorecard
├── state.json   # every issue + status
└── log.md       # dated run history

A skill for every part of SEO

The orchestrator routes broad requests; reach for a specialist when you already know the job. Technical foundations first, strategy and automation on top. Hover any skill for the technical detail.

Start here

seo-orchestrator
Runs the full audit lifecycle and routes to every other skill
Step 0 infers the site's purpose, stack, platform and sector from the codebase and served pages, then runs the .seo/ audit lifecycle: a baseline scorecard, top-to-bottom diagnosis, bottom-to-top fixes, and progression and regression checks on every rerun.

The five rungs

reach-indexation
Crawlable, rendered in the served HTML, HTTPS, indexable
Verifies crawlability and indexation on the rendered HTML: robots.txt, meta robots and X-Robots-Tag, HTTP status and redirect chains, canonical signals, XML sitemaps, HTTPS, and HSTS, CSP and X-Content-Type-Options headers, confirming real content survives JavaScript rendering.
read-content
Real content, metadata, page speed & mobile
Checks served content and metadata: unique titles and descriptions, heading structure and readable body text, plus Core Web Vitals (LCP, INP, CLS) and mobile usability, because a slow or empty render fails before it can rank.
understand-schema
Structured data so engines identify your entities
Adds valid, honest JSON-LD so engines can identify entities: Article, Product, Organization, LocalBusiness, FAQ, JobPosting, Event, Course and Review or AggregateRating, validated against rich-result requirements and never fabricated.
connect-architecture
Internal links, architecture, canonicals
Builds a coherent site graph: internal linking and anchor text, crawl depth and orphan pages, canonical and pagination strategy, breadcrumb structure and URL hygiene, so authority flows to the pages that matter.
rank-relevance
The goal: good and relevant enough to actually rank
Judges whether a page deserves to win: search-intent match, content depth and uniqueness, demonstrated expertise and trust, and topical authority across the cluster. This is the difference between being eligible and actually ranking.

On top of the ladder (AEO)

cite-aeo-geo
Eligible to be cited by AI answers, applied after a page ranks
The AEO and GEO layer, applied only once a page can rank: extractable answers, clear quotable claims, entity consistency and eligibility to be cited by AI answer engines, without gaming or fabricating signals.

Technical specialists

seo-migrations
Preserve rankings when URLs change (redesigns, domain moves)
Protects rankings through URL changes such as redesigns, replatforms and domain moves: a full URL inventory, 1:1 301 redirect mapping, canonical and sitemap updates, and post-launch verification that equity transferred.
seo-measurement-setup
Analytics, Search Console & web-vitals setup
Sets up honest measurement: analytics, Google Search Console, Bing Webmaster Tools and web-vitals field data, with event and conversion tracking so changes can be attributed instead of guessed.

Content & strategy

seo-content-audit
Assess content; keep / improve / consolidate / prune
Inventories content and scores each URL on performance and intent, then recommends keep, improve, consolidate or prune, with redirect handling for anything removed.
seo-content-editing
Improve real copy, editing, never generating
Improves existing copy only, never generates filler: tightens intent match, structure, internal links and metadata while preserving the author's voice and factual accuracy.
seo-positioning-strategy
Topical authority & how to differentiate
Maps the topical authority you can credibly own: cluster and entity coverage, competitor gap analysis and a differentiation angle, rather than chasing every keyword.
seo-proposal-roadmap
Package findings into a prioritised roadmap
Packages audit findings into a prioritised, effort-versus-impact roadmap with clear rationale, sequenced by the ladder so foundational fixes land before strategy work.

Automation & advanced

seo-automations
CI/CD regression gate + scheduled re-audits
Codifies the mechanisable checks into CI/CD: a GitHub Action that runs served-HTML checks on deploy and PRs and fails the build on a critical regression, plus Lighthouse CI and scheduled re-audits.
seo-media
Image & video SEO (schema, sitemaps, transcripts)
Image and video SEO: alt text, descriptive filenames and modern formats, image and video sitemaps, VideoObject schema with honest values, and real transcripts and captions.
seo-programmatic
White-hat pages-at-scale (no thin/doorway pages)
White-hat pages-at-scale from data, with a quality gate that refuses thin or doorway pages and controls crawl budget and indexation.
seo-log-analysis
Server-log & crawl-budget analysis (large sites)
Server-log and crawl-budget analysis for large sites: verified crawlers only, surfacing under-crawled pages, wasted crawl budget and crawl traps.

How do I install SEO for AI Agents?

Fastest start, paste this into your agent

No setup. Drop this prompt into Claude Code, Cursor, or any AI coding agent and it audits your site and reports back. It won't change anything until you ask it to.

starter prompt
Use the seo-for-ai-agents skill pack (https://github.com/manibharij/seo-for-ai-agents): audit my site against the Visibility Ladder, checking on the served HTML. Do not change any code or files yet. Report the lowest failing rung first, then a prioritised list of issues with the recommended fix for each in plain English. Never fabricate authors, reviews, or trust signals.

More prompts you can paste straight away

Once the pack is installed, reach for the right job. Each one is read-only: it analyses and reports, so nothing changes until you decide. Swap the bracketed parts for your own details.

diagnose-why-not-ranking

Using seo-for-ai-agents, analyse why [paste URL] isn't ranking. Work top-to-bottom through the Visibility Ladder on the served HTML, identify the lowest failing rung, and explain the root cause. Report your findings only, don't change any code or files.

read-only-site-audit

Using seo-for-ai-agents, run a read-only SEO audit of my site. Diagnose each rung on the served HTML and give me a prioritised list of issues with the recommended fix and the risk of each. Don't edit any files, just report.

review-structured-data

Using seo-for-ai-agents, review the structured data on my pages. Check what's present in the served HTML, flag anything missing, invalid, or not matching the page, and recommend honest schema to add. Report only, don't change anything.

pre-migration-redirect-plan

Using seo-for-ai-agents, I'm about to change my URLs / redesign / move domains. Inventory the current URLs and give me a recommended 1:1 301 redirect map plus a pre-launch checklist. Just produce the plan, don't apply any changes.

explain-core-web-vitals

Using seo-for-ai-agents, analyse my Core Web Vitals and mobile experience on the served pages. Identify the build-time causes (images, fonts, JavaScript, layout shift) and tell me which to address first. Diagnosis only, don't change code yet.

aeo-readiness-check

Using seo-for-ai-agents, assess whether my pages are eligible to be cited by AI answer engines. Review only, don't change anything: check answer formatting, entities and attribution on the served HTML, and tell me what to improve once a page can rank.

Step 01

Install into your agent

Drop the skills folder into your agent's config directory or copy-paste a mini. No complex setup.

Step 02

Ask it to audit your site

Tell your agent: 'Audit my SEO'. It detects your stack, finds the lowest failing rung, and dispatches fixes.

Step 03

Review and approve

The agent explains every change in plain English. You decide what to publish. All fixes are reversible.

Supported Environments

Claude Code

~/.claude/skills/

Cursor

.cursor/rules/

AGENTS.md

For Codex, Zed, Gemini CLI

Copy-paste Minis

Zero config needed

Is SEO for AI Agents right for you?

For

  • Developers and marketers who vibe-code with AI agents
  • Anyone building a new site with Claude Code, Cursor, or Codex
  • Developers whose AI-built site isn't showing up in Google
  • Agencies and consultants who audit client sites
  • Existing sites that need SEO health maintained over time

Not For

  • Anyone expecting guaranteed rankings or citations
  • People without an AI coding agent
  • Those wanting live rank-tracking or backlink tools
  • Black-hat or spam SEO

What doesn't SEO for AI Agents do?

"This pack fixes build-time, owned-media SEO on your own site: technical foundations, metadata, structured data, architecture, and AEO formatting. It does not guarantee rankings or citations. Whether a search engine ranks your page, or an AI answer engine cites it, depends on many factors outside any tool's control. It's also experimental, so always review an AI agent's changes before publishing. The AEO layer improves your eligibility to be cited; it cannot promise the outcome."

Key distinctions

  • Fixes owned-media SEO only (not link-building, not rank-tracking)
  • Verifies on served HTML, not just source code edits
  • Strictly white-hat, never fabricates authors, E-E-A-T signals, or reviews
  • Works for existing sites too (protects URLs and canonicals that already rank)

The honest question

Can AI agents replace SEO professionals?

No, and anyone promising otherwise is overselling. Strategy, judgement and hard-won experience don't come in a skill pack. But that was never the point. This puts a rigorous, white-hat SEO method in your agent's hands and runs it like continuous testing: a tireless audit that checks the fundamentals on every build, shows you what's wrong, and waits for you to decide. A force-multiplier for an SEO professional, and a safety net for everyone building without one.

It assists, it doesn't replace

The method is rigorous, but it has no taste, no strategy and no accountability. A human still owns the calls that matter. Treat its output as a well-argued draft from a fast junior, not a verdict, and keep evaluating it as the professional you are (or hire one).

A considered bet on where this is heading

Using it now is a wager that coding agents keep getting better at SEO, and that the people who learn to direct them well compound an edge. It is built to grow more capable as the models do, so you are testing and learning early, not late.

It changes nothing unless you say so

By design it audits and reports first, and makes no edits to your code until you have reviewed the findings and told it to proceed. Continuous testing on your terms, with nothing touched behind your back.

It is at its best on new or recent builds that aren't ranking yet, laying clean foundations from the start, and as a constant second pair of eyes for an SEO professional on an established site. It cannot guarantee rankings or citations; those depend on factors no tool controls. Built on a fifteen-year, white-hat SEO mindset, to do the right things well and leave the decisions to you.

Frequently asked questions

Does it guarantee rankings or AI citations?

No, and anything that promises guaranteed rankings is misleading. It fixes build-time, owned-media SEO and improves your eligibility to rank and be cited. Whether a search engine ranks you, or an AI engine cites you, depends on competition, demand, and authority outside any tool's control.

Does it work on existing sites, or only new ones?

Both. On an existing site it audits without regressing what already ranks: it preserves URLs (adding redirects if any must change), respects intentional canonicals and noindex rules, and flags bigger changes for you to approve first.

What about WordPress, Shopify, or Webflow?

The diagnosis works on any site, because it reads the served HTML. On hosted platforms the fixes often live in the platform's settings or theme rather than code, so the agent tells you exactly what to change, rather than editing code it doesn't control.

Is it free? Do I need paid data tools or API keys?

It's free and open-source (MIT), and needs no paid data to work. You can optionally connect your own Search Console, DataForSEO, or Ahrefs keys to sharpen the audit, but nothing is paywalled or required.

Will it change my code without asking?

It applies safe, clearly-correct fixes and explains each one in plain English. Risky changes like restructuring URLs, removing content, or authorship and trust decisions are flagged for you to approve. You review before publishing, and everything stays in version control.

Which AI coding agents does it work with?

Claude Code, Cursor, and AGENTS.md hosts (Codex, Gemini CLI, Zed) via the skills, or a copy-paste mini in any chat. It's a skill pack the agent reads, not a separate app to run.