ai-seo-geo
Skill1 starsChanged 3 months agoMITView on GitHub
Technical SEO, AI Search Optimization (AEO), and Generative Engine Optimization (GEO) playbook. Use when auditing or implementing robots.txt for AI crawlers, llms.txt, Schema.org JSON-LD markup, XML sitemaps, IndexNow, semantic HTML, internal link architecture, Core Web Vitals, entity signals, or AI citation optimization.
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-config/CLAUDE.mdCLAUDE.md
- agent-config/copilot-instructions.mdCopilot instructions
- prism-designSkill
- graphifySkill
- engineering-guidelinesSkill
- product-managementSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. About 0 are common, 9 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
When this skill is active, apply this 20-point engineering and content playbook to ensure maximum discoverability, crawlability, and …
- Distinctive: line 57
Action: Check Cloudflare, AWS WAF, Vercel Firewall, or reverse-proxy rules.
- Very specific: line 58
Standard: Ensure "Bot Fight Mode" or "Block AI Bots" does not serve 403 Forbidden or JS challenges to verified IPs of OAI-SearchBot, …
- Very specific: line 59
Verification: Test using curl -I -A "Mozilla/5.0 (compatible.
- Very specific: line 63
Meta Robots & Headers: Verify indexable pages do not contain <meta name="robots" content="noindex"> or X-Robots-Tag: noindex HTTP headers.
- Very specific: line 67
Completeness: Every canonical, 200 OK, indexable page must appear in sitemap.xml (or a sitemap index).
- Very specific: line 72
Self-Referencing Canonicals: Every indexable page must include <link rel="canonical" href="https://..." /> using an absolute URL.
- Very specific: line 95
Caveat: Treat llms.txt as a supplementary developer/agent convenience—never as a replacement for clean semantic HTML, sitemaps, or …
- Very specific: line 102
Format: Always use <script type="application/ld+json"> in the <head> or page body.
- Distinctive: line 156
Entity Consistency: Use the exact same canonical naming for your brand, products, and core concepts across page titles, headings, …
- Distinctive: line 172
Solution: Use Server-Side Rendering (SSR), Static Site Generation (SSG), or Incremental Static Regeneration (ISR) for all public content, …
- Very specific: line 173
Verification: Run curl -s https://your-domain.com/page | grep "your target heading".
- Very specific: line 179
Extractable Data: Use <table> (with <thead>, <tbody>, <th>) for comparisons and pricing.
- Distinctive: line 186
Crawl Depth: Every important page must be reachable within $\le 3$ clicks from the homepage.
- Very specific: line 187
Descriptive Anchor Text: Use specific, entity-rich anchor text (e.g., "read our PostgreSQL zero-downtime migration guide") — never use …
- Very specific: line 188
Crawlable Links: Always use standard <a href="/path"> tags.
- Distinctive: line 193
Every Pillar page links out to all of its child Cluster pages.
- Distinctive: line 194
Every Cluster page links back up to its parent Pillar page and laterally to 2–3 related sibling Cluster pages.
- Distinctive: line 216
Byline & Bio: Every article or guide must display a visible author byline, publication date, last-updated date, and a bio summarizing …
- Distinctive: line 232
When asked to run an AI SEO / GEO audit on a codebase or live site, evaluate all 20 items and report status:
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AI Search & Technical SEO Skill (SEO / AEO / GEO)
When this skill is active, apply this 20-point engineering and content playbook to ensure maximum discoverability, crawlability, and citation authority across both traditional search engines (Google, Bing) and AI answer engines (ChatGPT Search, Perplexity, Claude, Google AI Overviews).
Phase 1: AI Crawler Access & Indexation (Points 1–4, 7, 15, 16)
1. Audit robots.txt for AI Crawler Access
Explicitly distinguish between training scrapers and live search/citation bots. Never accidentally block search/citation user-agents if you want visibility in AI answers.
# Allow AI Search & Citation Bots (Required for AEO/GEO visibility)
User-agent: OAI-SearchBot
Allow: /
User-agent: ChatGPT-User
Allow: /
User-agent: PerplexityBot
Allow: /
User-agent: Claude-Web
Allow: /
User-agent: Applebot-Extended
Allow: /
User-agent: Googlebot
Allow: /
User-agent: Bingbot
Allow: /
# Optional: Control Foundation Model Training Scrapers separately
User-agent: GPTBot
Allow: /
User-agent: ClaudeBot
Allow: /
User-agent: Google-Extended
Allow: /
User-agent: CCBot
Disallow: /
Sitemap: https://example.com/sitemap.xml2. Verify AI Bots Access (WAF / CDN / Firewall)
- Action: Check Cloudflare, AWS WAF, Vercel Firewall, or reverse-proxy rules.
- Standard: Ensure "Bot Fight Mode" or "Block AI Bots" does not serve
403 Forbiddenor JS challenges to verified IPs ofOAI-SearchBot,PerplexityBot,ChatGPT-User, orClaude-Web. - Verification: Test using
curl -I -A "Mozilla/5.0 (compatible; OAI-SearchBot/1.0; +https://openai.com/searchbot)" https://your-domain.com. Expect200 OK.
3. Fix Crawlability and Indexation Issues
- Status Codes: Eliminate
5xxserver errors, unintended4xxresponses on live routes, and redirect chains (>1 hop). - Meta Robots & Headers: Verify indexable pages do not contain
<meta name="robots" content="noindex">orX-Robots-Tag: noindexHTTP headers. - Crawl Budget: Block faceted filter permutations, internal search results, and session-ID URLs from being crawled.
4. Validate XML Sitemap Coverage
- Completeness: Every canonical,
200 OK, indexable page must appear insitemap.xml(or a sitemap index). - Accuracy: Exclude
301/302redirects,404s, non-canonical URLs, andnoindexpages. - Freshness: Populate accurate
<lastmod>ISO-8601 timestamps (YYYY-MM-DDThh:mm:ss+00:00) reflecting genuine content updates—never update timestamps on unchanged pages.
7. Fix Canonical Tags and Duplicate URLs
- Self-Referencing Canonicals: Every indexable page must include
<link rel="canonical" href="https://..." />using an absolute URL. - URL Normalization: Enforce a single canonical format across protocol (
https://), subdomain (wwwvs non-www), trailing slashes, and lowercase paths via301permanent redirects. - Query Parameters: Strip tracking parameters (
?utm_*,?gclid,?fbclid) from canonical URLs.
15. Strengthen Crawl Signals with IndexNow
- Real-Time Indexing: Implement the IndexNow protocol to immediately notify Bing, Yandex, and participating AI search indexes (which rely heavily on Bing's index, such as ChatGPT Search) when URLs are created, updated, or deleted.
- Implementation:
- Host a verification key at
https://your-domain.com/{your-key}.txt. - Trigger a
POST https://api.indexnow.org/indexnowwebhook in CI/CD or CMS publish hooks with modified URLs.
- Host a verification key at
16. Audit llms.txt (Experimental; Not a Ranking Guarantee)
- Purpose: Provide an inference-friendly Markdown index at
/llms.txt(and optionally/llms-full.txt) so LLM agents and documentation crawlers can rapidly parse site structure without HTML noise. - Format Standard:
# Project / Company Name > Concise 1-2 sentence summary of what the product/company does and who it serves. ## Core Documentation & Key Pages - [Getting Started](https://example.com/docs/getting-started): Quickstart guide and setup. - [Pricing & Plans](https://example.com/pricing): Tiered B2B pricing breakdown. - [API Reference](https://example.com/docs/api): REST endpoints, authentication, and webhooks. - Caveat: Treat
llms.txtas a supplementary developer/agent convenience—never as a replacement for clean semantic HTML, sitemaps, or Schema.org markup.
Phase 2: Structured Data, Entities & Knowledge Graph (Points 5, 6, 8)
5. Implement Relevant Schema.org Markup (JSON-LD)
- Format: Always use
<script type="application/ld+json">in the<head>or page body. - Page-Specific Types: Match schema to page intent:
- SaaS / Apps:
SoftwareApplicationorWebApplication - E-commerce / Pricing:
ProductwithOffer - Guides / Docs:
Article,TechArticle, orHowTo - Navigation hierarchy:
BreadcrumbList - Q&A sections:
FAQPage
- SaaS / Apps:
6. Add Organization, Article & Person Schema
Connect your brand, content, and authors using @id node references in a unified JSON-LD @graph:
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "Organization",
"@id": "https://example.com/#organization",
"name": "Example Corp",
"url": "https://example.com",
"logo": "https://example.com/logo.png",
"sameAs": [
"https://www.linkedin.com/company/example",
"https://github.com/example",
"https://x.com/example"
]
},
{
"@type": "Person",
"@id": "https://example.com/authors/jane-doe#person",
"name": "Jane Doe",
"jobTitle": "Principal Security Architect",
"url": "https://example.com/authors/jane-doe",
"worksFor": { "@id": "https://example.com/#organization" },
"sameAs": [
"https://www.linkedin.com/in/janedoe",
"https://github.com/janedoe"
]
},
{
"@type": "Article",
"@id": "https://example.com/blog/ai-seo#article",
"headline": "Complete Guide to AI Search Optimization",
"datePublished": "2026-01-15T08:00:00+00:00",
"dateModified": "2026-08-20T10:30:00+00:00",
"author": { "@id": "https://example.com/authors/jane-doe#person" },
"publisher": { "@id": "https://example.com/#organization" },
"mainEntityOfPage": "https://example.com/blog/ai-seo"
}
]
}8. Strengthen Entity Signals Across Your Site
- Entity Consistency: Use the exact same canonical naming for your brand, products, and core concepts across page titles, headings, Schema.org, and external profiles.
- Disambiguation (
sameAs&about): LinkOrganizationandPersonschemas to authoritative external registries (Wikipedia, Wikidata, Crunchbase, LinkedIn, GitHub) viasameAsarrays. - Subject Linking: In
Articleschema, useaboutandmentionsproperties with Wikidata@idURIs to explicitly tell search engines which real-world entities your content covers.
Phase 3: Rendering, Performance & Semantic HTML (Points 10, 11, 12)
10. Improve Core Web Vitals (CWV)
AI crawlers and search engines enforce strict fetch timeouts and reward fast-loading pages:
- LCP (Largest Contentful Paint):
≤ 2.5s— Preload hero images (fetchpriority="high"), inline critical CSS, and optimize server TTFB (< 200ms). - INP (Interaction to Next Paint):
≤ 200ms— Break up long main-thread JS tasks, defer non-essential third-party scripts. - CLS (Cumulative Layout Shift):
≤ 0.1— Explicitly setwidthandheight(oraspect-ratio) on all images, videos, and embeds; reserve space for dynamic banners.
11. Remove Rendering Issues in JavaScript
- Critical Rule: Most AI crawlers (
OAI-SearchBot,ClaudeBot,PerplexityBot) do not execute client-side JavaScript. If your content requires React/Vue hydration in the browser before text appears in the DOM, AI bots see an empty<div id="root"></div>. - Solution: Use Server-Side Rendering (SSR), Static Site Generation (SSG), or Incremental Static Regeneration (ISR) for all public content, documentation, marketing, and blog pages.
- Verification: Run
curl -s https://your-domain.com/page | grep "your target heading". Primary text, links (<a href="...">), and JSON-LD must exist in the raw initial HTML response.
12. Structure Content with Semantic HTML
LLMs chunk and extract web pages using DOM hierarchy. Replace <div> soup with semantic HTML5 elements:
- Landmarks:
<header>,<nav>,<main>,<article>,<section>,<aside>,<footer>. - Heading Hierarchy: Exactly one
<h1>per page. Nest<h2> $\rightarrow$<h3>$\rightarrow$<h4>strictly in order without skipping levels. - Extractable Data: Use
<table>(with<thead>,<tbody>,<th>) for comparisons and pricing; use<dl>/<dt>/<dd>for glossaries and specs; use<ol>/<ul>for steps and checklists.
Phase 4: Site Architecture & Link Graph (Points 9, 17, 19)
9. Optimize Internal Link Architecture
- Crawl Depth: Every important page must be reachable within $\le 3$ clicks from the homepage.
- Descriptive Anchor Text: Use specific, entity-rich anchor text (e.g.,
"read our PostgreSQL zero-downtime migration guide") — never use generic anchors like"click here","read more", or"link". - Crawlable Links: Always use standard
<a href="/path">tags. Never rely on<span onClick={...}>orrouter.push()without an underlyinghref.
17. Build Topical Authority with Content Clusters
- Hub-and-Spoke Model: Organize content into Pillar Pages (comprehensive overview of a core topic) and Cluster Pages (deep-dives into specific subtopics, edge cases, comparisons, and tutorials).
- Bidirectional Linking:
- Every Pillar page links out to all of its child Cluster pages.
- Every Cluster page links back up to its parent Pillar page and laterally to 2–3 related sibling Cluster pages.
19. Fix Orphan Pages and Broken Links
- Orphan Pages: Cross-reference
sitemap.xmlagainst an internal link crawl. Any indexable page with 0 incoming internal links is an orphan and must be linked from relevant hubs, navigation, or category indexes. - Broken Links: Audit all internal and external links regularly:
- Replace internal links pointing to
301redirects with the direct final destination URL. - Fix or remove any internal or outbound link returning
404or410.
- Replace internal links pointing to
Phase 5: Citation-Ready Content & E-E-A-T (Points 13, 14, 18, 20)
13. Add FAQ-Style Answers to Key Pages
- Answer-First Formatting: Phrase
<h2>/<h3>headings as direct natural-language questions users ask LLMs (e.g.,"How does IndexNow improve ChatGPT Search indexing?"). - Atomic Answer Block: Immediately follow the heading with a concise, self-contained 40–60 word direct answer before expanding into deeper technical detail. AI engines extract these self-contained blocks verbatim as citations.
- Markup: Wrap visible FAQ sections in semantic
<details><summary>elements and pair withFAQPageJSON-LD schema where appropriate.
14. Include Original Data and Citations
- Information Gain: LLMs prioritize sources with high information gain over generic rewrites. Include original benchmarks, proprietary survey metrics, reproducible code snippets, or concrete numbers (e.g.,
"reduced p95 latency from 420ms to 85ms"). - External Citations: Cite primary sources (RFCs, peer-reviewed papers, official documentation, standards bodies) using
<blockquote cite="...">and direct outbound links.
18. Add Author Credentials and Source References
- Byline & Bio: Every article or guide must display a visible author byline, publication date, last-updated date, and a bio summarizing real-world credentials and domain expertise (E-E-A-T).
- Reviewer Attribution: For high-stakes technical, security, financial, or medical topics, add a
"Technically reviewed by [Name, Role]"attribution and map it toreviewedByinArticleschema.
20. Monitor AI Citations and Referral Traffic
- Referral Analytics: Track incoming traffic and conversions in analytics by segmenting
referrerdomains matching AI answer engines:chatgpt.com(andutm_source=chatgpt.com)perplexity.aiclaude.aicopilot.microsoft.comgemini.google.com
- Server Log Auditing: Monitor access logs for user-agents (
OAI-SearchBot,ChatGPT-User,PerplexityBot,Claude-Web,Applebot-Extended) to verify which pages AI engines are actively fetching and grounding answers on.
Quick Audit Checklist (Pass / Fail)
When asked to run an AI SEO / GEO audit on a codebase or live site, evaluate all 20 items and report status:
- 1.
robots.txt: AllowsOAI-SearchBot,ChatGPT-User,PerplexityBot,Claude-Web,Googlebot,Bingbot. - 2. Bot Access: WAF/CDN does not return
403or CAPTCHA to AI search bots. - 3. Indexation: No unintended
noindextags/headers,5xx/4xxerrors, or redirect chains. - 4. XML Sitemap: Valid
sitemap.xmlwith only200 OKcanonical URLs and accurate<lastmod>. - 5. Schema.org: Valid JSON-LD markup matching page type (
SoftwareApplication,Product,FAQPage,BreadcrumbList). - 6. Core Entities:
Organization,Article, andPersonschemas linked via@id. - 7. Canonicals: Self-referencing
<link rel="canonical">and strict URL normalization (https, trailing slash). - 8. Entity Signals: Consistent brand/product naming +
sameAslinks to authoritative external profiles. - 9. Internal Links: Important pages $\le 3$ clicks from home; descriptive anchor text in
<a href>. - 10. Core Web Vitals: LCP $\le 2.5\text{s}$, INP $\le 200\text{ms}$, CLS $\le 0.1$.
- 11. JS Rendering: Primary content, links, and metadata rendered in initial SSR/SSG HTML without requiring client JS.
- 12. Semantic HTML: Proper
<main>,<article>,<section>, single<h1>, sequential<h2>–<h4>,<table>for data. - 13. FAQ Answers: Question-based headings followed immediately by 40–60 word direct answer blocks.
- 14. Original Data: Concrete metrics, benchmarks, original tables, and primary source citations included.
- 15. IndexNow: Key hosted and ping webhook configured for instant Bing / AI search index updates.
- 16.
llms.txt: Clean Markdown index at/llms.txtpointing to core docs and canonical pages. - 17. Content Clusters: Hub-and-spoke pillar/cluster pages with bidirectional internal links.
- 18. Author E-E-A-T: Visible author credentials,
datePublished/dateModified, and source references. - 19. Orphans & 404s: Zero orphan pages in sitemap; zero broken internal/external links.
- 20. AI Telemetry: Analytics segments configured for
chatgpt.com,perplexity.ai,claude.aireferrals and bot log monitoring.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

