llms.txt
Every page an agent needs is also served as Markdown, so an agent such as Claude Code, Codex or Cursor can read Menhir's docs without parsing the site.
What is there
- /llms.txt is the index (llmstxt.org): what Menhir is, how to install it, and a link to each component's Markdown.
- /docs/components/switch.md, and
/docs/components/<name>.mdfor each component, is its page as Markdown: anatomy, the example with Tailwind CSS and with plain CSS, props and keyboard behaviour. Each component page links its own beside its title.
Point an agent at it
Give the agent the index's address in your request. It follows the links to the components it needs:
Read https://menhir-ui.com/llms.txt, then the Markdown of each Menhir component you use, before writing code with it.Add it to your project's instructions
So that every session knows where the docs are, add this to the file your agent reads at the start, such as AGENTS.md or CLAUDE.md:
## Menhir
This project uses Menhir, unstyled UI primitives for SolidJS 2.0. Before
using a Menhir component, read its docs:
- Index of every component: https://menhir-ui.com/llms.txt
- One component: https://menhir-ui.com/docs/components/<name>.md
Import each component from its own entry point, such as `menhir/switch`,
and style its parts through their data attributes, such as `data-checked`.Keep a copy
For an agent without web access, save a component's Markdown in your project and point it at the file:
curl -o menhir-switch.md https://menhir-ui.com/docs/components/switch.mdA saved copy does not follow new releases; fetch it again when you update menhir.