# UJN documentation UJN 0.1 draft · revision 23 · November 29, 2026 ## Give your assistant the primer The primer is short, about 2,400 words: the nine kinds, the arrows, the flags, the common warnings and two worked examples. Paste it into your AI assistant before you ask it for a journey. - The primer: primer.md - llms.txt: llms.txt - llms-full.txt: llms-full.txt - Model schema: downloads/ujn-model-v5.schema.json - Agent Skill: .well-known/agent-skills/ujn-journeys.tar.gz - Assistants do not know UJN yet: give them the primer first. - We have not measured how often assistants write UJN without mistakes. - A drawing with no warnings can still describe the wrong journey: the checks catch broken structure, not wrong intent. ## For people - [What UJN is, and is not](https://ujn.b2bedge.com/docs-about.html): The problem UJN solves, the three outputs of one file, and what its checks cannot catch. - [How to read a UJN drawing](https://ujn.b2bedge.com/docs-read.html): Every shape, arrow and flag, pinned on the checkout journey. For readers who will never write UJN. - [Your first journey](https://ujn.b2bedge.com/docs-tutorial.html): Build the checkout step by step, with its drawing after each step. About 10 minutes. - [Recipes](https://ujn.b2bedge.com/docs-recipes.html): Three common tasks: the user leaves the app and comes back, a form error and a retry, and steps marked planned, idea or legacy. - [Cheat sheet](https://ujn.b2bedge.com/docs-cheatsheet.html): One printable page: the nine node kinds, the arrow forms, the eleven flags, the id rules and the common warnings. - [Glossary](https://ujn.b2bedge.com/docs-glossary.html): Short definitions of the words UJN uses, such as handle, trigger, guard, pill and resume. ## Reference - [The spec](https://ujn.b2bedge.com/spec.html): The whole language on one page: every statement, key, default and warning, in sections 1 to 23. - [Model reference](https://ujn.b2bedge.com/docs-model.html): Every key of the JSON model the module writes, for the tools and tests that read it. - [Command line](https://ujn.b2bedge.com/docs-cli.html): Draw a journey, write its model and fill unique ids. Local build only. - [Changes](https://ujn.b2bedge.com/docs-changes.html): What each revision of the spec changed, newest first. - [Give feedback](https://ujn.b2bedge.com/docs-feedback.html): What helps most, the open questions, and where to send feedback once the repository is public. ## Use UJN today Works now: - Write journeys by hand, or with an assistant you have given the primer. - Read and edit the samples in Try it, drawn as they were when the site was built. - Sketch with the draw.io shape library on the Goodies page: a picture, with no checks and no model. Not yet: - No public build to install: every command in these docs is labeled local build only. - Drawing your own edits in Try it needs the local render server, which is not public. - No public repository and no feedback channel. Planned: - A public build of the PlantUML module. - A Mermaid extension. - GitHub issues for feedback, once the repository is public. ## For your AGENTS.md or CLAUDE.md ```text ## UJN journeys - UJN (UI Journey Notation) 0.1 is a draft. Read the primer before you write a journey: /primer.md. Where the primer and the spec differ, the spec wins. - A journey is plain text from `@startujn` to `@endujn`. Write it as the spec's examples do, one statement per line. - Nodes: `keyword handle [ID] { key: value }`. Arrows: `from --> to : [Trigger] guard { payload: [a, b] }`. - Give a node that other files link to `unique_id: {{auto}}`, and let `-populate_ids` fill it (local build only). - Never invent a unique id, and never link to a display id. - The module that draws and checks UJN is not public yet. If the UJN setup installed its test build on this computer, draw and check with it; never pass it on or tell anyone else to install it. ```