{"id":109538,"plugin_id":"plugin_asdk_app_6afaeb7839988191892ac50bedd8277b","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-21T13:43:36.112Z","digest":"a07d06eedf8ac7087dae73f408bb79c85130e29fc6f816ea247a756b8ba7119e","against":null,"payload":{"description":"Decide when a page people will read needs a diagram and draw one that shows the real mechanism — flows, architectures, processes, timelines, org charts, comparisons — with Mermaid in Markdown or hand-built SVG in HTML, readable in light and dark mode and on phones. Use when a page that will be published or shown to people explains how something works or how parts relate.","included_files":[],"name":"birta-diagrams","skill_md_contents":"---\nname: birta-diagrams\ndescription: \"Decide when a page people will read needs a diagram and draw one that shows the real mechanism — flows, architectures, processes, timelines, org charts, comparisons — with Mermaid in Markdown or hand-built SVG in HTML, readable in light and dark mode and on phones. Use when a page that will be published or shown to people explains how something works or how parts relate.\"\n---\n\n# Diagrams on Birta pages\n\nA diagram earns its place when the reader needs to see how parts relate: what\nflows where, what depends on what, what happens in which order. If a sentence or a\nshort list says it as well, write the sentence.\n\n## Decide what to draw\n\nStart from the question the diagram answers, then pick the form:\n\n| The reader needs to see | Draw |\n| --- | --- |\n| Steps and decisions | Flowchart, top to bottom or left to right |\n| Who talks to whom over time | Sequence diagram |\n| Parts of a system and their links | Boxes and arrows, grouped by boundary |\n| States and what moves between them | State diagram |\n| Events on a calendar | Timeline or Gantt |\n| A hierarchy | Tree |\n| Two or three options side by side | A table, not a diagram |\n\nDraw the real thing: the actual names of services, people, steps and data, the\nreal direction of every arrow. A generic \"Input → Process → Output\" teaches nothing.\nKeep one diagram to about a dozen nodes; split a bigger picture into an overview\nand close-ups. Label arrows with what travels along them.\n\n## In a Markdown page\n\nBirta draws a ```` ```mermaid ```` code block in a Markdown page as a diagram; no\nlibrary is needed. Prefer this for documents.\n\n- Use short node ids and quoted labels: `api[\"Billing API\"]`.\n- Set the direction deliberately (`flowchart LR` for pipelines, `TD` for\n  hierarchies) and group with `subgraph` for boundaries.\n- Leave styling to the renderer so the diagram follows the reader's theme; avoid\n  hard-coded fill colors.\n- Put a one-sentence caption before the diagram that says what to notice.\n\n## In an HTML page\n\nBirta does not render Mermaid inside HTML. Either hand-build inline SVG (best\ncontrol, no script, and every shape can carry an `id` that reviewers' remarks\nattach to) or load Mermaid from a CDN pinned to an exact version. Prefer inline SVG\nfor anything that is central to the page.\n\nFor inline SVG:\n\n- Set a `viewBox` and let the SVG scale: `width: 100%; height: auto`. Keep room\n  inside the viewBox for the outermost labels.\n- Take every color from the page's CSS custom properties (`fill: var(--fg)`,\n  `stroke: var(--line)`), so the diagram follows light and dark mode. Give every\n  shape an explicit fill, `none` included.\n- Keep text at least 12px at the rendered size; at phone width that usually means\n  a vertical layout. Wrap a diagram that cannot shrink in an `overflow-x: auto`\n  container.\n- Snap boxes to a grid, align centers, keep equal gaps, and route arrows with right\n  angles or gentle curves that never cross labels. Define one arrowhead `<marker>`\n  and reuse it.\n- Use color for meaning only: one accent for the path that matters, neutral for the\n  rest, the same color for the same kind of thing.\n- Add `role=\"img\"`, a `<title>` and a `<desc>` summarizing the diagram, and an `id`\n  on the SVG and on its key groups.\n\n## Before publishing\n\nCheck that every label is inside its box, nothing overlaps, arrows point the right\nway, and the diagram reads in both themes and at phone width. For page layout and\ntype, follow the `birta-design` skill.\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}