← LeaderboardThe Skill Leaderboard

svg-diagram-studio

Draw a roadmap, journey map, swimlane, funnel, quadrant or system picture as one self-contained HTML file with inline SVG, with no Mermaid and no external libraries. Use when asked to draw this as a diagram, make a roadmap visual, turn this process into a picture, I need a diagram I can paste into a doc, or make a diagram that works offline. Produces a single HTML file that opens anywhere, plus a one-paragraph reading guide and the plain-text version of the same content.

Published by mohitagw15856 ↗mohitagw15856/pm-claude-skills

Try your first task

A source-grounded starter task has not been verified for this skill yet.

SKILL.md

name: svg-diagram-studiodescription: "Draw a roadmap, journey map, swimlane, funnel, quadrant or system picture as one self-contained HTML file with inline SVG, with no Mermaid and no external libraries. Use when asked to draw this as a diagram, make a roadmap visual, turn this process into a picture, I need a diagram I can paste into a doc, or make a diagram that works offline. Produces a single HTML file that opens anywhere, plus a one-paragraph reading guide and the plain-text version of the same content."

SVG Diagram Studio Skill

Most diagrams fail before any drawing happens: the author picked a shape because the tool offered it, not because the content has that shape. This skill chooses the form from the relationship in the content, then hand-places the SVG so the file needs nothing but a browser. Use it when the picture has to survive email, a wiki that strips scripts, or a slide export. For a quick Mermaid sketch inside Markdown, use flowchart, sequence-diagram or org-chart instead.

What This Skill Produces

  • One HTML file with inline SVG and inline CSS: no script tags, no web fonts, no network requests
  • A reading guide: one paragraph that says where the eye should start and what the picture claims
  • The plain-text twin: the same content as a table or list, for screen readers and for people who cannot open the file
  • A light and a dark rendering from one set of colour tokens, both checked for contrast

Required Inputs

Ask for these if not provided:

  • The content: the items, and how they relate (order, containment, flow, comparison, or position on two axes)
  • The one claim the diagram should make, in a sentence. If there is no claim, say so and offer a table instead
  • Where it will be shown: slide, document, wiki or screen share. This sets the aspect ratio and the smallest legible text
  • Fixed labels: any names, dates or numbers that must appear exactly as given. Never invent a date or a figure to fill a gap; leave the slot empty and label it as unknown

Framework: Form Follows the Relationship

  1. Name the relationship first. Sequence over time gives a timeline or roadmap. Hand-offs between roles give swimlanes. Narrowing counts give a funnel. Two independent dimensions give a quadrant. Parts inside wholes give nested boxes. If two relationships compete, draw two diagrams.
  2. Budget the ink. A slide holds about seven labelled shapes before it turns into a map nobody reads. Past that, group, or split into an overview and a detail view.
  3. Place on a grid. Pick a unit (8 or 10 pixels), snap every coordinate to it, and keep one gutter width. Arrows leave from edge midpoints and never cross a label.
  4. Encode with position before colour. Colour marks at most one distinction (for example: done, in progress, not started) and never carries meaning alone: pair it with a text tag or a shape.
  5. Write text as text. Use SVG text elements, never outlined paths, so the diagram stays searchable and translatable. Smallest size 12 pixels at the size it will be shown.
  6. Make it accessible. Give the svg a role="img", a title and a desc that states the claim. Put the plain-text twin under the figure.
  7. Check both themes. Define colours as CSS custom properties, switch them under prefers-color-scheme: dark, and confirm text contrast in each.

Output Format

Diagram: [the claim in one line]

Form chosen: [timeline / swimlane / funnel / quadrant / nested / flow] because [the relationship]

File: [name].html (one file, inline SVG, no scripts)

[the complete file]

How to read it: [one paragraph]

Plain-text version: [table or list carrying the same content]

Left out on purpose: [items dropped to keep the picture legible, and where they went]

Quality Checks

  • The file contains no script tag, no external URL and no font import
  • Every label given by the user appears exactly as given; no invented dates or numbers
  • The form is justified by the relationship in one sentence
  • title and desc are present and the plain-text twin carries the same content
  • Light and dark renderings both keep text readable
  • No arrow crosses a label and all coordinates sit on the grid

Anti-Patterns

  • Do not pick the form before naming the relationship
  • Do not put more than about seven labelled shapes on one slide-sized canvas
  • Do not use colour as the only carrier of a distinction
  • Do not convert text to paths or embed a raster image of text
  • Do not reach for a library: the point of this skill is a file with no dependencies

Example Trigger Phrases

  • "Draw this roadmap as a diagram I can paste into a doc."
  • "Turn this process into a swimlane picture."
  • "Make a diagram that works offline, no Mermaid."
  • "I need a quadrant chart of these options as one HTML file."

Run this skill in your browser: https://mohitagw15856.github.io/pm-claude-skills/skill/svg-diagram-studio.html

svg-diagram-studio by mohitagw15856 · The Skill Leaderboard