/team-topologies-modeler:tt-formatfrom Team Topologies Modeler
Documents the .tt/.ttm.json file format used by the Team Topologies Modeler: fields, coordinates, layout conventions, and a bundled validation checker. Use when reading, writing, laying out, or validating these diagram files.
Ships in Team Topologies 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; scripts run unread.
.tt / .ttm.json formatA Team Topologies diagram is one small JSON document. The
Team Topologies Modeler opens and saves it in
the web app, the VS Code extension (miragon-gmbh.team-topologies-modeler) and designIQ; the
reference implementation is
@miragon/team-topologies-schema-model
(parseDocument, serializeDocument). .tt and .ttm.json are the same format.
Two properties shape how you write it:
source/target: get the geometry wrong and the relationship is wrong.Scope: this skill is the format and the drawing. Which team types and interaction modes an
organisation needs, and how to critique a topology, is the team-topologies skill's job.
{
"version": 3,
"title": "Online shop team topology",
"nodes": [],
"interactions": [],
"flows": [],
"annotations": []
}
version is always 3. annotations may be left out when empty (the modeler does). Every element
has an id, a position { "x", "y" } and a size { "width", "height" }.
nodes: teams| Field | Required | Value |
|---|---|---|
id | yes | non-empty string, unique across all four arrays |
type | yes | stream-aligned | enabling | complicated-subsystem | platform |
label | yes | the team's name, drawn centred in the shape (may be "") |
description | no | purpose in a sentence; shown only in the inspector, never on the canvas |
fill | no | hex override (#rgb / #rrggbb); leave out to keep the official colour |
stroke | no | hex override, same rule |
type | Shape | Default w × h | Minimum w × h |
|---|---|---|---|
stream-aligned | horizontal rounded rectangle | 240 × 96 | 140 × 64 |
enabling | vertical rounded rectangle | 120 × 200 | 80 × 120 |
complicated-subsystem | octagon | 170 × 150 | 110 × 100 |
platform | square-cornered rectangle | 380 × 130 | 200 × 90 |
interactions: interaction modes| Field | Required | Value |
|---|---|---|
id | yes | unique |
mode | yes | collaboration | x-as-a-service | facilitating |
label | no | a few words on what is shared (fraud rules, CI/CD); small, centred |
fill | no | hex override |
stroke | no | hex override |
mode | Glyph | Default w × h | Minimum w × h | Direction |
|---|---|---|---|---|
collaboration | parallelogram | 112 × 72 | 60 × 44 | none |
x-as-a-service | triangle | 88 × 78 | 54 × 48 | tip always up: base = provider, tip = consumer |
facilitating | circle | 84 × 84 | 48 × 48 | none |
flows: flow of changeid, optional label (default text Flow of change), position, size. A dashed arrow that
always points right; default 520 × 64, minimum 160 × 36. No colour fields. It anchors the
left-to-right reading of the diagram; use one per stack of lanes (several business areas:
reference/layout.md).
annotations: text notesid, text, position, size, optional attachedTo (the id of a team, interaction or flow, not
another annotation). Drawn as a left bracket with top-left-aligned, wrapped text; attachedTo adds a
dashed connector to that element. Default 200 × 64, minimum 60 × 30. No colour fields.
position is the top-left corner of the element's bounding box, in pixels; y grows
downwards. Centre = x + width / 2, y + height / 2.An interaction relates exactly the two teams its bounding box overlaps. Place it on the gap between them, overlapping each by roughly 10–20 px:
x = (A.right + B.left) / 2 − w / 2, y = centre of the vertical overlap of A and B − h / 2.y = (A.bottom + B.top) / 2 − h / 2,
x = centre of the horizontal overlap of A and B − w / 2.X-as-a-Service has a fixed direction. The triangle cannot be rotated; its tip points up at the
consumer and its base sits on the provider. So the provider must be below the consumer, which
is why the platform goes underneath the stack of stream-aligned lanes. One triangle into the lowest
lane is enough: by convention a platform directly under a stack of stream-aligned lanes serves
every lane of that stack, and the checker reads it that way. A gap over 60 px, a lane that does
not overlap the platform horizontally at all, or another team between two lanes breaks the stack
(reference/layout.md). A triangle between two side-by-side teams has no readable direction.
Back to front: flows → stream-aligned and platform → complicated-subsystem → enabling →
interactions → annotations. Within one tier, elements stack in file order, and a save sorts
every array by id. That matters only for groupings:
id that sorts
after the container's. Give containers ids that sort first, e.g. grp_platform before
team_*.Team, interaction and flow labels are centred and word-wrapped; annotation text flows from the top
left. Capacity per line is about textWidth / (0.58 × fontSize) characters (font size 13.5 for
teams, 11 for interactions and flows, 12 for annotations), with a line height of 1.2 × font size.
textWidth is width − 20 for teams and interactions, width − 20 − min(0.16 × width, 1.1 × height) for flows (the arrowhead holds no text) and width − 16 for annotations.
CI/CD, scoring). The checker measures the triangle, not its
box.(width − 16) × (height − 12): (width − 16) / 6.96 characters
per line, 14.4 px per line, so height = 14.4 × lines + 12. Word wrap breaks early: plan one
line more than characters / capacity. A 200 × 64 note holds ~3 lines of ~26 characters.A real line break is written \n inside the JSON string. Keep interaction labels to one or two
words; put explanations into annotations.
Any non-empty string, unique across nodes, interactions, flows and annotations together; a
duplicate breaks the import. A few ids belong to parts of the diagram the file never lists, so no
element may use them: tt-root (the diagram itself), ids starting with __implicitroot, and
assoc_<annotation id> (the connector of that annotation). Nor may an id name a built-in property
of JavaScript objects (constructor, toString, __proto__, …). Because a save sorts by id
and diffs anchor on it, use stable, descriptive ids rather than random ones:
team_<name> (team_checkout), groupings grp_<name>int_<a>_<b> (int_platform_checkout)flow_<name>, annotations ann_<topic> (review notes: ann_review_<n>)team-topologies skill). Write it down as a short list before touching coordinates.reference/layout.md: flow of change on top, stream-aligned teams
stacked as parallel lanes below it, enabling teams at the left side spanning exactly the lanes
they facilitate, complicated-subsystem teams to the right of the lane they collaborate with
(or, once they provide X-as-a-Service, under an extension of that lane), and the platform below
the stack. Several business areas sharing one platform stay in one stack. Never put
stream-aligned teams side by side or staggered along the flow; that reads as a hand-off from
one to the next.--write to save the canonical form..tt / .ttm.json as a diagram; the web app
(https://team-topologies.modeler.miragon.io, Menu → Open…, or drop the file onto the page)
opens .tt, .ttm.json and .json files; with designIQ use create_model /
save_model_content, then open_team_topology_modeler.Change only what was asked. Keep ids, positions and sizes the user set by hand; append new elements
instead of re-laying out the whole diagram. Renaming a team changes only its label; nothing
references labels. Deleting a team means also deleting (or re-placing) the interactions that
overlapped it and the annotations attachedTo it. Moving a team means moving its interactions too.
scripts/check.mjs needs only Node (≥ 18), no install:
node ${CLAUDE_SKILL_DIR}/scripts/check.mjs diagram.tt # check, exit 1 on errors
node ${CLAUDE_SKILL_DIR}/scripts/check.mjs diagram.tt --write # …and save the canonical form
node ${CLAUDE_SKILL_DIR}/scripts/check.mjs a.tt b.ttm.json --strict # warnings fail too
(Inside the modeler repository the script is at
plugins/team-topologies-modeler/skills/tt-format/scripts/check.mjs.)
It reports:
type/mode, non-hex colours, non-positive sizes, duplicate or reserved ids, a
non-array collection, an interaction without position/size, objects and arrays nested more
than 100 levels deep (the document counts as the first; only unknown fields can get there; it
names the first 100 such places, as the modeler does);attachedTo pointing nowhere; a missing title or a version other than 3;x-as-a-service "Cloud Platform" → "Checkout",
collaboration "A" ↔ "B"), grouping and annotation, plus one line per lane a platform serves
through the stack, bottom-up
(x-as-a-service "Cloud Platform" → "Product Discovery" (stacked above "Order Fulfilment")).
This is how you "see" the diagram: compare it with what you meant to draw.A clean run ends with OK: no errors, no warnings.
What the modeler writes on save, and what --write produces: keys in schema order
(version, title, nodes, interactions, flows, annotations; per element id, type/mode,
label/text, position, size, then optional fields, then fields the modeler does not know,
sorted by name), every array sorted by id, numbers rounded to 2 decimals, empty optional strings
and an empty annotations array left out, two-space indentation and a line break at the end of the
file. Writing canonical files keeps diffs minimal when the user later saves from the editor.
version is 3; every element has a unique id, a position and a positive size.type and mode values are spelled exactly as in the tables; colours (if any) are hex.reference/layout.md: the stacked-lane grid with exact numbers, lane order, annotation slots,
what serves and what breaks the platform stack, a subsystem as a service (and on the platform),
several business areas with a shared or separate platforms, groupings, a complete worked diagram
with its checker output, and wrong/right pairs.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub miragon/modeler-suite --plugin team-topologies-modeler2 skills in this plugin