LLMs.txt
mdui provides two files: llms.txt and llms-full.txt. These files give LLMs accurate, citable context to help them answer questions about mdui more reliably.
Use llms.txt to provide context to AI
Links:
llms.txt: https://www.mdui.org/en/docs/2/llms.txtllms-full.txt: https://www.mdui.org/en/docs/2/llms-full.txt
llms.txt is a short index. It is ideal for models that can browse the web. They can follow the links to retrieve the Markdown pages they need, or use the file as a quick project overview.
llms-full.txt contains the full context. It includes all page contents listed by llms.txt. Use it when the model cannot access the internet or when you prefer to provide everything in one file.
Markdown versions of the docs
Every documentation page has a Markdown version. Append .md to the page URL (append index.md for the home page).
Examples:
https://www.mdui.org/en/docs/2/components/button → https://www.mdui.org/en/docs/2/components/button.md
https://www.mdui.org/en/docs/2/ → https://www.mdui.org/en/docs/2/index.md
You can provide the Markdown URL or paste its plain text as context. This often leads to more focused, accurate answers.
How to use with ChatGPT, Claude, etc.
Choose a method based on whether the model can browse or upload files (you can also combine methods):
Paste directly: put the content of
llms-full.txtin the system prompt or the first message.Example: "Here is the mdui context. Answer strictly based on it. If there is a conflict, this context overrides it:\n\n[paste llms-full.txt here]".
Upload a file: upload
llms-full.txt(orllms.txt) and say in the first message: "Use the attachment as the main context".Example: "Based on the attached mdui docs, describe how to use
<mdui-button>and list common pitfalls."Read online: send a link to
llms.txtorllms-full.txt.Example: "Please load and use https://www.mdui.org/en/docs/2/llms-full.txt as context for my mdui questions."
Point to a specific page: if you only need one component or function, send that page’s Markdown URL.
Example: "Please read https://www.mdui.org/en/docs/2/components/button.md and provide three best practices based on it."
Tip: Click the llms-full.txt in ChatGPT as context.