Skip to content

Map schema

The machine-readable schema is schemap.schema.json (in the skill’s references/ folder, and generated from the Zod schema in packages/schema). Every object is strict: unknown fields are errors. Ids match ^[A-Za-z0-9][A-Za-z0-9_.-]*$.

There are no size limits: any number of nodes, edges, rows or stats, and text of any length. Cards wrap long text and grow to hold everything, so put in what the user needs and nothing is cut off.

field type notes
$schema string optional path or URL of the JSON schema
kind architecture | dataflow | workflow | lifecycle | sequence required
title string required
subtitle string
density "compact" architecture, dataflow only
direction RIGHT | DOWN architecture, dataflow only
source { url } base URL evidence files link under
groups Group[] architecture, dataflow only
lanes Lane[] required for workflow, lifecycle; not allowed elsewhere
phases Phase[] workflow, lifecycle (nodes), sequence (edges)
nodes Node[] (≥1) required
edges Edge[] required (may be empty)
views View[]
notes Note[]
field type notes
id id required, unique among nodes
type infra type or state type lifecycle uses state types, every other kind infra types
group group id architecture, dataflow
lane lane id required in workflow, lifecycle
card Card required
description string inspector only
evidence { file, line?, note? }[] inspector only

Infra types: client, gateway, service, database, cache, queue, storage, external, security. State types: start, active, waiting, decision, success, failure, neutral.

field type notes
title string required; wraps
subtitle string wraps
tag string pill, mainly for compact cards
rows { label, value, mono? }[] any number; the card grows
stats { value, label }[] any number, three per line
link { label, href (URL) }

Compact cards show rows, stats and link too, under the title.

field type notes
id id required, unique among edges
from, to node id required
label string
kind sync | async | return default sync
tone main | security | error
  • Group: { id, label, parent?: group id, tone?: "security" }
  • Lane: { id, label, tone?: "exception" }
  • Phase: { id, label, nodes?: node id[], edges?: edge id[] }
  • View: { id, label, caption?, nodes: node id[] (≥1) }
  • Note: { title, items: string [] (≥1) }

Optional palette. See Theming for the keys and examples.