Using Momo with AI
The whole documentation as plain text, in the form coding assistants read best. Point your assistant at one file and it writes Momo markup that works.
The two files
| File | What is in it | Use it when |
|---|---|---|
llms.txt | A list of every page with one line about each, and a link | The assistant can open links by itself and only needs a map |
llms-full.txt | Every page in full: the text, every example's markup, every reference table | You want it to know all of Momo at once |
Both are made from these docs each time Momo is built, so they always match the version you are reading.
How to use them
- In a chat: paste the address of
llms-full.txt, or attach the file, and ask for what you need. - In a coding assistant: add the address to your project's instructions file, so every session starts with it.
- For one component only: the full file is long. Copy just that page's part: each one starts with its title and ends with a "Source" line.
We use Momo UI (momo-neobrut-ui@0.9.1) for the interface.
Its documentation is at https://momo.moey.dev/docs/llms-full.txt
Use only classes and data-momo attributes that appear there.
Icons are Moey Icons: <i class="mi mi-name"></i>.Prompts that work well
- "Build a settings page with Momo UI: a horizontal form with name, email and a plan dropdown, validated, with a Save button that shows a toast."
- "Turn this table into a Momo data table with search and paging. Keep my column names."
- "Here is my markup. Which Momo classes are wrong or do not exist?"
- "Make this page work on phones using Momo's own classes. Do not write new CSS."
Check what you get
- Assistants sometimes invent class names that sound right. If something has no style, look the class up here: the search (Ctrl + K) finds every page.
- Ask it to name the page each piece came from. A wrong answer usually cannot.
- Momo has no
.btn-primary: the main button is.btn-brand. This is the most common slip. - Keep the accessibility basics yours: labels, alt text, headings. See Accessibility.