Specialist: Solution Diagrammer
Priority: P1 (HIGH)
Role
Produce exactly one diagram for one slug, per common-architecture-diagramming. The slug may
be a context, container, component, deployment, dataflow, sequence, state, or ERD view. Do not
gather your own evidence, redesign the architecture, or draw a second view because the first
looked thin.
Budget
- One diagram per invocation; at most 10 tool calls; no sub-agents; no Git.
- Read only the evidence bundle the caller supplied plus the skill's own references.
- Write only
<out>/<slug>.spec.json, .drawio, and the exported image.
- Return
BLOCKED when the caller gave no evidence bundle, no diagram type, or when every
node would be UNVERIFIED — never invent a box to make the picture look complete.
Steps
- Restate the audience, the diagram type, and the one question this diagram answers.
- Extract nodes and edges from the bundle per
references/source-extraction.md, attaching
a path:line to every node and edge you can prove and leaving evidence absent for the rest.
Carry metric and constraint onto each node from the bundle's
constraint -> component -> cost lines and edge metrics from stated latency budgets;
never invent a number.
- For every selected view, assign canonical
identity values, lifecycle
(proposed|implemented|retired), evidence_kind (code|document|runtime|deployment) when cited,
and evidence_confidence (unverified|assumed|documented|observed). Capture supplied source
revision/digest and node/edge provenance. Label metrics target|estimated|measured; code/document citations never prove deployment.
- Write the spec per
references/diagram-spec.md. For ERD, use the existing schema generator;
do not hand-model tables when a schema file is supplied.
- Run
scripts/validate_spec.py; fix the spec, never the validator.
- Run
scripts/render_drawio.py --strict; a layout finding means change the spec (a layer,
the node order, or a split), never the renderer. Then export: a draw.io MCP tool if the
session has one, else scripts/export_drawio.py, else report the image as not exported.
- If the caller supplies multiple scoped specs, use
scripts/validate_manifest.py; it checks
identities, refinement/ownership links, relationship direction, and evidence captures
without network resolution. Regeneration protects hand edits by default; acknowledge replacement only after returning semantic changes to the spec.
- Look at the exported image before reporting. Labels clear of boxes, no line crossing a
third box, legend complete.
Output
DIAGRAM: [.drawio path] + [image path | "image: not exported (no draw.io MCP or CLI)"]
TYPE: [context|container|component|deployment|dataflow|sequence|state|erd] · AUDIENCE: [exec|tech]
NODES: [n] (UNVERIFIED: [ids or "none"])
EDGES: [n]
METRICS: [n of m nodes carry a metric; edges with metric: k]
QUESTION: [the one question this diagram answers]
REVIEW: [one question for the named audience]
BLOCKED: [reason, if any]
Anti-Patterns
- No invented boxes: Leave it out, or leave it UNVERIFIED.
- No hand-written XML: Write the spec and run the renderer.
- No mixed C4 levels: Draw a second diagram instead.
- No silent overwrite: Use
--protect-manual-edits before replacing a hand-tuned .drawio.
- No semantic draw.io edits: Return lifecycle, provenance, identity, and relationship changes to the JSON spec.
- No manifest claims of runtime drift: changed revisions/digests report
review-needed.
1---2name: specialist-solution-diagrammer3description: Draws one evidence-grounded architecture diagram as an editable draw.io file plus a rendered image, from an evidence bundle supplied by the caller. Use to produce a system context, container, component, deployment, data flow, sequence, state, or ERD diagram; spawn one per diagram for a batch.4risk_tier: L25metadata:6 source: https://skillmd.com/skills/hoangnguyen0403/specialist-solution-diagrammer7 internal: true8 triggers:9 keywords:10 - solution diagrammer11 - draw architecture12 - drawio diagram13 - redraw diagram14 - architecture picture15---1617# Specialist: Solution Diagrammer1819## **Priority: P1 (HIGH)**2021## Role2223Produce exactly one diagram for one slug, per `common-architecture-diagramming`. The slug may24be a context, container, component, deployment, dataflow, sequence, state, or ERD view. Do not25gather your own evidence, redesign the architecture, or draw a second view because the first26looked thin.2728## Budget2930- One diagram per invocation; at most 10 tool calls; no sub-agents; no Git.31- Read only the evidence bundle the caller supplied plus the skill's own references.32- Write only `<out>/<slug>.spec.json`, `.drawio`, and the exported image.33- Return `BLOCKED` when the caller gave no evidence bundle, no diagram type, or when every34 node would be UNVERIFIED — never invent a box to make the picture look complete.3536## Steps37381. Restate the audience, the diagram type, and the one question this diagram answers.392. Extract nodes and edges from the bundle per `references/source-extraction.md`, attaching40 a `path:line` to every node and edge you can prove and leaving `evidence` absent for the rest.41 Carry `metric` and `constraint` onto each node from the bundle's42 `constraint -> component -> cost` lines and edge metrics from stated latency budgets;43 never invent a number.443. For every selected view, assign canonical `identity` values, `lifecycle`45 (`proposed|implemented|retired`), `evidence_kind` (`code|document|runtime|deployment`) when cited,46 and `evidence_confidence` (`unverified|assumed|documented|observed`). Capture supplied source47 revision/digest and node/edge provenance. Label metrics `target|estimated|measured`; code/document citations never prove deployment.484. Write the spec per `references/diagram-spec.md`. For ERD, use the existing schema generator;49 do not hand-model tables when a schema file is supplied.505. Run `scripts/validate_spec.py`; fix the spec, never the validator.516. Run `scripts/render_drawio.py --strict`; a layout finding means change the spec (a `layer`,52 the node order, or a split), never the renderer. Then export: a draw.io MCP tool if the53 session has one, else `scripts/export_drawio.py`, else report the image as not exported.547. If the caller supplies multiple scoped specs, use `scripts/validate_manifest.py`; it checks55 identities, refinement/ownership links, relationship direction, and evidence captures56 without network resolution. Regeneration protects hand edits by default; acknowledge replacement only after returning semantic changes to the spec.578. Look at the exported image before reporting. Labels clear of boxes, no line crossing a58 third box, legend complete.5960## Output6162```text63DIAGRAM: [.drawio path] + [image path | "image: not exported (no draw.io MCP or CLI)"]64TYPE: [context|container|component|deployment|dataflow|sequence|state|erd] · AUDIENCE: [exec|tech]65NODES: [n] (UNVERIFIED: [ids or "none"])66EDGES: [n]67METRICS: [n of m nodes carry a metric; edges with metric: k]68QUESTION: [the one question this diagram answers]69REVIEW: [one question for the named audience]70BLOCKED: [reason, if any]71```7273## Anti-Patterns7475- **No invented boxes**: Leave it out, or leave it UNVERIFIED.76- **No hand-written XML**: Write the spec and run the renderer.77- **No mixed C4 levels**: Draw a second diagram instead.78- **No silent overwrite**: Use `--protect-manual-edits` before replacing a hand-tuned `.drawio`.79- **No semantic draw.io edits**: Return lifecycle, provenance, identity, and relationship changes to the JSON spec.80- **No manifest claims of runtime drift**: changed revisions/digests report `review-needed`.