From frontend-craft
Generates or edits diagrams, charts, visual assets, and PNGs with visual QA and self-repair. Prefers Mermaid, SVG, HTML, or canvas for text-heavy diagrams and HTML technical diagrams for architecture, workflow, and topology.
How this skill is triggered — by the user, by Claude, or both
Slash command
/frontend-craft:fec-image-generationThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate or edit diagrams, visual assets, and image workflows, and perform reviewable self-checks and repair iterations on exported PNGs.
Generate or edit diagrams, visual assets, and image workflows, and perform reviewable self-checks and repair iterations on exported PNGs.
Determine product type
workflow route for process maps, approvals, automation runs, exception paths, and cyclical operating flows that need readable start/end, decision, actor, numbered-step, and summary treatment without requiring diagrams.net.Clarify inputs and constraints
Select Generate Route
lanes, ordered actions as nodes, and exception or loop paths as edges with optional waypoints:
node skills/fec-image-generation/scripts/tech-diagram-render.mjs --input diagram.json --output diagram.html --type architecture --manifest diagram.layout.json
architecture IR with semantic node types such as agent, model, memory, vectorstore, graphdb, tool, document, queue, browser, user, and gateway. Add connection flow values (control, data, read, write, async, feedback) when arrow meaning matters; two or more flow types produce an automatic flow legend.visual.style for source-owned theme direction: default, terminal, blueprint, minimal, glass, warm, openai, or editorial-dark. Treat these as delivery themes, not brand guarantees.node skills/fec-image-generation/scripts/export-diagram.mjs --input diagram.html --format svg
node skills/fec-image-generation/scripts/export-diagram.mjs --input diagram.html --format png --output diagram.png --scale 2
?s=session-id, then POST small JSON commands to /cmd?s=session-id:
node skills/fec-image-generation/scripts/interactive-diagram-server.mjs --port 6100
curl -s "http://127.0.0.1:6100/cmd?s=checkout-flow" -d '{"cmd":"init","title":"Checkout Flow","direction":"TB"}'
curl -s "http://127.0.0.1:6100/cmd?s=checkout-flow" -d '{"cmd":"node","id":"cart","label":"Review cart","type":"process"}'
.drawio source, official diagrams.net shapes, or long-term manual editing.Export and self-check PNG
node skills/fec-image-generation/scripts/png-qa.mjs --png output.png --manifest layout.json --format markdown
node skills/fec-image-generation/scripts/png-qa.mjs --png output.png --format json
Automatic repair loop
Delivery records
.drawio instead when official vendor icons or long-term manual editing are the priority..drawio when long-term source ownership matters.Produce editable source, final PNG or edited image with generated routes and QA results. Diagrams should be clearly structured, with uncensored labels and uncluttered connections; visual assets should match purpose, size, brand tone, and delivery path.
npx claudepluginhub bovinphang/frontend-craftCreates technical and product diagrams (architecture, flowchart, sequence, etc.) as standalone HTML files with inline SVG. Includes style guide setup and 14 diagram types.
Creates polished visuals from concepts using HTML/CSS/SVG as a refineable intermediate, then exports to PNG or SVG. Useful for diagrams, infographics, cards, and charts.
Generates Excalidraw diagram JSON files that argue visually, not just display information. Use for workflows, architectures, or concepts.