Link line format
Link lines as - [name](url): description
In short: Write every link as - [name](url): description, with a description of at least two characters after the colon.
What it checks
Whether link lines follow the spec form - [name](url): description.
Why it matters
Agents and parsers rely on the fixed link form to separate the link’s name, target and notes. Irregular lines get parsed wrongly or skipped.
When it applies
Applies when the file has links. A file with no links at all is Not applicable here.
An audit that doesn't apply, or that we couldn't verify, is removed from your score and its weight shared among the Spec Conformance audits that do apply. It is never scored as a zero.
How it's scored
The share of the file’s links that carry a description of two or more characters after the colon. A bare - Label: https://… item counts, with the label as its description.
How to fix
- Write every link as - [name](url): description.
- Keep the description on the same line, after a colon.
- Don’t use bare URLs or numbered lists for links.
Example
- [Refunds API](https://acme.com/docs/refunds.md): Create, list and cancel refundsFrequently asked questions
Does a link line without “: description” still count?
[name](url), “then optionally a : and notes”), but this check scores the share of your links that carry them, so a file where half the links have a description scores 0.5. A colon followed by nothing, or by a single character, doesn’t count as a description.Sources: llms.txt format (v2) · Link line format
Can I use “*” or “+” bullets, numbered lists or nested lists for links?
- or * : both are read as link lines, and indented (nested) items count too. CommonMark also allows + bullets and numbered lists, but our parser doesn’t read those as link lines, so links written that way are skipped rather than scored.Sources: CommonMark: list items · llms.txt format (v2)
Why are some of my links not counted at all?
- [name](url), optionally followed by : notes. Lines that don’t fit are skipped: a separator other than a colon (- [Docs](url) - guides), a URL containing spaces or a ), a name containing ], or links inside prose paragraphs. A bare - Label: https://… list item inside a section is accepted, with the label treated as its description.Sources: llms.txt format (v2) · CommonMark: link destination
Are relative URLs like /docs/api.md acceptable in link lines?
(url) slot counts. The llms.txt format doesn’t forbid relative URLs, but agents often fetch llms.txt out of context, so URL hygiene rewards absolute https:// URLs; writing them absolute costs nothing here and helps there.Sources: llms.txt format (v2) · URL hygiene
In our research, how many sites write every link in the spec form with a description?
Sources: LLMSRank method · Link line format