Skip to content
Back to skills

Llms Txt Validator

ASecurity

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.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsnextjsgitapidocumentation

Works with

  • api

Security analysis

A92/100
  • mediumUses curl or wget to download content

Pro shows the line behind each finding and how to fix it

Scanned December 3, 2026

npx -y skills add zhuyansen/geo-seo-skills --skill llms-txt-validator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Llms Txt Validator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Llms Txt Validator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/zhuyansen-llms-txt-validator/badge)](https://www.skillsdirectory.com/skills/zhuyansen-llms-txt-validator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.1.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.

## Checks (6 Gates + Output)

### 1. Structure (llmstxt.org format plus our stricter house rules)
The llmstxt.org proposal only requires the H1; the summary and per-link notes are optional there. We require them because agents use them to decide what to read.
- **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`, `## About / Canonical Entity`, `## Optional`). In the proposal, `## Optional` marks links an agent may skip.
- **Bullet Format:** Every entry must follow `- [Exact Title](https://...): One-line factual description`.

### 2. Signal-to-Noise Weight Budget
- Keep `/llms.txt` **<= 15 KB** (our budget, not a spec rule) (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` (a common convention, not part of the proposal) and link it under `## Optional`.

### 3. HTTP & Content-Type Hygiene
Verify via `curl -sI https://<domain>/llms.txt`:
- HTTP status is `200 OK` with no redirect chain. Headers alone can't reveal a soft 404, so also `GET` the body and confirm it is the file, not an HTML "not found" 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
Fetch every URL listed in `/llms.txt` **without following redirects**, then read the body:
- Zero `404`, `403`, `5xx`.
- Zero redirects to a login or sign-in page.
- Zero soft 404s: an HTTP 200 that is really an error page (title or H1 says "not found" / "unavailable", or the body is an empty template).
- Prefer Markdown versions where they really exist (the proposal suggests the page URL with `.md` appended). Check that a `.md` URL returns Markdown, not your site's not-found page.

### 5. Optional: `Link` Discovery Header
RFC 8288 defines the `Link` header format; no major AI crawler is documented to read it, so treat this as optional. If you add it on the homepage (`/`), use `type="text/markdown"` when you serve Markdown:
```http
Link: </llms.txt>; rel="describedby"; type="text/plain"
```

### 6. Entity & Author Grounding
Include a dedicated `## About / Canonical Entity` block with whatever applies: the legal company name, the founder's name (with disambiguation if needed), the canonical about URL, and the main external profiles (GitHub, docs; a DOI only if you publish datasets). Never invent facts the site doesn't state.

### Output
Always return:
1. Pass/Fail scorecard across gates 1–6.
2. Exact broken/bloated URLs to prune.
3. A ready-to-deploy `/llms.txt` draft + a route/header config snippet for the user's actual stack (Next.js, Cloudflare, Nginx, …).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.