--- name: geo-agent-readiness description: "Make a site readable and usable by AI agents and developer tools beyond crawling: an optional llms.txt following the llmstxt.org spec, Markdown page alternates and Link headers, Accept: text/markdown negotiation, well-known documents, real 404 responses for unknown URLs, accessible semantic HTML for agent navigation, Lighthouse Agentic Browsing results, and experimental WebMCP tools with safety rules. Use for llms.txt requests, 'agent-ready' or 'AI-friendly' sites, documentation sites used by coding agents, or WebMCP. Never presented as a Google ranking or citation lever. Not for AI crawler access and training policy (geo-ai-access) or passage-level rewrites (geo-citability)." --- # GEO agent readiness: llms.txt, Markdown, discovery and agent-usable pages Help AI agents and developer tools read and operate the site: server-rendered content, accessible controls, real 404s, and optional discovery layers such as llms.txt, Markdown page versions and well-known documents. Everything here is optional infrastructure for agents; it is not a Google Search ranking or citation lever, and reports say so. ## Use when / hand off Use this skill when: - someone asks for an llms.txt, `llms-full.txt` or Markdown versions of pages; - a documentation, API or library site wants to be easier for coding agents to load accurately; - the request is to make the site "agent-ready" or "AI-friendly", or to explain a Lighthouse Agentic Browsing result; - unknown URLs, `/llms.txt` or `/.well-known/` paths return HTML with status 200; - the team wants to experiment with WebMCP tools or NLWeb. Hand off when the work is mainly: | Need | Skill | | --- | --- | | Which AI crawlers may fetch or train on the site; Content Signals; WAF | [geo-ai-access](../geo-ai-access/SKILL.md) | | Primary content missing from server HTML | [seo-rendering](../seo-rendering/SKILL.md) | | Layout shift and other Core Web Vitals | [seo-performance](../seo-performance/SKILL.md) | | SPA fallbacks, status codes and redirects | [seo-technical](../seo-technical/SKILL.md) | | Making passages quotable for AI answers | [geo-citability](../geo-citability/SKILL.md) | | Agentic commerce protocols on a store | [seo-ecommerce](../seo-ecommerce/SKILL.md) | ## Before you change anything 1. Read the repository's own instructions (`AGENTS.md`, `CLAUDE.md`, `CONTRIBUTING.md`, deploy docs) and follow them where they conflict with this skill. 2. Define the CLI once: `SG` means `python3 -I /scripts/seo_geo.py`, where `` is two directories above this `SKILL.md` (in Claude Code: `python3 -I "${CLAUDE_PLUGIN_ROOT}/scripts/seo_geo.py"`). 3. Run `SG stack .` (or reuse its result). Note `frameworks`, `build_output_candidates`, `site_url_candidates`, `rendering_hints` and `seo_surfaces`, then read the matching section of [framework-recipes.md](../../references/framework-recipes.md) and the installed framework version. 4. Locate the real files: the static-files directory that ships to the site root (`public/`, `static/`, `assets/`), the content source (Markdown or MDX folders, CMS fields), the head or layout component, header config (`_headers`, `vercel.json`, `netlify.toml`, nginx, middleware) and the router's catch-all or SPA fallback. 5. Agree the target: built output (offline, the default), a production server started locally, or the live site (explicit consent, a site the user owns or may test, `--live`). Soft-404 and header checks need an HTTP response. 6. List what is available: a build command, Lighthouse access in a supporting Chrome (the user or host runs it; the plugin does not), server logs. Say what is missing. 7. State the honest framing before any work (step 1 of the workflow) and confirm the user still wants the optional files. 8. Write reports only under `.seo-geo-god/` in the repository and suggest adding it to `.gitignore`. ## Workflow Detect, inspect the real files, run the deterministic checks, decide with cited facts, implement the smallest correct change, re-run the same checks, report. Stop after step 3 for audit-only requests. 1. **Frame it honestly.** Google Search ignores llms.txt and needs no special files, schema or Markdown for AI features ([F-AI-11](../../references/current-facts.md#f-ai-11), [F-AI-12](../../references/current-facts.md#f-ai-12)). Chrome Lighthouse's experimental Agentic Browsing category does check llms.txt ([F-AI-27](../../references/current-facts.md#f-ai-27)); that is a different product. No AI vendor crawler page read on 2026-11-01 says it consumes llms.txt. The realistic value is for documentation and developer sites used by coding agents. 2. **Check P0 first** (the ladder is in [agent-readiness.md](../../references/agent-readiness.md#priority-ladder)). Do not recommend lower priorities while a measured P0 fails. - `SG audit-build dist --base-url https://example.com --format json --output .seo-geo-god/reports/2026-11-01/agent.json` covers server-rendered text (REND rules), llms.txt structure and links (AGENT001 to AGENT003, AGENT009) and missing Markdown alternates (AGENT005). - `SG robots dist/robots.txt --bots all` confirms deliberate AI groups (policy decisions go to geo-ai-access). - Accessible names, roles and layout stability: review templates against [agent-readiness.md](../../references/agent-readiness.md#agent-friendly-html); CLS goes to seo-performance. 3. **Check HTTP behavior (consent required).** `SG access-check https://example.com --live` probes an unknown URL (HTTP004), checks whether `/llms.txt` is served as HTML (AGENT004) and validates well-known documents (AGENT008). For a local production server add `--allow-local localhost:3000` and use `http://localhost:3000`. 4. **Decide.** | Situation | Action | | --- | --- | | Catch-all route answers unknown URLs with 200 | Return a real 404 status (with the friendly page) before adding any discovery file | | Docs or API site, owner wants llms.txt | Draft, review and publish llms.txt; add Markdown versions of the linked pages | | Marketing or local business site | llms.txt is optional; say it has no documented Search effect and let the owner decide | | Agents need to operate forms or checkout | Fix native elements, labels and confirmation states first; WebMCP only as a later experiment | | A well-known path returns HTML | Remove the route or return 404 unless the site runs that service | | Lighthouse agentic result requested | The user runs Lighthouse; report "X of N audits passed" with versions and date | 5. **Implement the smallest correct change.** - **llms.txt.** Draft from the built pages, then edit by hand: ```bash SG llms-txt draft dist --base-url https://example.com --title "Example Co" --summary "Developer documentation for the Example Co invoicing API." --optional-prefix /changelog/ --output public/llms.txt ``` The drafter uses only titles and descriptions found in the build, escapes link labels, groups by first path segment and never invents notes, contact data or key facts; `--output` never overwrites. Review every line with the owner: drop `noindex`, draft, private and thin pages; keep only absolute URLs that exist. Place it where the root static files live (`public/llms.txt`, `static/llms.txt`) or at a subpath such as `docs/llms.txt`. The [llms.txt.example](../../templates/llms.txt.example) template shows the minimal valid shape. - **Markdown versions.** Generate `.md` files in the build from the same content source as the HTML (post-build copy or render for Markdown sources; an endpoint or route for CMS content), with frontmatter, imports and components removed, so the Markdown says what the page says. Advertise each one only where it exists: ```html ``` or a `Link` header in `_headers`, `vercel.json` or the server config. If the owner wants `Accept: text/markdown` negotiation, add `Vary: Accept` on every variant and keep it keyed on the Accept header, never on user agent ([agent-readiness.md](../../references/agent-readiness.md#markdown-alternates-and-negotiation)). - **Soft 404s.** Change the router or host fallback so unknown paths return 404; keep the SPA fallback only for real client routes ([F-T-24](../../references/current-facts.md#f-t-24)). - **Agent-friendly HTML.** Replace `div` click handlers with `