AI Agent Discoveryv1.0.0 · MIT · 2026-12-01
llms.txt Generator & Spec Validator Skill
Generate and audit a clean /llms.txt, /llms-full.txt, RFC 8288 Link header, and raw .md twin URLs so ChatGPT, Claude, and coding agents ingest your highest-signal pages without choking on site dumps.
Works with:Claude CodeCursorCodex CLINext.jsCloudflare
Install into .claude/skills (1 command)
mkdir -p .claude/skills/llms-txt-validator && curl -fsSL https://jasonzhu.ai/skills/llms-txt-validator/skill.md -o .claude/skills/llms-txt-validator/SKILL.mdSKILL.md
Author: Jason Zhu (Yansen Zhu)--- name: llms-txt-validator description: Generate and validate a spec-compliant /llms.txt index, /llms-full.txt archive, RFC 8288 discovery headers, and clean Markdown (.md) twins for LLM retrieval and coding agents. version: 1.0.0 author: Jason Zhu (Yansen Zhu) <https://jasonzhu.ai> license: MIT --- # llms.txt Generator & Spec Validator Use this skill when creating or auditing `/llms.txt` for a SaaS product, developer documentation site, or content hub. Most `/llms.txt` files fail because they dump 500 unfiltered sitemap URLs instead of curating high-signal canonical sources. ## Specification Gates (7 Checks) ### 1. Structural Compliance (llmstxt.org Spec) - **Single H1:** `# <Site or Brand Name>` on line 1. - **Concise Blockquote Summary:** Immediately under H1, a 1–3 sentence `> ...` summary stating what the product/site does, who built it, and its canonical domain. - **Curated H2 Sections:** Group links under clear H2 headings (`## Docs`, `## Primary Research`, `## API & Pricing`, `## Author / Entity`, `## Optional`). - **Bullet Format:** Every entry must follow `- [Exact Title](https://...): One-line factual description`. ### 2. Signal-to-Noise Weight Budget - Keep `/llms.txt` strictly **<= 15 KB** (typically 15–40 pillar URLs) so agents can read the whole file in a single cheap context pass. - Put full archives, changelogs, or complete inline dumps at `/llms-full.txt` and link it under `## Optional`. ### 3. HTTP & Content-Type Hygiene Verify via `curl -sI https://<domain>/llms.txt`: - HTTP status is `200 OK` (no redirect chain, no soft-404 HTML page). - `Content-Type: text/plain; charset=utf-8` (or `text/markdown; charset=utf-8`). - Never blocked by Cloudflare Bot Fight Mode, geo-fencing, or `robots.txt`. ### 4. Link Integrity & Auth Check Sample or crawl every URL listed in `/llms.txt`: - Zero `404`, `403`, `5xx`, or login-walled URLs. - Prefer direct `.md` twin URLs (e.g. `/docs/auth.md` or `/en/blog/post.md`) where available, since clean Markdown cuts LLM token cost by 60–80% vs bloated HTML. ### 5. RFC 8288 Discovery Header Add an HTTP `Link` header on the homepage (`/`): ```http Link: </llms.txt>; rel="describedby"; type="text/plain" ``` ### 6. Entity & Author Grounding Include a dedicated `## About / Canonical Entity` block with the official legal company name, founder name (with disambiguation if needed), canonical `/about` URL, and primary external profiles (GitHub, docs, Zenodo/DOI). ### 7. Output Deliverable Always return: 1. Pass/Fail scorecard across all 7 gates. 2. Exact broken/bloated URLs to prune. 3. A ready-to-deploy `/llms.txt` draft + Next.js/Cloudflare route config snippet.
Live Benchmarks & B2B Diagnostic Funnel
Automate This Skill with OpenSEO MCP — or Request a Free 1-Page Entity Gap Audit
If your SaaS or AI product team is investing in GEO, Knowledge Graph disambiguation, or AI search acquisition, run our live 26-check scanner first or send your domain for a 1-page Entity Gap Audit from Jason Zhu (Yansen Zhu).
More Open-Source GEO & SEO Skills
geo-entity-gap-audit
GEO & Knowledge Graph Entity Gap Audit Skill
aeo-answer-index
AEO Answer Index & Multi-Engine Citation Benchmark Skill
gsc-genai-branded-halo
GSC Branded Classification & AI Search Halo Tracker Skill
seo-image-chisel
SEO Blog Images & Content Chisel Spec Skill
robots-ai-crawler-audit
robots.txt & AI Crawler Access Audit Skill
schema-org-graph-builder
Schema.org @graph JSON-LD Builder & Validator Skill