llms.txt structure quick reference: fixing the six SPEC error codes

Fix a missing H1, multiple H1s, an empty summary, section depth, non-link entries and missing structure against the proposal: one fix per SPEC error code.

About 2 min readError codes covered: SPEC_H1_MISSINGSPEC_H1_MULTIPLESPEC_SUMMARY_EMPTYSPEC_SECTION_DEPTHSPEC_ENTRY_NOT_LINKSPEC_STRUCTURE_MISSING

The “Proposal compliance” part of a report is judged only against the clauses of the llms.txt proposal. The six SPEC_* error codes correspond to six kinds of structural problems; each gets its fix below. Writing the file from scratch with the editor avoids these errors by construction.

SPEC_H1_MISSING: no top-level heading

The file must start with exactly one H1 (# Project name), which identifies the project. Add it; do not put body text before the H1.

SPEC_H1_MULTIPLE: several H1s

More than one # appears. The proposal has a single project name: demote the other H1s to H2 sections (## ).

SPEC_SUMMARY_EMPTY: empty summary

The H1 should be followed directly by a blockquote summary (> One-sentence introduction), and it must not be empty. The summary helps an agent quickly judge relevance: say clearly what this is and who it is for.

SPEC_SECTION_DEPTH: wrong section depth

Sections must be H2. Deeper levels (### ) have no defined place in the proposal: flatten the content into H2 sections, or fold it into entry notes.

SPEC_ENTRY_NOT_LINK: entry is not a link

The proposal’s format for a list entry is - [name](URL): notes. Plain-text entries (- some explanation) are flagged. There are two fixes: give it a link, or decide that it should not be an entry and move it to the summary or the body.

SPEC_STRUCTURE_MISSING: structure missing

The file has neither sections nor entries; perhaps it holds only a paragraph of text. Rewrite it with the minimal structure “H1 → summary → H2 sections → entry lists”.

A minimal compliant example

# My project

> One sentence that introduces the project and helps an AI quickly judge whether it is relevant.

## Docs

- [Getting started](https://example.com/start): installation from scratch
- [API reference](https://example.com/api): endpoints and parameters

Test environment and results

Environment: Node v24.18.0, the llmstxtdb validator (the same frozen rules as the report), tested on 2026-10-05. The minimal example above tested as verdict=PASS, with no proposal issues and zero advice items (ADVICE_*, non-blocking). With only the summary missing, the test produced ADVICE_SUMMARY_MISSING (advice, non-standard; it does not affect PASS). Parsing a 1 MB input locally took about 0.7–1.1 seconds (the acceptance limit is 3 seconds).

After fixing, go back to the online check to verify.