/diagram-studio:lucidchart-svgfrom diagram-studio
Exports Lucidchart diagrams to SVG, inserts SVG artwork into Lucidchart, and reconstructs SVG diagrams as editable Lucid shapes and connectors. Use for Lucidchart SVG downloads, uploads, conversions, and fidelity checks.
Ships in diagram-studio. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Identify the document or SVG source, requested output path, pages, and whether the user needs visual fidelity or individually editable shapes. Preserve existing authorization; do not require a second confirmation for an already requested download or creation.
| Request | Route | Result |
|---|---|---|
| Download a Lucidchart diagram as SVG | Editor export | SVG file from the selected document/page |
| Place SVG artwork in Lucidchart | SVG/custom-shape import | A visual asset; internal labels and connectors are not established as native objects |
| Create editable shapes from an SVG diagram | Recover semantic nodes/edges, then native Mermaid conversion or Standard Import | Reconstructed shapes and attached connectors, with declared changes/losses |
Do not infer topology from path proximity alone. Prefer original graph data, stable SVG IDs, labels, and explicit endpoint metadata. A screenshot, SVG image, .lucid package, and successfully created Lucid document are different deliverables; report the one actually produced.
For fidelity reviews or appearance-sensitive conversions, read fidelity.md. Compare visual details and semantic content separately; node counts do not measure drawing fidelity.
For diagram transformations, read shape-selection.md to select elements from explicit roles and diagram-families.md for Flowchart, BPMN, ER/UML, lanes, hierarchy/sequence and cloud choices. Query scripts/native_catalog.py --type <shape-type>, --connectors or --cloud-class <literal> for the relevant compact contract. --type line is a connector-contract alias; lines belong in graph edges, not shape nodes. Do not read the entire source catalog during normal use.
Read editor-workflows.md. Use an existing signed-in browser or connected tool, inspect the current UI, select the requested page, then More → Export → SVG → Download. Check crop, background, and layer visibility. Follow observed labels if the UI differs.
Capture the browser download using the available tool and save it to the exact requested path. If the tool cannot retrieve download bytes, report that boundary and preserve the document link and export settings; do not claim a download or scrape the editor canvas as a replacement. The currently documented REST document-image endpoint does not offer SVG; do not invent an Accept: image/svg+xml route.
Inspect the downloaded file:
uv run --script <skill-dir>/scripts/inspect_svg.py inspect diagram.svg --report inspection.json
Confirm SVG XML rather than an HTML login/error response, dimensions, expected labels, vector elements, and embedded images. The report is a literal XML/resource inventory, including definitions/hidden text; it does not compute rendering, CSS cascade or native mapping eligibility. Lucid exports can outline text as paths; missing <text> elements alone do not prove missing visible labels. Render a local copy with the available browser/renderer after checking active content and external references. Inspect clipping, fonts, arrowheads, and page coverage. Keep the original bytes; any repaired derivative needs its own filename and a change note.
Inspect the source with the same command and save its report once. Check ready_for_upload before preparation. If false, use the existing diagnostic to plan deliberate repairs; do not retry a blocked preparation unchanged. For an eligible visual asset, read editor-workflows.md, prepare a checked byte-preserving copy, then import through the SVG/custom-shape controls available in the account:
uv run --script <skill-dir>/scripts/inspect_svg.py prepare source.svg --output upload.svg
prepare blocks detected active content, external dependencies, and foreignObject content needing review. Its static inspection is conservative, not a browser sandbox. Warnings such as filters or embedded raster images still require visual checking. It does not simplify paths, flatten CSS, or guarantee Lucid parser acceptance. Correct incompatibilities deliberately in a separate derivative; preserve labels when replacing foreignObject with SVG text.
For editable content, read native-reconstruction.md. Reconstruct the semantic diagram from SVG/source data; retain labels, directions, branch labels and endpoints. For explicit SVG metadata, read svg-mapping.md and use its bounded extraction profile:
uv run --script <skill-dir>/scripts/extract_native.py source.svg --coordinates viewport-pixels --output graph.json --report mapping.json
Choose the coordinate mode explicitly. If the saved inspection already has blocking resource/active-content flags, stop reconstruction of that unchanged source and deliver the existing diagnostic; repair a separate derivative before extracting. A blocked extraction produces a ledger and no graph. For source-arrow reviews, use the ledger's marker measurements: report raw dimensions, resolved units/stroke/transform and calculated viewport dimensions or the recorded unknown/reason, then qualify native glyph/size replacement. Do not infer missing topology or silently discard rich artwork. Use native Mermaid when the current family is supported and automatic layout is acceptable. For fixed positions, compile supplied/recovered graph data:
uv run --script <skill-dir>/scripts/build_native.py graph.json --output diagram.lucid --document-json document.json --report native-report.json
Read standard-import.md only for this package/API route. Submit a new document through an already authorized authenticated integration, or deliver the package and explain the missing prerequisite. SVG images embedded in Standard Import are converted to PNG; use native primitives for editable reconstruction.
For explicit org-chart/mind-map data, sequence markup or assisted layout, read generated-layouts.md and use scripts/build_generated.py. This checked route preserves supplied data/markup while Lucid generates geometry. Use it only when reflow is acceptable. Inspect the actual report fields before writing validation assertions; its top-level local_validation covers the documented local profile, while native_graph.local_validation covers the ordinary graph component. Neither establishes service acceptance.
After live creation/import, inspect the returned document, edit one label, move one shape, confirm attached connectors follow, and undo the probe edits. Match node/edge counts and inspect visual losses. A local compiler pass proves the documented subset and package structure, not upstream acceptance.
Provide exact paths and/or the actual Lucid link, page coverage, route, editability, validation and material changes/omissions. Base fidelity notes on source inspection, extraction ledger, emitted compiler report and rendered evidence; never turn structural counts into an overall visual percentage. Distinguish local preparation from live verification. Check official sources before relying on current entitlements or UI/API behavior. Do not start a paid trial, create credentials or change sharing as a workaround.
agents/openai.yaml (opens in a new tab)references/diagram-families.md (opens in a new tab)references/editor-workflows.md (opens in a new tab)references/fidelity.md (opens in a new tab)references/generated-layouts.md (opens in a new tab)references/native-reconstruction.md (opens in a new tab)references/native-shapes.json (opens in a new tab)references/shape-selection.md (opens in a new tab)references/standard-import.md (opens in a new tab)references/svg-mapping.md (opens in a new tab)scripts/build_generated.py (opens in a new tab)scripts/build_native.py (opens in a new tab)scripts/extract_native.py (opens in a new tab)scripts/inspect_svg.py (opens in a new tab)scripts/native_catalog.py (opens in a new tab)scripts/test_catalog.py (opens in a new tab)scripts/test_extract.py (opens in a new tab)scripts/test_generated.py (opens in a new tab)scripts/test_native.py (opens in a new tab)scripts/test_svg.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub gvillarroel/plugins --plugin diagram-studio11 skills in this plugin
/compose-synchronized-svgDesigns, builds, synchronizes, and validates giant standalone SVG compositions made from many related diagrams, charts, maps, schematics, illustrations, and explanatory assets. Use when Codex must turn one idea into a coherent 6–16-module megacanvas or a 12–48-module navigable world such as a Path of Exile-style skill tree, giant genealogy, causal atlas, or linked-diagram map; keep recurring concepts visually consistent; propagate canonical values through every relevant view; coordinate focus, time, world-to-district-to-module semantic zoom, or a deterministic camera route for video; and deliver one self-contained interactive SVG with meaningful static and reduced-motion fallbacks./d3Creates, animates, inspects, recomposes, and validates D3-powered HTML and SVG visuals. Use for custom charts, simulations, linked views, visual audits, parametric logos, textures, and portable SVG that need data-driven geometry, joins, layouts, or transitions./diagram-compositionDecomposes a complex idea into related subdiagrams, chooses suitable visual forms, and composes a compact page with explicit grid spans, consistent semantic colors, readable text, shared SVG icons, and meaningful cross-panel connections. Use for dense explanatory figures, architecture plates, visual comparisons, and multi-panel diagrams that need semantic planning before layout; coordinate available diagram and icon skills without requiring them./echarts-animated-svgAnimates already-rendered Apache ECharts SVG output and builds replayable SVG galleries. Use when Codex needs to render ECharts charts with SVGRenderer or SSR, post-process the resulting SVG instead of rebuilding chart geometry, choose chart-type-specific SVG animation profiles for ECharts chart types, or create an HTML index with controls to replay or restore chart animations./hierarchy-lensBuilds offline interactive hierarchies with decision-driven pixel composition, compact organic cells, radial heatmaps, or labeled charts. Use for organizational maps, portfolios, or taxonomies needing explicit placement priorities, proximity rules, step-by-step growth, switchable color lenses, and exact record lookup./mermaidCreates, selects, styles, renders, validates, and animates Mermaid diagrams from prose or structured data, including verified accessible title and description metadata for newly authored work. Use when Codex must honor or infer an appropriate Mermaid family; preserve workflows, schedules, schemas, hierarchies, interactions, behavioral contracts, tabular data, or quantitative facts; simplify or audience-adapt an existing diagram with an explicit fidelity ledger; apply colorset1 as the standard palette or colorset2 only when extended/full-color styling is explicitly requested; restyle Mermaid files or Markdown fences; render static SVG; or produce faithful animated SVG.