This site is written for people and for language models. Every page exists as rendered HTML and as raw Markdown, and a few plain-text files gather the pages so an assistant can read them in one go. Nothing here is maintained by hand: the files are rebuilt from the documentation and from the code on every build. See Never stale.
Which file for which job
| File | What it holds | Use it when |
|---|---|---|
| llms.txt | The index: one line per page, each pointing to the raw Markdown of that page. | The agent can fetch URLs and should read only what it needs. |
| llms-full.txt | Every page in one plain-text file. | You paste the whole documentation into an assistant that cannot fetch. |
| llms-themes.txt | One self-contained document for writing a theme: the rules, the workflow, a complete example, the common errors, and compact lists of the tokens, contracts, nodes and CSS properties. | You want an agent to write or fix a theme. It needs nothing else. |
| theme.d.ts | The TypeScript types of theme.ts. |
The agent can read types, or an editor checks the theme as you type. |
| modding.d.ts | The TypeScript types of the mod, skin and map-script API. | The agent writes a mod, a skin script or a map script. |
Each text file exists in English and in French. The French files carry the same content; identifiers, file names and error messages stay in English in both.
Stable addresses
These addresses do not change from one release to the next. Link to them from your own tools.
/dev/llms.txt index (English)
/dev/llms.fr.txt index (French)
/dev/llms-full.txt every page (English)
/dev/llms-full.fr.txt every page (French)
/dev/llms-themes.txt the theme document (English)
/dev/llms-themes.fr.txt the theme document (French)
/dev/sdk/theme.d.ts types of theme.ts
/dev/sdk/modding.d.ts types of the mod API
On the main site the prefix is https://prism.am; on the developer site the same files are served without the /dev prefix, for example https://dev.prism.am/llms.txt.
Raw pages
Every page of the documentation is also served as the Markdown it was built from, with its front matter and its code blocks, without the site's navigation.
/dev/md/<slug>.md English, for example /dev/md/themes/quick-start.md
/fr/dev/md/<slug>.md French
<slug> is the path of the page after /dev/. The index llms.txt lists them all, so an agent never has to guess one.
How an agent should use them
- Start from the task. For a theme, give the agent llms-themes.txt and nothing else: it is complete on purpose. For anything else, give it llms.txt and let it fetch the pages it needs.
- Tell the agent to use only what is in the files. The game refuses every name, property and value that is not in its closed lists; an invented one is a rejected theme, not a warning.
- Ask for a folder, not a snippet: a theme is a folder with a manifest, tokens and optional files.
- Run the checker on what the agent wrote and give it the output. Each message names the file, the place and the reason, and is written to be acted on; see Reading an error.
- Repeat until the checker prints no problem. Then look at the theme in the game.
The checker is the same code the game runs:
cargo run -p modding --example check_theme -- path/to/themes
It exits with code 1 when there is any problem. A theme that passes it is valid; whether it is good-looking is for you to judge in the game.
Never stale
The files are produced by the site's build, never edited and never committed. Three kinds of content go into them.
- Authored pages, the ones people read, written in both languages with the same structure.
- Reference pages generated from the code: the tokens, the nodes, the contracts and the CSS allow-list. They are read from the contract files the game validates against, so a token, a screen or a property added to the game appears in them at the next build, without anyone editing a page.
- Compact blocks of the same data, embedded in llms-themes.txt at the places marked for them.
The theme examples that the pages show are real folders, checked against the real validator by the test suite. An example that stops being valid fails the tests instead of staying in the documentation.
Pages for a theme author
If the agent can fetch pages, these are the ones to give it for a theme.
- Themes: the map of the section.
- Quick start: a first theme in a few minutes.
- Concepts: what a theme is made of.
- Errors: how to read a message, and the catalogue of the common ones.
- Cookbook: small complete themes to start from.