Llm seo readiness

From aptos-labs/aptos-docs · View interactive version

Llm seo readiness is an AI agent skill from the GitHub repository aptos-labs/aptos-docs. Validates Aptos docs changes for LLM consumption (llms.txt, curated feeds, Markdown exports, HTML→Markdown) and for SEO (metadata, sitemap, robots, structured data). Use when adding or restructuring docs, editing llms routes or curation, changing Head/meta/OG, updating robots.txt or sitemap behavior

How to use this skill

Skill file

LLM and SEO readiness (Aptos docs)

LLM / machine-readable

SEO

Verification

After substantive changes:

pnpm test tests/llms-curated-ids.test.ts tests/llms-html-sanitize.test.ts tests/agent-discovery.test.ts
pnpm lint && pnpm check

For full coverage: pnpm test and a production pnpm build when touching routes or integrations.

File map

| Area | Primary locations |

|------|-------------------|

| Curation | src/lib/llms-curated-ids.ts, src/lib/llms.ts |

| llms.txt body | src/pages/llms-index.ts |

| Feed endpoints | src/pages/llms-small.txt.ts, src/pages/llms-full.txt.ts |

| Plugin override | src/integrations/llms-txt-index.ts |

| Markdown export / sanitize | src/lib/llms-html-sanitize.ts, src/pages/[...slug].md.ts |

| User docs | src/content/docs/llms-txt.mdx, build/ai.mdx, zh/ |

| SEO head | src/starlight-overrides/Head.astro |

| Crawlers / sitemap hint | public/robots.txt |

| Agent discovery — well-known | public/.well-known/api-catalog, public/.well-known/mcp/server-card.json, public/.well-known/agent-skills/index.json, public/.well-known/ai-catalog.json, public/.well-known/oauth-protected-resource, public/.well-known/openid-configuration, public/.well-known/oauth-authorization-server, public/auth.md |

| Agent discovery — Link header | vercel.json (global /(.*) entry) |

| Markdown negotiation + WebMCP | src/middlewares/markdown-negotiation.ts, src/scripts/webmcp-register.ts, src/types/webmcp.d.ts |

| Agent discovery regression tests | tests/agent-discovery.test.ts |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.