export-diagram
/export-diagram
Export a generated aws-diagram-design HTML diagram to .svg and/or .png next to the source. Use when the user asks to export, save, rasterize, convert, or download a diagram as PNG or SVG. Korean triggers: PNG로 내보내기, SVG로 저장, 다이어그램 이미지로 변환.
- Author
- aws-samples ↗
- Repository
- sample-apj-sup-sa ↗
- Licence
- MIT
- Last repository change
- 22.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 22.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Export a generated aws-diagram-design HTML diagram to .svg and/or .png next to the source. Use when the user asks to export, save, rasterize, convert, or download a diagram as PNG or SVG. Korean triggers: PNG로 내보내기, SVG로 저장, 다이어그램 이미지로 변환.
Arguments
/export-diagram <html-file> [--svg-only|--png-only] [--scale=N] [--output=<path>]
Original author description
Export a generated aws-diagram-design HTML diagram to .svg and/or .png next to the source. Use when the user asks to export, save, rasterize, convert, or download a diagram as PNG or SVG. Korean triggers: PNG로 내보내기, SVG로 저장, 다이어그램 이미지로 변환.
How it works
- Defaults
- Flags
- Required behaviour
SKILL.md preview
---
name: export-diagram
description: "Export a generated aws-diagram-design HTML diagram to .svg and/or .png next to the source. Use when the user asks to export, save, rasterize, convert, or download a diagram as PNG or SVG. Korean triggers: PNG로 내보내기, SVG로 저장, 다이어그램 이미지로 변환."
license: MIT
argument-hint: <html-file> [--svg-only|--png-only] [--scale=N] [--output=<path>]
allowed-tools:
- Read
- Write
- Edit
- Bash
- Glob
metadata:
version: "2.0.0"
plugin: aws-diagram-design
---
# Export diagram → SVG / PNG
Export the diagram HTML at `$1` to `.svg` and/or `.png`, following the procedure in
[`../aws-diagram-design/references/export.md`](../aws-diagram-design/references/export.md).
Treat that reference as the source of truth — don't reimplement the logic here.
Full argument string: `$ARGUMENTS`
The reference lives in the sibling `aws-diagram-design` skill of this plugin. Locate the
installed plugin root (the directory containing `plugin.json`) and read
`skills/aws-diagram-design/references/export.md` from there — never assume the plugin is
under the current working directory.
## Defaults
- Produce **both** `.svg` and `.png` next to the source (e.g. `diagram.html` → `diagram.svg` + `diagram.png`).
- PNG renders at `device_scale_factor=2` with a transparent background.
## Flags
- `--svg-only` — emit only the SVG. Skip Playwright entirely.
- `--png-only` — emit only the PNG.
- `--scale=1` / `--scale=2` / `--scale=3` — override the PNG device scale factor. Default `2`.
- `--output=<path>` — override the output base path; the format extension is appended. Applies to both formats when both are produced.
## Required behaviour
1. **No source path provided** → ask the user which `.html` file to export. Don't guess.
2. **Source is a gallery file** (`assets/index.html`, multiple SVGs in one file) → refuse and ask which specific diagram file.
3. **Source has no `<svg>` block** → refuse and tell the user; don't write anything.
4. **PNG requested but Playwright not installed** → surface the install instruction from the reference verbatim and stop. Do **not** auto-install.
5. **PNG requested with `--scale` outside {1,2,3}** → reject; valid values are 1, 2, 3.
6. Never modify the source HTML, and never emit export files unprompted.
After producing the outputs, report the file paths and sizes back to the user.
Versions
The database has no other skills named export-diagram.
Database snapshot: 13.11.2026 · package version 539c54a1fea0 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 100aws-diagram
Generate AWS architecture diagrams in draw.io format following the awslabs official style. Supports PNG/SVG export via draw.io CLI and automated 6-point quality validation. Use when the user asks to create, update, or export an AWS architecture diagram. - 91compose
Build an infrastructure diagram from a Python diagram file (frames as with-blocks, automatic layout) and export it to HTML, SVG and PNG, and on request its Azure Terraform skeleton. Run when the user invokes it with a diagram file or asks for one to be written and drawn. - 100aws-architecture-diagram
Produce an interactive AWS architecture diagram, an animated UML sequence diagram, a guided walkthrough, or a before/after delta — as one self-contained HTML file (also .drawio, PNG/GIF/SVG). Use when the user asks for an architecture diagram, a solution topology, a visual of an… - 100aws-diagram-png
Generate AWS architecture diagrams as PNG images with real AWS icons using the awslabs/diagram-as-code (awsdac) CLI. Triggers when user wants a PNG diagram, architecture image, or visual export of AWS infrastructure. Produces publication-ready diagrams following AWS architecture guidelines. - 100drawio-diagram
Generate .drawio architecture diagrams with consistent visual style and export to PNG/SVG/PDF/HTML. Use when user asks to "create a diagram", "draw architecture", "make a drawio file", "build a diagram", or mentions "drawio", "architecture diagram", or "system diagram". - 91export-project
Export an .infragram.json infrastructure project, or an exported SVG, PNG or page that carries one, to HTML, SVG and PNG, and on request its Azure Terraform skeleton. Run when the user invokes it with a document or picture.