Create a new map
Use this when making, drafting or generating an onboarding map, or replacing the starter map. Read writing a map first; it defines the model and the loop this page relies on.
1. Understand the brief (ask if not given)
Section titled “1. Understand the brief (ask if not given)”- Who is onboarding, and what do they already know?
- What should they be able to do at the end? This becomes the
goal. - How long — days, weeks? This sets
labels.periodand the number of stages (typically 6–12). - Sources: which documents, repositories or pages to base it on. Read them; don’t invent facts a source should provide. Where you rely on general knowledge instead, say so.
2. Draft in this order, validating as you go
Section titled “2. Draft in this order, validating as you go”Build the file in passes; run npx onboarding-map validate --json after each.
- Header:
id(kebab-case, stable),version: '0.1.0',title,motto, thelabelsthat differ from the defaults, anddocumentsfor every source you used. - Kinds: 2–4 kinds that fit the subject.
- Goal: the finished thing, as 3–7 modules with dependencies. This is the spine — the stages exist to build it.
- Regions (
domains) and their categories, ordered so the route can travel clockwise. - Route nodes (
status: 'path'), each with astage,summary,docswhere a good public link exists, andrefsto the source. - Stages: for each module in dependency order, the stage(s) that build it — waypoints,
Do → Observe → Read, checkpoint,
delivers. - Territory:
alternativenodes for the choices made andcontextnodes for what’s worth recognising. Roughly 2–4× as many as route nodes. - Edges for relations that matter across regions.
3. Hand over
Section titled “3. Hand over”validatepasses with no errors, and you have addressed the warnings or explained why not.- Run
npx onboarding-map auditand tell the human what is still open (e.g. links markedTODO). - Tell them to run
npx onboarding-map devand walk the route; offer to adjust stages that feel too big.