SEO-GEO-god
SEO (search engine optimization) and GEO (generative engine optimization) for coding agents. The plugin helps an agent make a website easier to crawl, index, render, understand and cite, by changing the code that owns each signal and proving the change with deterministic checks.
Version 1.0.1, MIT license. Platform facts are dated 2026-11-01.
What is in the package:
- 24 skills: a router, an audit orchestrator and 22 focused skills (technical SEO, rendering, metadata, sitemaps, performance, media, structured data, international, site architecture, migrations, programmatic pages, CI gates, AI-crawler access, agent readiness, citability, entity authority, measurement, content, keyword strategy, local, e-commerce, search data analysis).
- 6 agent briefs for bounded delegation: an auditor, an implementer, a content editor, an AI-access analyst, a search-data analyst and an independent reviewer.
- An offline audit CLI in Python standard library only: 28 commands and a catalog of 198 rules (186 emitted in v1, 12 planned).
- 26 references, a dated fact registry among them, plus 23 template files (JSON-LD, robots.txt policies, CI workflows, briefs, measurement plans), 7 data files and 4 JSON schemas.
Try it
After installing from the host guide, open your target project and select seo-geo-god. Try this prompt.
Audit this local static build for crawlability. Prioritize indexability, canonical URLs, and structured-data findings with the file and check behind each one.
Principles
- The host coding agent is the LLM. No code in this plugin calls an LLM API. Judgment work (content quality, search intent, passage rewrites, E-E-A-T review) is an agent workflow written as a skill; the CLI supplies evidence, guards and before-and-after checks.
- Nothing runs in the background. No bundled MCP servers, no network access by default, no hooks, no telemetry and no update checks. None of the three manifests has a
hooksormcpServerskey. The hook and pre-commit files undertemplates/opt-in/are inert examples that do nothing until you copy them into a project yourself. - Nothing to install. The CLI needs Python 3.9 or newer and its standard library.
- Offline first. The CLI audits build output, single files and exports you supply. The four live forms (
audit-url,access-check,robots --url,drift snapshot --url) refuse to touch the network without--live, and live fetching is only for sites you own or are authorized to test. - Dated facts. Every claim about a search engine or AI system cites a fact ID in references/current-facts.md (as of 2026-11-01, with source URL and evidence label) or says "needs verification".
SG doctorwarns when the bundled data ages; see Data currency. - Evidence before advice. Findings carry a rule ID, evidence, an evidence class and a fix hint. Scores are optional, coverage-aware and never computed from data that was not measured. Unknown is never Fail.
- Honesty and owner control. No fabricated facts, statistics, quotes, reviews, authors, volumes or rankings, and no ranking, rich-result or citation guarantees. The owner approves crawler-access policy, redirects, deletions, publishing and every external submission.
Install
Each host reads different files from the same directory. Use your host's documented workflow for adding a plugin from a local directory or ZIP file; this README does not name marketplace listings or install commands for any host.
| Host | Files it reads | Notes |
|---|---|---|
| Claude Code | .claude-plugin/plugin.json (name, version, description, author, keywords, license, agents), skills/*/SKILL.md, agents/*.md (listed explicitly in the manifest) | Skills and agent briefs are discovered from the conventional skills/ and agents/ directories. Skills call the CLI as python3 -I "${CLAUDE_PLUGIN_ROOT}/scripts/seo_geo.py". The Claude Code CLI used while this README was written lists a --plugin-dir <path> option ("Load a plugin from a directory or .zip for this session only"); check claude --help on your installation. |
| Codex | .codex-plugin/plugin.json (identity, interface display metadata, "skills": "./skills"), skills/*/SKILL.md, skills/*/agents/openai.yaml | Each agents/openai.yaml carries the skill's display name, short description, default prompt and allow_implicit_invocation: true. The agent briefs are not registered by this manifest; pass a brief to a subagent explicitly. |
| Agent Plugins hosts (portable) | plugin.json (Agent Plugins 1.0 schema, with display metadata under extensions.com.openai), skills/<name>/SKILL.md | Skill frontmatter holds only name and description, so the skills stay portable across hosts. |
| Any other agent | skills/seo-geo-god/SKILL.md | Open the router skill and follow it; run the CLI directly with Python. |
Start a broad request with the router, seo-geo-god. In hosts that support explicit skill invocation, use $seo-geo-god or the host's plugin-qualified equivalent. Example requests (the manifests' default prompts):
- "Audit this repository's SEO and GEO readiness, fix the highest-priority issues in code, and verify the fixes with the bundled checks."
- "Make this site's key pages easier to cite in AI answers without inventing facts, sources or statistics."
- "Add SEO and GEO regression gates to this project's CI."
Reports, baselines and work files go under .seo-geo-god/ in your repository. The skills suggest adding that directory to .gitignore (baselines may be committed if the team wants CI comparisons).
Quick start
SG is short for python3 -I <plugin-root>/scripts/seo_geo.py. -I keeps PYTHONPATH, user site-packages and the current directory out of the import path; the entry script adds only its own directory.
The excerpts below are real output from runs on 2026-11-03 against the synthetic fixtures under tests/fixtures/, from the plugin root, with SG = python3 -I -B scripts/seo_geo.py (-B only stops Python from writing bytecode caches next to the plugin). Long output is cut where marked.
1. Detect the stack
SG stack tests/fixtures/stack/next
Excerpt of the JSON output, condensed to one line per key:
"build_output_candidates": ["out"]
"label": "Next.js (app router)", "version": "^15.0.3"
"metadata": ["app/layout.tsx"], "robots": ["app/robots.ts"], "sitemap": ["app/sitemap.ts"]
"recipe_anchors": ["framework-recipes.md#nextjs-app-router"]
In your repository run SG stack .. It reads configuration files only (never .env*) and tells the agent where metadata, sitemaps, robots rules, headers and redirects live, which build directory to audit and which framework recipe applies.
2. Audit a static build offline
SG audit-build tests/fixtures/site-good --base-url https://example.com --format text
...
INFO SD009 tests/fixtures/site-good/index.html:17 — JSON-LD block 1 $.@graph[0] (Organization): Organization recommends description.
0 error(s), 0 warning(s), 7 info; command audit-build; facts as of 2026-11-01
Exit code 0. The same command on the deliberately broken fixture with a gate:
SG audit-build tests/fixtures/site-bad --base-url https://example.com --fail-on error --format text
...
24 error(s), 46 warning(s), 90 info; command audit-build; facts as of 2026-11-01
seo-geo-god: gate tripped: findings at or above --fail-on error (24 error, 46 warning, 90 info)
Exit code 1; the full report is printed before the gate explanation on stderr. In your project, point audit-build at the build directory SG stack reported, for example SG audit-build dist --base-url https://www.example.com --expect-indexable --format md --output .seo-geo-god/reports/audit.md. Add --scores both for optional readiness scores and --profile launch|programmatic|local|ecommerce|geo for extra checks (profiles). Synthetic JSON, Markdown and SARIF reports for the broken fixture are in examples/.
3. Crawl a server-rendered app on your own machine
For apps that render on request, build the app, start its production server locally with the project's documented command, and crawl that server. The run below stood in for an app server by serving the good fixture with Python's built-in static server on a free port:
python3 -I -B -m http.server 42765 --bind 127.0.0.1 --directory tests/fixtures/site-good &
# wait until the server answers, then:
SG audit-url http://127.0.0.1:42765/ --live --allow-local 127.0.0.1:42765 --format text
...
INFO CANON005 http://127.0.0.1:42765/ — Canonical points to a different URL: https://example.com/.
...
2 error(s), 3 warning(s), 12 info; command audit-url; facts as of 2026-11-01
All five pages answered 200, robots.txt was read first, and the crawl added the http and redirects checks that an offline build audit cannot run. The fixture's canonicals, hreflang links, sitemap and JSON-LD all use https://example.com, so at the local origin the crawl also reported origin mismatches: CANON005 (info), HREF002 and SMAP004 (warnings) and SD006 (errors, because example.com counts as a placeholder host when it is not the crawled host). Expect the first three whenever an app emits production URLs while you crawl it locally. Stop the server you started when you are done.
--allow-local 127.0.0.1:42765 permits exactly that host and port. Without --live a live command refuses before any network access (exit 3):
SG audit-url https://example.com --format text
seo-geo-god: error: network disabled: pass --live to fetch https://example.com (only sites you own or are authorized to test)
4. Read a robots.txt policy as an impact table
SG robots tests/fixtures/robots/ai-policy.txt --bots ai --format text
... (per-token access table as JSON, cut)
WARNING AI001 tests/fixtures/robots/ai-policy.txt:19 — PerplexityBot (Perplexity) is disallowed from the whole site (line 19): the site is excluded from Perplexity search answers.
INFO AI002 tests/fixtures/robots/ai-policy.txt:10 — ClaudeBot (Anthropic) is disallowed from the whole site (line 10): it states a preference against Anthropic model training. It does not remove the site from search results.
...
0 error(s), 3 warning(s), 10 info; command robots; facts as of 2026-11-01
The data.rows table lists each crawler or policy token that --bots selects, with its class (for example training, search index, user-triggered, agent or control), the group that applies, whether each path is allowed, and the documented visibility and training impact. Ready-made policies are in templates/robots/; any change to a live robots.txt policy needs the site owner's approval (geo-ai-access).
5. Lint JSON-LD in built pages and component templates
SG jsonld tests/fixtures/site-good --recursive --url https://example.com/ --format text
SG jsonld tests/fixtures/jsonld/Seo.tsx --format text
INFO SD009 tests/fixtures/site-good/index.html:17 — JSON-LD block 1 $.@graph[0] (Organization): Organization recommends description.
0 error(s), 0 warning(s), 1 info; command jsonld; facts as of 2026-11-01
WARNING SD018 tests/fixtures/jsonld/Seo.tsx:6 — application/ld+json is filled with JSON.stringify without escaping '<'.
INFO SD019 tests/fixtures/jsonld/Seo.tsx:5 — JSON-LD block 1 contains a template expression and was not validated; check the built HTML instead.
0 error(s), 1 warning(s), 1 info; command jsonld; facts as of 2026-11-01
--url sets the page URL used for the placeholder-host check. Valid markup is a structural check, not a rich-result promise.
6. Add CI gates
Copy templates/ci/github-actions.example.yml or templates/ci/gitlab-ci.example.yml into your project and fill in the placeholders the file lists (pinned action SHAs you verified, the production origin, your build steps, where the plugin copy lives). The GitHub example builds the site, audits the output offline, writes JSON, Markdown and SARIF reports, and fails only on the gates you configure. These templates were not run as part of writing this README. Gate selection, baselines, drift comparison and the server-rendered variant are in references/ci-recipes.md; the seo-ci-guard skill wires them in.
Skills
| Skill | What it does |
|---|---|
| seo-geo-god | Router: picks the smallest set of skills and agents for a request and applies the shared consent and honesty rules once |
| seo-geo-audit | Reproducible, evidence-first audit with coverage, findings and a prioritized plan; optional scores |
| seo-technical | Crawl and index controls: robots.txt for search crawlers, meta robots, X-Robots-Tag, canonicals, status codes, redirects, soft 404s, facets, spam-risk code |
| seo-rendering | Real content, links, metadata and structured data in the initial HTML; SSR, SSG, ISR and SPA fixes |
| seo-metadata | Titles, meta descriptions, Open Graph and X cards, site names, html lang, viewport, templated metadata |
| seo-sitemaps | XML sitemaps, accurate lastmod, Sitemap lines, sitemap and build parity, IndexNow payloads (prepared, never sent) |
| seo-performance | Core Web Vitals from field data when you have it, static risk signals in built HTML, Lighthouse and CrUX readers |
| seo-media | Image and video discoverability: alt text, responsive images, og:image, ImageObject and VideoObject, media sitemaps |
| seo-structured-data | JSON-LD design and validation: one @graph with stable @ids, server-side and safely escaped, retired types flagged |
| seo-international | hreflang, language and region codes, return links, x-default, locale routing and parity |
| seo-site-architecture | Internal link graph, orphans, click depth, anchors, breadcrumbs, URL taxonomy, topic clusters |
| seo-migrations | Replatforming and URL changes: baselines, redirect maps, launch STOP list, post-launch drift |
| seo-programmatic | Data-generated pages with real per-page value, near-duplicate checks and index management |
| seo-ci-guard | CI gates, baselines and drift, SARIF, job summaries, opt-in hooks |
| geo-ai-access | Access and use policy for AI search indexers, training crawlers, user-triggered fetchers and agents: robots groups by purpose, the shared training token, Content Signals, snippet controls, CDN and WAF checks |
| geo-agent-readiness | Optional llms.txt, Markdown alternates, Accept: text/markdown, well-known documents, WebMCP (experimental) |
| geo-citability | Passage citability analysis and answer-first rewrites, one section at a time, behind a fidelity gate that fails when numbers, links, headings, tables, code or caveats change |
| geo-entity-authority | Verified Organization and Person facts, sameAs, one entity graph across pages, earned mentions, backlink exports |
| seo-geo-measurement | Did visibility change: prompt panels, experiments with hold-outs, read-back dates, an append-only ledger |
| seo-content | Write, refresh and review content: people-first quality, E-E-A-T and YMYL signals, honest freshness, content lint |
| seo-keyword-strategy | Research, intent, clusters, content gaps, briefs and calendars from real demand data |
| seo-local | LocalBusiness markup, consistent name, address and phone, location and service-area pages, Business Profile checklist |
| seo-ecommerce | Product and merchant-listing markup, variants, facets, product and category pages, out-of-stock handling |
| search-data-analysis | Deterministic offline analysis of Search Console, GA4, Bing, CrUX, log and backlink exports you supply |
Every skill follows the same shape: use when and hand off, before you change anything, workflow (detect, inspect real files, run checks, decide with cited facts, make the smallest change, re-run the same checks, report), rules, verify, report, safety and references.
Agent briefs
| Brief | Assignment | Mode |
|---|---|---|
| seo-geo-auditor | Runs the CLI on build output or a consented crawl, traces findings to source files, returns an issue ledger | Read-only |
| seo-implementer | Fixes assigned ledger items in code and proves each with before and after checks | Writes assigned files only |
| geo-content-editor | Rewrites one content section for citability under the fidelity gate | Writes assigned content files only |
| ai-access-analyst | Maps AI crawler, training and grounding controls and drafts policy options | Read-only |
| search-data-analyst | Analyzes user-supplied exports and drafts a measurement plan | Read-only |
| seo-geo-reviewer | Re-runs checks independently, compares drift and checks claims hygiene | Read-only |
Briefs describe a role and its limits; they grant no tools, network consent or approval authority. The parent session owns scope, approvals and the final synthesis, and one writer owns each file. Handoff fields and working rules: references/agent-briefs.md.
CLI overview
Full reference: references/cli-reference.md. Rule list: references/rule-catalog.md, generated from data/rules.json by SG rules --format md.
| Area | Commands |
|---|---|
| Detect and audit | stack, audit-build, audit-page, audit-url (live) |
| Crawling, discovery and AI access | robots, access-check (live), sitemap, hreflang, links, redirects, llms-txt validate, llms-txt draft, indexnow (builds a payload, never sends it) |
| Markup and performance | jsonld, perf (static signals plus Lighthouse or CrUX JSON you supply) |
| Content and citability | citability, content-lint, sections list, sections show, sections replace (diff or new file, never in place), fidelity |
| Change tracking | drift snapshot, drift compare, drift findings, ledger init, ledger record, ledger summary, ledger status |
| Exports and plans | gsc movers, decay, ctr, striking, cannibalization, brand, buckets and aio-recovery (Search Console or Bing exports you supply), referrers, gaps plan, project validate |
| Registries and health | updates, crawlers, rules, doctor |
Global options on every command: --format {json,md,sarif,text} (default json), --output FILE (exclusive create; --force to overwrite; refused inside the audited directory), --fail-on {error,warning,info,never} (default never), --scores {none,seo,geo,both} (audit commands), --now, --today and --quiet. JSON output is deterministic: sorted keys, and byte-identical runs when --now is pinned.
Rule catalog. data/rules.json (rules version 2026.11.0) holds 198 rules: 186 with status v1, which the CLI emits, and 12 with status planned, which are catalogued but never emitted (HTTP006, SD016, IMG003, IMG004, VID001, CONT006, PSEO002, PSEO003, AGENT006, SPAM003, LOCAL001, LAUNCH002). Every rule has a severity, a default priority (P0 to P3), an evidence class (A official documentation, B deterministic spec or structure check, C heuristic, D experimental), effort, impact and a fix hint. Scoring and plan order are explained in references/scoring-and-prioritization.md.
Exit codes
| Code | Meaning |
|---|---|
| 0 | Completed. Findings are advisory and no gate tripped. |
| 1 | Gate tripped: the --fail-on threshold was reached, or fidelity found a violation. The full report is written first; one line on stderr explains the gate. |
| 2 | Usage or input error: bad arguments, missing, unreadable or oversized input, invalid JSON or CSV. |
| 3 | Refused by safety policy: network use without --live, a blocked target, --ignore-robots without --allow-local, an --output that exists or lands inside the audited directory, reading a .env file. |
| 4 | Internal error. A JSON envelope with error is still printed. |
Details: references/cli-reference.md.
Data currency
All facts and data files are dated 2026-11-01.
| File | Holds |
|---|---|
| references/current-facts.md | The fact registry (F-AI-* and F-T-* IDs) with evidence labels, source URLs, a re-check calendar and a list of unverified claims |
data/rules.json | Rule catalog, categories, weights, penalties |
data/thresholds.json | Numeric limits used by checks, each with its source or a heuristic label |
data/ai-crawlers.json | AI crawler, agent and policy-token registry |
data/structured-data.json | Google structured-data feature status and required or recommended properties |
data/ai-referrers.json | AI referrer hosts and UTM sources for analytics exports |
data/search-updates.json | Google update and documentation-change ledger (SG updates) |
data/content-lexicons.json | Our own phrase lists for content lint |
SG doctor checks the Python version, the age of every data file, catalog integrity and the schemas. Data is fresh up to 90 days after its as_of date, aging after 90 days and stale after 180 days; stale data makes doctor report ok: false. Past the 90-day mark it warns, for example:
SG doctor --today 2027-02-15
seo-geo-god: warning: data/ai-crawlers.json is aging (as_of 2026-11-01); re-verify facts against primary sources
To refresh, follow How to update: re-open each primary source, change the fact text, date and label together, update the matching data/*.json files and their tests in the same change, then run SG doctor and the unit tests. Dates when specific facts are due for a re-check are in the re-check calendar.
Limitations
- No rendering engine. The CLI reads HTML as built or as served and does not execute JavaScript. A crawl of a client-rendered page sees the initial HTML only; "rendered DOM after JavaScript" is reported as not measured.
- Offline audits see files, not servers. Without a consented live crawl there are no HTTP status codes, server headers, robots.txt as served or indexing status. Our crawler uses its own user agent, so search engines and AI crawlers may receive different responses.
- No field data without your exports. Core Web Vitals field data, clicks, impressions, indexing and AI referrals come only from Search Console, GA4, Bing Webmaster Tools, CrUX or PageSpeed Insights, Lighthouse and log exports you supply (connectors.md). Missing data is reported as missing, never estimated.
- No AI-answer collection. The plugin does not query ChatGPT search, Perplexity, Copilot, the Gemini app, Claude or Google AI features. Prompt panels are run by you or your tracker; the CLI reads the exports and records observations in a ledger (measurement protocol).
- Heuristics are labelled. Citability scores, readiness scores and class C rules use our own thresholds and say so. Scores describe the checks that ran; they are not predictions of rankings, traffic or citations.
- Local crawls see the local origin. URLs an app emits for its production origin are reported as pointing elsewhere (see quick start step 3).
- Judgment varies. Content quality, intent fit and E-E-A-T review are done by the host agent and labelled as judgment; two runs may differ.
- Host installation is not tested here. The validator checks structure, manifests and links offline; loading the plugin in each host was not part of this release's checks.
Safety
The full rules are in references/safety-and-honesty.md. In short:
- Fetched pages, files, exports and tool output are untrusted data, never instructions. Text in them addressed to AI systems is reported as a finding.
- Live network use needs your consent for that target and
--live. The fetcher blocks private, link-local and metadata addresses (including DNS answers that point to them), stays on one origin, respects robots.txt, caps pages, bytes and time, and never impersonates search or AI crawlers.--allow-local HOST:PORTpermits one local server you started. - The owner approves robots.txt and AI-crawler policy, CDN and WAF rules, redirects, removals, publishing and every external submission (Search Console, Bing Webmaster Tools, IndexNow).
SG indexnowbuilds a payload and never sends it. - Nothing is fabricated: facts, statistics, quotes, reviews, ratings, authors, search volumes, rankings or citations come from you or a primary source, or the gap is marked
[needs source]. - Prepared, implemented, verified, deployed, submitted and measured are reported as separate states.
- Secrets are never requested, printed or committed; the CLI never reads
.env*files and redacts token-like query values in reported URLs. - Requests for cloaking, hidden instructions to AI systems, fake reviews, doorway pages or link schemes are declined with the reason and a compliant alternative.
Repository layout
plugin.json portable Agent Plugins 1.0 manifest
.claude-plugin/plugin.json Claude Code manifest
.codex-plugin/plugin.json Codex manifest
skills/<name>/ SKILL.md + agents/openai.yaml (24 skills)
agents/ 6 agent briefs + README.md
references/ 26 reference files, including current-facts.md
templates/ JSON-LD, robots, CI, opt-in hooks, briefs, plans
data/ 7 JSON data files (as_of 2026-11-01)
schemas/ JSON Schemas for findings, results, crawlers, ledger
scripts/ seo_geo.py CLI, validate_plugin.py, package_plugin.py
tests/ unittest suite and synthetic fixtures
examples/ synthetic audit reports (JSON, Markdown, SARIF)
Tests, validation and packaging
Run these from the plugin root. They need only Python and make no network requests (the tests install a network sentinel).
PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover -s tests
python3 -I -B scripts/validate_plugin.py .
The suite has 937 tests: unit tests for the CLI modules, CLI end-to-end runs including regeneration of the example reports, the skills and agent-brief contract, the claims-hygiene scan over the shipped Markdown, templates and data (for example no relative dates, no guarantees, no unsourced uplift figures), and packaging checks. The validator checks the manifests, required files, skill frontmatter and agents/openai.yaml, agent briefs, local links and anchors in Markdown, data and schema files, the scenario file and, for a ZIP, archive safety. What each check covers and the recorded results are in VALIDATION.md.
To build a deterministic ZIP (it re-validates the directory and the archive and must be written outside the plugin directory):
python3 -I -B scripts/package_plugin.py . --output /absolute/path/outside/seo-geo-god-1.0.1.zip
python3 -I -B scripts/validate_plugin.py --archive /absolute/path/outside/seo-geo-god-1.0.1.zip
Bytecode caches, .git, .seo-geo-god/ and .DS_Store are never packaged.
License and attribution
SEO-GEO-god is released under the MIT license (LICENSE). Some files contain material adapted from other open-source SEO and GEO plugins under the MIT license and from one source under the Apache License 2.0; files with Apache-2.0-derived portions start with a header that names the source and the modifications. NOTICE.md lists every source, its copyright line and license, what was adapted and what was not used, and the upstream license texts are in licenses/. One source licensed under the AGPL-3.0 was consulted for ideas only; no code or text from it is included.
Google, Bing, OpenAI, Anthropic, Perplexity, Cloudflare and other names are used only to describe their products; this project is not affiliated with or endorsed by them.
Release history: CHANGELOG.md.