/wardley-maps-modeler:owm-dslfrom Wardley Maps Modeler
Provides the OWM text format grammar for Wardley Maps (.wmap/.owm files): coordinates, suffixes, diagnostics, share links. Use when reading, writing, editing or validating these files.
Ships in Wardley Maps Modeler. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
.wmap / .owm).wmap and .owm files are plain text in the Online Wardley Maps (OWM) DSL, read and written by
@miragon/wardley-dsl. It is line-based: one
statement per line, names may contain spaces, indentation does not matter. A map is a flat list of
config lines, element declarations, evolve lines and links, plus one nested form: the pipeline
block { … }.
The file is the map. The Wardley Maps Modeler (the web app
https://wardley-maps.modeler.miragon.io, the VS Code extension
miragon-gmbh.wardley-mapping-modeler and Miragon AI Design) renders whatever the file says.
Your job is to write correct text into the .wmap / .owm file. Never draw the map yourself
(no SVG, HTML, React or image): the Modeler does that, and a hand-drawn picture cannot be edited.
Two properties make the format safe to generate, each with a sharp edge:
parseDSL never
throws). An unreadable or unknown line is kept verbatim (rawPassthrough) and written back, so a
mistake never destroys the rest of the map. Whenever the parser cannot use a line, or drops,
ignores or renames text, it emits a diagnostic: compnent X [0.5, 0.5] gives
Unknown statement "compnent". But diagnostics stop nothing. The Modeler opens the map anyway:
the web app shows an "Imported with N warnings" toast and lists the findings under the problems
pill, and VS Code underlines the lines and lists them in the Problems view. Nothing makes the
user look, so a typo leaves a component or link off the map unless you read diagnostics
yourself, and a few mistakes give no diagnostic at all (see "Rules that bite").serializeDSL(parseDSL(t))
produces canonical text. Parsing and serializing that text again gives byte-identical text and
the same map, for every input. Text you write in canonical form comes back unchanged. But the
first save drops whatever the diagnostics reported as ignored, and moves comments, unknown lines
and unresolved links to the end of the file.Scope: this skill is about the format. Where a component belongs, how evolved it is and what a
good map says is the wardley-mapping skill's job.
| Line | Meaning |
|---|---|
title <free text> | Map title. Absent ⇒ Untitled Map. |
style wardley|handwritten|colour|dark | Visual style. Optional. |
size [width, height] | Plot size in whole px. Default 1080 × 680, 480 × 320 to 5000 × 5000. |
evolution <g>-><c>-><p>-><u> | Exactly four x-axis stage labels, renaming the four stage bands. |
y-axis <label> or <label>-><bottom>-><top> | Y-axis label, optionally with its end labels. |
annotations [vis, mat] | Position of the annotation legend (kept; the Modeler draws no legend box). |
anchor <Name> [vis, mat] (color …) label [dx, dy]
component <Name> [vis, mat] (market, ecosystem, build|buy|outsource) inertia (color …) label [dx, dy]
note <Text> [vis, mat] (color …)
annotation <n> [vis, mat] <text>
annotation <n> [[vis, mat], [vis, mat], …] (color …) <text>
pipeline <Name> [matStart, matEnd] (color …) (y <vis>)
pioneers [vis1, mat1, vis2, mat2] (color …) also: settlers, townplanners
accelerator <Name> [vis, mat] (color …) also: deaccelerator
submap <Name> [vis, mat] (color …) url(<Def>)
url <Def> [<address>]
line [[vis, mat], [vis, mat], …] (closed) (dashed|dotted) (color …)
evolve <Name> <targetMat> (build|buy|outsource) label [dx, dy]
evolve <Name>-><New Name> <targetMat>
| Keyword | Draws | Notes |
|---|---|---|
anchor | The user / customer (person icon) | Top of the map. Link endpoint. |
component | A capability (circle) | The workhorse. Link endpoint. |
note | Free text, centred on its coordinate | Review feedback with (color …). Not a link endpoint. |
annotation / annotations | Numbered marker with text beside it / legend position | Prefer note for new feedback. |
pipeline | A dashed box spanning a maturity range | Needs a range, see "Rules that bite". |
evolve | Red dashed arrow to the target maturity, same height | Refers to an existing component by name. |
pioneers settlers townplanners | Translucent team region between two corners | Drawn behind everything. |
accelerator / deaccelerator | Market force that speeds up / slows down evolution | Link endpoint. |
submap | A component that stands for another map | Link endpoint; url(…) points at the other map. |
url | A named address, referenced by url(<Def>) | Must be referenced; see "Links between maps". |
line | Freeform polyline / polygon | Modeler extension. |
market / ecosystem | Legacy for component … (market) / (ecosystem) | Rewritten as component on save. |
build / buy / outsource <Name> | Legacy: sets the method on an existing component | Rewritten as a (…) decorator on save. |
component Kettle [0.43, 0.6]
pipeline Kettle [0.25, 0.92]
{
component Campfire Kettle [0.3]
component Electric Kettle [0.82] (buy)
}
A pipeline named like a component is anchored to it and takes its height. Block children carry
one number, their maturity, and inherit the pipeline's height. They are ordinary components:
link to them, evolve them.
{ may also end the pipeline line, and a block may sit on one line
({ component Campfire Kettle [0.3] }). Canonical text puts {, each child and } on lines of
their own. Inside a block only component <Name> [maturity] lines are children. Any other line is
an ordinary statement and moves out of the block on save.
<From> -> <To> dependency: From needs To (From sits above To)
<From> -> <To>; <annotation> with a label at the midpoint
<From> +> <To> flow, arrow From → To
<From> +<> <To> flow in both directions
<From> +< <To> flow To → From (saved as To +> From)
<From> +'<value>'> <To> flow with a value, e.g. +'£5'>; also +'<value>'<>
Endpoints are referenced by exact name: anchors, components (including pipeline children),
accelerators, submaps and standalone pipelines. Notes, annotations, regions and drawings are
never endpoints. One hop per line: A -> B -> C is not a chain.
Read only after the coordinates, so parentheses, (color …) or the word inertia inside a
name or text are just text. Anything a statement cannot hold is dropped with
Ignored text after the coordinates: a label [dx, dy] on a note, (buy) on an anchor, a stray
word. When a suffix is repeated, the first one counts.
| Suffix | Allowed on | Meaning |
|---|---|---|
(build) (buy) (outsource) | component, pipeline child, evolve | Sourcing method, shown under the label. |
(market) (ecosystem) | component, pipeline child | Market (three dots) / ecosystem (dotted ring) symbol. |
combined (market, buy) | component, pipeline child | Comma-separated in one pair of parentheses. |
inertia | component, pipeline child | Resistance to change (bar right of the circle). |
(color #rrggbb) | every element line | Colour; hex (3–8 digits) or a CSS colour name. |
label [dx, dy] | anchor, component, pipeline child, evolve | Label offset in pixels, x first. |
url(<Def>) / url(https://…) | component, submap | Link target; a named url line or a literal web address. |
(y <vis>) | pipeline | Pipeline height; needed when no component shares its name. |
Canonical component suffix order:
(market, ecosystem, buy) inertia (color …) label [dx, dy] url(…).
// to end of line and /* block */ (may span lines). Both are stripped from the map and kept in
rawPassthrough, which means they move to the end of the file on save.
[visibility, maturity]: visibility first. This is [y, x], the opposite of the usual
[x, y]. Swapping them mirrors the map and produces no diagnostic.1 = top, visible to the user · 0 = bottom, invisible infrastructure.0 = genesis, left · 1 = commodity, right.0…1, dot decimals (0.35, .35; no 1e-3, no 0,35). Out-of-range values are clamped
with a diagnostic. Written back rounded to 3 decimals, trailing zeros dropped (0.80 → 0.8).pipeline [matStart, matEnd] (both maturity), a block child [mat], regions
[vis1, mat1, vis2, mat2], evolve <Name> <mat> (one maturity), and label [dx, dy] / size
in pixels.| Stage | Maturity |
|---|---|
| Genesis | 0 – 0.17 |
| Custom-Built | 0.17 – 0.40 |
| Product (+rental) | 0.40 – 0.70 |
| Commodity (+utility) | 0.70 – 1 |
A value on a boundary belongs to the stage on its right (0.40 is Product). The boundaries are
fixed for text maps; evolution renames the four bands but never moves them.
At the default size, 0.1 maturity ≈ 108 px and 0.1 visibility ≈ 68 px. A component is a 30 px
circle with its label to the right (≈ 7 px per character).
visibility 0.90–0.97 anchor(s), the user
0.70–0.88 what the user touches directly
0.35–0.65 the supporting capabilities
0.05–0.30 infrastructure, utilities
Δmaturity ≥ (7 × label characters + 40) / 1080, about 0.1 for a
10-character name. Neighbours in one column: Δvisibility ≥ 0.06. When a row is crowded, stagger
heights instead of squeezing names.0.06 above or below the component they
comment on, same maturity, and keep them under ~40 characters.label [dx, dy], dx ≈ −(7 × characters + 45).reference/layout.md has the geometry, pipeline and region sizing, a full worked map and the note
colour table.
title; then style, size, evolution, y-axis, annotations if
needed; then url lines named <Element> URL, one per element and in element order, each
referenced as url(<Element> URL); then element lines (anchors, components, notes, …, in the
order you like); then pipelines with their blocks; then evolve lines in the same order as
their components; then all links.anchor per user, at the top.wardley-mapping skill decides where things belong); add
(build|buy|outsource), (market), (ecosystem) and inertia after the coordinates.evolve lines for expected movement, then links last, one block, top-down.evolve name must
match a declared name character for character.A complete, canonical map:
title Coffee Subscription
anchor Coffee Drinker [0.95, 0.5]
component Monthly Box [0.84, 0.5]
component Roast Selection [0.68, 0.3] (build)
component Subscription Billing [0.6, 0.72] (buy)
component Roastery [0.45, 0.37] inertia
component Parcel Delivery [0.3, 0.82] (outsource)
note Our differentiator [0.74, 0.3] (color #0B7A55)
evolve Roastery 0.55 (outsource)
Coffee Drinker -> Monthly Box
Monthly Box -> Roast Selection
Monthly Box -> Subscription Billing
Monthly Box -> Parcel Delivery
Roast Selection -> Roastery
Names are exact references: case-, space- and punctuation-sensitive. user -> kettle does
not reach User / Kettle, and A B (two spaces) is not A B. An unresolved link gives
Link: "…" not found, is moved to the end of the file, and does not exist on the map. Linking
to an undeclared or commented-out component is the most common defect in real-world maps.
A pipeline needs a range or block children. pipeline X with neither is not drawn, and links
to X are not found (both diagnosed). Commented-out coordinates (pipeline X // [0.4, 0.7]) and
an empty block { } count as neither. An empty or reversed range ([0.8, 0.2], [1, 1]) is
widened to a 0.05 wide range, with a diagnostic.
Each statement reads only its own suffixes after the coordinates. A note's text and a
pipeline's name end at the coordinates. Notes and pipelines have no label offset:
note Risk [0.5, 0.3] label [10, 10] loses label [10, 10] on save, with
Ignored text after the coordinates. (color …) counts only after the coordinates (on an
annotation, directly after the position). Inside a text it is plain text.
A name may hold a line break, written as a literal \n (component Customer\nPortal [0.6, 0.4]),
like the text of a note. Every line that refers to the name writes the same \n
(Customer\nPortal -> Payments, evolve Customer\nPortal 0.8), and a name with the break is a
different name from the same words with a space. A real backslash followed by n reads as a
line break too.
Duplicate names are renamed when read. A repeated name becomes Name 2, Name 3, with a
diagnostic, across anchors, components, pipeline children, accelerators and submaps: an anchor
Tea and a component Tea give Tea 2. Links bind to the first. A pipeline may share its
component's name. Give every element its own name.
A link whose first word is a statement keyword needs both names declared. Title Search -> X,
Line Manager -> X and Y-axis Tool -> X are links only when both endpoints are declared
somewhere in the file. Otherwise the line is that statement. Most such misreads are diagnosed,
but Title Search -> X without a declared Title Search silently replaces the map title. The
keywords are title, style, size, evolution, evolve, annotation, annotations, line
and y-axis.
Keep these out of names:
; starts a link annotation;// and /* start a comment, so the line can no longer be read;[n, n] is read as the coordinates.->, +>, +<, +' and a leading { would break link and block lines. They are rewritten
when read (→, +, {), with a diagnostic.
evolve matches the component name exactly. Parentheses and numbers stay part of the name
(evolve Tea (green) 0.8, evolve Web 2.0 0.8). Write the method after the target
(evolve Tea 0.8 (buy)). evolve works on components only (not anchors), and a second evolve
for the same component replaces the first.
Some mistakes give no diagnostic. Swapped coordinates ([maturity, visibility]) mirror the
map. A typo inside the coordinates ([0.55. 0.18]) makes a later tuple the position (a label
offset, say) and the rest part of the name. A url <Def> [address] line that nothing references
stays unused. Check these by eye.
Blank lines are dropped and comments move to the end of the file. Do not rely on either for
structure; use a note for anything that must stay next to a component.
Dependencies have no arrowhead. Direction comes from the value chain: write Parent -> Child
with the parent higher up.
Change only what was asked and keep every other line byte-identical: unknown lines, comments, colours, label offsets and coordinates the user set by hand all round-trip. Append new lines instead of re-sorting existing ones; review notes go at the end of the element lines (or simply at the end of the file).
Renaming a component means updating every reference: its link lines, its evolve line, and a
same-named pipeline. A missed reference does not fail loudly: the map still opens, the link
just disappears, and only a Link: "…" not found diagnostic tells.
When the user edits a map graphically, the Modeler rewrites the whole file: element lines grouped
by kind (team regions, pipelines, notes, components, anchors, annotations), then evolve lines and
links, comments at the end, legacy forms normalised. Expect that diff; do not fight it or restore
the old order by hand.
A component or a submap links to another map file, or to a web page, through a named address:
a url <Def> [<address>] line, referenced as url(<Def>) after the element's coordinates. That is
how a large map becomes an overview plus detail maps the user clicks through (the
wardley-mapping skill says when to split a map and how to lay out the set).
title Online Grocery
url Meal Planner URL [details/meal-planner.wmap]
url Fulfilment URL [details/fulfilment.wmap]
anchor Household [0.95, 0.4]
submap Meal Planner [0.75, 0.22] url(Meal Planner URL)
component Fulfilment [0.6, 0.35] (build) inertia url(Fulfilment URL)
evolve Fulfilment 0.5 (buy)
Household -> Meal Planner
Household -> Fulfilment
An address without a scheme is a path relative to the folder of the map file that holds the
url line, taken literally:
| Written in | Address | Names |
|---|---|---|
maps/online-grocery.wmap | details/fulfilment.wmap | maps/details/fulfilment.wmap |
maps/online-grocery.wmap | pricing.wmap or ./pricing.wmap | maps/pricing.wmap |
maps/details/fulfilment.wmap | ../online-grocery.wmap | maps/online-grocery.wmap |
maps/details/fulfilment.wmap | meal-planner.wmap | maps/details/meal-planner.wmap |
What a relative address may hold:
/ between folders, and the file's exact case: Linux tells Payment.wmap from payment.wmap,
so a link that works on a Mac can fail there. No leading / and no backslash: write the path
from the map's own folder.my map.wmap works as typed, and my%20map.wmap
looks for a file with %20 in its name.[, ] or line break. The url line is one line that ends at its ], and the Modeler's link
editor strips brackets from an address it saves..wmap or .owm file. The VS Code extension opens no other file, and none outside the
workspace.Of the addresses with a scheme, https://… and http://… open in the browser and mailto:… in
the mail app. Every other scheme (javascript:, data:, file: …) is kept in the file but never
opened. The parser checks none of this, so a link to a missing file gives no diagnostic; check the
set with the link script in reference/api.md.
Write one definition per linked element, named <Element> URL, after the config lines and in
element order, and reference it as the last suffix: component X [..] (buy) inertia url(X URL).
That is the canonical form, so a round trip returns your file unchanged. Another name works too
(url Pay [details/payment.wmap] with url(Pay)) and the Modeler's own edits keep it, but
serializeDSL renames it <Element> URL. A definition name holds no (, ), [ or ].
A literal url(…) takes only an address that starts with a scheme and ://, in practice a web
page: url(https://example.com/pricing). A relative address or a mailto: always needs its own
url line: url(details/fulfilment.wmap) is read as the name of a definition, gives
url(details/fulfilment.wmap) has no matching "url details/fulfilment.wmap [address]" line: ignored,
and the link is lost on save.
Both carry a link and both are link endpoints. A submap draws a double square, which says "there
is a map behind this", but it takes only (color …) and url(…): (build|buy|outsource),
(market), inertia and label [dx, dy] are dropped with Ignored text after the coordinates,
and evolve cannot move it (evolve: component "X" not found). A component … url(…) keeps all of
those and looks like any other component; its link shows in the context pad. Use a submap for an
element that stands for its detail map, a component when the map must also show that element's
sourcing, inertia or movement. A submap without url(…) is drawn but leads nowhere, and no
diagnostic says so. An anchor cannot carry a link: url(…) on it is dropped with a diagnostic.
The file always keeps the link; whether a click follows it is up to the host that renders the map.
The VS Code extension does: Open link in the context pad opens the linked map in its own tab,
and Link to map… picks another map of the workspace and writes its relative address. It opens
only .wmap / .owm files inside the workspace and names the address when it refuses one. The web
app does not: it opens a single file, knows no folder, and says that it cannot follow the link. A
#mz= share link carries one map, never the maps it links to, so hand over a linked set as files.
Other hosts, Miragon AI Design included, follow a relative link only if they implement it
(reference/api.md, "Links in a host"). Web links open in the browser, mailto: in the mail app.
Every element line has its coordinates as [visibility, maturity], both in 0…1.
Every name is unique, and every link endpoint and evolve name matches a declared name exactly.
Every pipeline has [start, end] or block children; block children have one number.
After the coordinates come only the statement's own suffixes (on a note (color …), on a
pipeline (color …) and (y …)).
No name contains ;, //, /*, [n, n], ->, +>, +< or +'. A link that starts with a
statement keyword has both names declared.
Review notes use the palette hexes from reference/layout.md.
Every url(<Def>) has its url <Def> [address] line, and every url line is referenced. A
relative address names an existing .wmap / .owm file, from this map's folder, in the file's
exact case.
If you can run Node, run the recipe in reference/api.md. It checks that:
diagnostics is empty;rawPassthrough holds nothing but comments;A difference between your text and its canonical form on a link, title or element line means
content was lost, not reformatted. For maps that link to each other, also run the link check in
reference/api.md on their folder.
Miragon AI Design and the VS Code extension read the file you wrote; nothing else to do.
In VS Code (miragon-gmbh.wardley-mapping-modeler) .wmap / .owm open in the graphical editor;
View: Reopen Editor With… → Text Editor shows the text, and edits in a split text view
re-render live. Diagnostics are underlined in the text and listed in the Problems view; the
problems pill bottom left in the diagram counts them and opens the view. The map opens either
way, so check the file before you hand it over.
Web app (https://wardley-maps.modeler.miragon.io): Menu → Open… or drag and drop the
file. Diagnostics appear as an "Imported with N warnings" toast and are listed under the
problems pill bottom left and in the browser console. Or hand the user a share link: the map
itself, deflate-raw compressed and base64url-encoded (no padding) behind #mz=:
node -e "const fs=require('fs'),zlib=require('zlib');const text=fs.readFileSync(process.argv[1],'utf8');console.log('https://wardley-maps.modeler.miragon.io/#mz='+zlib.deflateRawSync(Buffer.from(text,'utf8')).toString('base64url'))" map.wmap
That is exactly the web app's own encoding: links built this way decode byte-identically.
Uncompressed #m=<base64url> links are still read. A share link carries the whole map: long
maps make long URLs, and anyone with the link can read the map.
reference/grammar.md: the exhaustive spec. Every statement and suffix with its model
element, line classification and precedence, comments, escaping, id allocation, serializer order
and canonicalisation, and the full diagnostics catalogue including the silent cases.reference/layout.md: canvas geometry in pixels and map units, spacing rules, label offsets,
pipelines and team regions, review-note placement, the note colour table and a full worked map.reference/api.md: the programmatic API (parseDSL, parseDSLWithDiagnostics, serializeDSL,
the JSON bridge), the WardleyMap model, a validation script for generated text, a link check
for a folder of linked maps, how a host follows links, and the share-link encoder/decoder.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 skills in this plugin
Other plugins' skills for the same job
npx claudepluginhub miragon/modeler-suite --plugin wardley-maps-modeler