svg-chartslisted
Install: claude install-skill modeled-information-format/mif-docs-plugin
# svg-charts
Shared helper (not a standalone document genre). Produces a real, standalone
**`.svg` file** — never inline `<svg>` markup pasted into a document body —
for chart needs the suite's default embedded-Mermaid convention (see
`market-research-report`, `competitive-quadrant`, `trend-analysis`,
`c4-model-diagram`, `business-plan`) cannot cover.
## Why a separate file, not inline markup
GitHub Flavored Markdown strips embedded `<svg>` elements from rendered
markdown for XSS/security reasons; SVG only renders there via an `<img>` tag
pointing at a **separate file**, never inline in the markdown body. Since
every MIF document this suite produces is read as rendered markdown (GitHub
PRs, repository browsing, Starlight sites), a chart helper that emitted
inline SVG markup into the document body would silently fail to render on
GitHub — the primary surface these documents are viewed on. `svg-charts`
therefore always writes a real `.svg` file next to the document and returns
the `<img src="...">` line to embed — never raw markup for the body.
Source: GitHub strips embedded `<svg>` elements; only an `<img>` pointing to
an external file renders — <https://alexwlchan.net/notes/2024/how-to-render-svgs-on-github/>,
<https://github.com/orgs/community/discussions/151372>.
## When to reach for this instead of Mermaid
**Stay with the default embedded-Mermaid convention** (`xychart-beta`,
`pie`, `quadrantChart` — see `market-research-report`,
`competitive-quadrant`, `trend-analys