Mity Docs Mity Docs for Mity Digital
llms.txt for Statamic Documentation

llms.txt for Statamic

llms.txt for Statamic is a human-authored approach to creating a llms.txt for your Statamic site.

This has been created for humans, to help AI agents and LLMs understand your site, meaning that they don't need to know how to read and write Markdown to author a llms.txt file. Features include:

  • authoring in a familiar Bard field

  • supporting Markdown-compatible buttons

  • customised rules for ensuring content is suitable for Markdown

  • customisable link collections and toolbar mode

Having a human-authored llms.txt file helps remove the unnecessary noise of HTML and creatively engaging human-friendly slabs of content, and gives AI agents a succinct, token-friendly map of the most important content on your site.

It is available free and open source for you to use in your Statamic projects.

Why human-authored?

Your website content is made for your human users. And your llms.txt file is created for AI agents and LLMs. But this content should be different.

Your website content needs to connect with and engage your users, and your llms.txt file needs to help a machine understand and use your content more effectively.

Having a llms.txt file authored by a human changes the approach to creating signposts for your content - your site's structure and sections can be completely re-thought to work better for the way AI may consider your site's content.

But if you really don't want to do it yourself, ask your favourite tool to create a llms.txt file for your site, and paste it in this addon's settings. This is still a great starting point.

Why a Bard field, and not a Markdown field?

Humans write these files. And users may not know how to write Markdown.

Bard is a more familiar experience for most content authors, and allows the author to use buttons not available in the Markdown fieldtype (like headings), link to entries within their site, and have a WYSIWYG editing experience, rather than a more code-flavoured Markdown experience.

Validating for Markdown

While your llms.txt file is Markdown, there are some things that it should have - such as a single <h1> as the first element.

This addon includes opinionated rules to help keep your content valid and predictable for a llms.txt file, including:

  • a single <h1> only

  • single level lists only

  • valid heading hierarchy

  • has a root <h1>

The Bard options available give you great flexibility for your llms.txt file.