Design technical diagrams
Make one system relationship easier to understand as a picture. Inspect the
rendered artifact to prove that the diagram itself communicates at its
destination size; source validity and geometry checks only support that claim.
Evidence boundary
A technical diagram explains actors, systems, decisions, handoffs, state, or
sequence. It does not prove that the depicted system ran or that a user
interface looks or behaves correctly. Never use a diagram, wireframe, or mockup
in place of actual product screenshots, recordings, requests, responses, or
observed runtime state. When a PR needs both a system explanation and practical
proof, deliver them as separate artifacts and label the diagram as
What this explains, never What this proves.
Workflow
Define the diagram contract.
Record the claim, reader, destination size and medium, current or target
state, facts that must appear, and details that can remain prose. Default to
one diagram. Ask before producing a set whose views answer different
questions.
Trace the real system.
Identify actors, subsystems, inputs, stores, decisions, state changes,
outputs, authority boundaries, and feedback. A primary step should express
one actor performing one action or decision. Group related steps inside the
system or phase that owns them.
Choose topology before styling.
Read visual-system.md. Sketch two or three
low-detail arrangements that differ spatially, then choose the one that makes
the central relationship obvious at thumbnail size. Equal boxes imply equal
roles; use them only when that is true.
Render a wireframe.
Use realistic node proportions, short real labels, actual connector
directions, and reserved icon space. Inspect the picture. Redesign if the
start, focal system, decisions, feedback, or outcome is hard to locate.
Write for the named reader.
Load speak-fking-english before freezing visible copy. Name concrete
actors, actions, and objects. Define technical terms in place when the reader
must learn them. Use body copy only for facts position, grouping, and route
labels cannot carry.
Apply the visual system.
Use the product's type and palette when available. Search repository assets
and installed icon packages before drawing new icons. Pair icons and colour
with text. Reserve open gutters for simple, correctly directed connectors.
Add page chrome or a legend only when the destination genuinely needs it.
Validate the current render.
Read quality-gate.md. Inspect the whole frame,
destination size, magnified detail, required responsive widths, and every
export. For dense hand-authored SVG, optionally use
svg-linting.md after the visual composition
works.
Resolve feedback against fresh evidence.
Translate each comment into an observable acceptance check, fix the source,
rerender, and repeat the affected visual passes. Finish only when the current
render passes every check or the user accepts an exception.
Deliver
Lead with the diagram or export. Name the claim, source, destination-size proof,
responsive/export checks, and any open visual limitation. Do not present a zero
linter count as evidence that the diagram communicates well.
Copy diagram-page.html only for an explicitly
requested standalone page. Do not inherit its sample topology or surrounding
chrome for embedded diagrams.
1---2name: design-technical-diagrams3description: Create or refine architecture, lifecycle, sequence, trust-boundary, decision, threat-model, SVG, or HTML diagrams that explain system relationships. Do not use technical diagrams as product runtime or UI proof.4---56# Design technical diagrams78Make one system relationship easier to understand as a picture. Inspect the9rendered artifact to prove that the diagram itself communicates at its10destination size; source validity and geometry checks only support that claim.1112## Evidence boundary1314A technical diagram explains actors, systems, decisions, handoffs, state, or15sequence. It does not prove that the depicted system ran or that a user16interface looks or behaves correctly. Never use a diagram, wireframe, or mockup17in place of actual product screenshots, recordings, requests, responses, or18observed runtime state. When a PR needs both a system explanation and practical19proof, deliver them as separate artifacts and label the diagram as20`What this explains`, never `What this proves`.2122## Workflow23241. Define the diagram contract.2526 Record the claim, reader, destination size and medium, current or target27 state, facts that must appear, and details that can remain prose. Default to28 one diagram. Ask before producing a set whose views answer different29 questions.30312. Trace the real system.3233 Identify actors, subsystems, inputs, stores, decisions, state changes,34 outputs, authority boundaries, and feedback. A primary step should express35 one actor performing one action or decision. Group related steps inside the36 system or phase that owns them.37383. Choose topology before styling.3940 Read [visual-system.md](references/visual-system.md). Sketch two or three41 low-detail arrangements that differ spatially, then choose the one that makes42 the central relationship obvious at thumbnail size. Equal boxes imply equal43 roles; use them only when that is true.44454. Render a wireframe.4647 Use realistic node proportions, short real labels, actual connector48 directions, and reserved icon space. Inspect the picture. Redesign if the49 start, focal system, decisions, feedback, or outcome is hard to locate.50515. Write for the named reader.5253 Load `speak-fking-english` before freezing visible copy. Name concrete54 actors, actions, and objects. Define technical terms in place when the reader55 must learn them. Use body copy only for facts position, grouping, and route56 labels cannot carry.57586. Apply the visual system.5960 Use the product's type and palette when available. Search repository assets61 and installed icon packages before drawing new icons. Pair icons and colour62 with text. Reserve open gutters for simple, correctly directed connectors.63 Add page chrome or a legend only when the destination genuinely needs it.64657. Validate the current render.6667 Read [quality-gate.md](references/quality-gate.md). Inspect the whole frame,68 destination size, magnified detail, required responsive widths, and every69 export. For dense hand-authored SVG, optionally use70 [svg-linting.md](references/svg-linting.md) after the visual composition71 works.72738. Resolve feedback against fresh evidence.7475 Translate each comment into an observable acceptance check, fix the source,76 rerender, and repeat the affected visual passes. Finish only when the current77 render passes every check or the user accepts an exception.7879## Deliver8081Lead with the diagram or export. Name the claim, source, destination-size proof,82responsive/export checks, and any open visual limitation. Do not present a zero83linter count as evidence that the diagram communicates well.8485Copy [diagram-page.html](assets/diagram-page.html) only for an explicitly86requested standalone page. Do not inherit its sample topology or surrounding87chrome for embedded diagrams.