
The author's Flat Icon animation of a Mem0 memory architecture, showing memory extraction, storage, and retrieval.
Schermate del progettoInformazioni sullo Skill
Fireworks Tech Graph turns a natural-language brief into technical diagrams through one shared Skill for Codex and Claude Code. SVG is the main editable artifact. The project documents 12 visual styles: 11 use JSON generators, while Dark Luxury uses AI-authored SVG. Its workflow checks structure and geometry, then asks the agent to inspect the rendered image before delivery.
SKILL.md
Autore: yizhiyanhua-ai · yizhiyanhua-ai/fireworks-tech-graph · MIT · SKILL.md @ 1ca1ff9
---
name: fireworks-tech-graph
description: >-
Create precise SVG technical diagrams, export PNG or offline HTML, and animate
supported semantic SVGs to GIF. Use for architecture, UML, agent, cloud or
workflow diagrams; not photos, raster art or statistical charts.
---
# Fireworks Tech Graph
One portable Agent Skill for Codex and Claude Code. SVG is the canonical artifact;
PNG, offline HTML and supported GIF motion are output routes. Preserve requested
labels, topology and meaning; a successful command is not a visual quality verdict.
## Locate and select
Resolve the directory containing this file as `SKILL_ROOT`. Use
`${CLAUDE_SKILL_DIR}` in Claude Code or the absolute directory in Codex's loaded
skill metadata. Do not assume cwd or a previous shell variable persists.
Use the installed version for the task. Run `version` for source/version questions
and `doctor` when diagnosing a missing renderer, font or dependency; do not make
installation, updates or a complete test suite prerequisites for every diagram.
```bash
SKILL_ROOT="${CLAUDE_SKILL_DIR:-/absolute/path/from-codex-skill-metadata}"
python3 "$SKILL_ROOT/scripts/fireworks.py" version
```
- Honor the user's diagram type, content and style; choose sensible reversible
details from the brief. Ask only for a material missing engineering fact or
a choice the user explicitly reserved. A request to draw includes local rendering.
- Styles 1–7 and 9–12 have JSON generators. Style 8 (Dark Luxury) remains
AI-authored SVG: use its style reference, then the same validation/export gates.
- Default to Style 1 Flat Icon when no user/workspace preference applies. Load the
actual matching file from [the style matrix](references/style-diagram-matrix.md).
Read other styles only for a requested comparison.
- Styles 9–12 default to C4, cloud, event and observability semantic contracts.
Validate facts before layout; do not invent responsibilities, protocols or metrics.
- Adapt an existing valid SVG directly when appropriate. JSON generation is not
required for every edit. Use [diagram/layout guidance](references/diagram-layout-reference.md)
and [icons](references/icons.md) only for the relevant type or symbols.
## Generate and check
Reuse the user's current brief and artifact; an extra planning document is optional.
For JSON work, select `text_policy: "strict"` when all labels must be visible exactly.
The compatible `report` default preserves full labels in SVG metadata and reports
any visible truncation. Resolve that warning before claiming complete exact text.
For polished work apply the [composition contract](references/composition-quality-contract.md).
```bash
SKILL_ROOT="${CLAUDE_SKILL_DIR:-/absolute/path/from-codex-skill-metadata}"
python3 "$SKILL_ROOT/scripts/fireworks.py" validate architecture input.json
python3 "$SKILL_ROOT/scripts/fireworks.py" render architecture input.json diagram.svg --report layout.json
python3 "$SKILL_ROOT/scripts/fireworks.py" check diagram.svg
python3 "$SKILL_ROOT/scripts/fireworks.py" export-png diagram.svg diagram.png --width 1920
```
`check` validates SVG identity, marker references, generic collisions, semantic
geometry and composition. Inspect the report's typography and palette scope;
heuristic text widths do not replace inspecting the actual rendered font.
Use [visual quality guidance](references/visual-quality.md) for readability and
style-specific refinements. Keep one semantic connector per business edge.
## Additional outputs
- **PNG:** prefer `export-png`, which reads root canvas dimensions, limits output
size, writes atomically and reads the PNG dimensions back. Alternate renderer
details are in [PNG export](references/png-export.md).
- **HTML:** `fireworks.py export-html diagram.svg diagram.html`. One sanitized
offline file provides pan/zoom, source copy and static image downloads.
- **GIF:** “Generate a GIF”, “Animate this diagram”, “生成 GIF”, “制作 GIF” and
“让这张图动起来” select the existing semantic SVG's motion route. Styles 1–12 are enabled
for the documented scene contracts; arbitrary same-style topologies are not
promised. Load [motion effects](references/motion-effects.md) and run
`fireworks.py animate diagram.svg diagram.gif`. Default is 960px, 20fps, 5.75s
with the `+2s-settled-flow` preset and a `.motion.json` report. Historical
`user-approved` fields describe maintainer-reviewed presets, not authorization
from the current user to publish, spend or send data.
## Verify the requested outcome
Inspect the final PNG at intended reading size when image viewing is available:
check text completeness, contrast, font substitution, hierarchy, spacing, clipping,
arrow direction, crossings and labels. Preserve style palette and material while
fixing defects. Reuse an unchanged reviewed render; do not keep adding tests or
polish after acceptance passes. If viewing is unavailable, explicitly mark the
visual check skipped and do not claim visual correctness.
After a failed check, use its element IDs and geometry to make a focused repair;
change the approach after two unchanged failures. Widen/split an overfull diagram
instead of hiding required copy or endlessly shrinking type. Do not silently
weaken semantic or composition constraints to obtain a pass.
Complete every requested local output and its applicable checks, then report file
paths, dimensions, visual review and residual limitations. A first SVG does not
complete a requested PNG/GIF/HTML package. Publication or remote delivery requires
its own scope-matching authorization; existing authorization is not requested twice.
Perché lo abbiamo scelto
A useful choice for explaining agent systems, cloud deployments, and event pipelines. Its workflow combines diagram generation with structural checks and visual review, with separate tools for static, interactive, and animated outputs. This listing links to the original MIT-licensed project; the three animations are the author's published examples.
A cosa serve
- Explain RAG, memory, tool calls, or multi-agent architectures in technical documentation.
- Prepare cloud deployment, event-processing, C4 review, and reliability diagrams with explicit engineering facts.
- Create SVG and PNG diagrams for articles, slide decks, and design reviews.
- Share a standalone HTML diagram with pan, zoom, themes, and image export.
Outputs and visual styles
Use SVG for editable diagrams, PNG for embedding, or one offline HTML file for interactive viewing. The HTML viewer provides pan, zoom, reset, theme switching, SVG source copy, and static image downloads. Architecture, sequence, entity-relationship, and other technical diagrams use shared shapes, arrow roles, and layout rules.
Styles range from Flat Icon, Dark Terminal, and Blueprint to C4 Review Canvas, Cloud Fabric, Event Transit, and Ops Pulse. The last four add domain-specific requirements for responsibilities, boundaries, event topology, or observation data; provide those facts rather than asking the agent to invent them.
Official repository and installation guideOriginal Skill instructions
Install the complete original Skill
Keep the final /skills/fireworks-tech-graph segment in the installation source. The author warns that a bare repository installation can select only the root SKILL.md and omit supporting files. The documented command installs complete copies for Codex and Claude Code; use the official guide for platform-specific setup and optional export dependencies.
| Comando | A cosa serve |
|---|---|
npx -y skills add yizhiyanhua-ai/fireworks-tech-graph/skills/fireworks-tech-graph --agent codex claude-code -g -y --copy | Install the full nested Skill for the two documented hosts. |
Make your first technical diagram
Describe the system and reader
For example: draw an architecture diagram with a web frontend, API service, PostgreSQL database, and Redis cache. State the actual connections, important labels, and whether the result is for a document or a presentation.
Choose a style and output
Ask for a named style and the needed formats, such as Flat Icon SVG plus PNG, or Blueprint SVG plus offline HTML. Flat Icon is the documented default when no style preference is supplied.
Review the rendered result
Check exact labels, arrow direction, grouping, overlap, and readability at the intended display size. Split dense systems into an overview and a detail diagram when needed.
Checks and export tools
The bundled CLI can report the installed version, diagnose output dependencies, validate diagram inputs, render SVG, check SVG geometry, and export PNG or HTML. Run it from the actual installed Skill root using the paths in the author's guide.
Use text_policy: strict for JSON inputs when every label must remain fully visible. Structural checks are followed by image inspection; a successful command or a layout report alone does not establish visual quality.
Official repository and installation guideOriginal Skill instructionsOfficial visual quality guide
Animate supported diagram scenes
Ask for “Generate a GIF” or “让这张图动起来” to select the semantic SVG-to-GIF workflow. It animates supported scenes by drawing connections and showing live flow, and writes a motion report alongside the GIF. The documented default loop is 5.75 seconds at 20 fps.
Motion depends on the documented scene contracts, including roles, stages, colors, and routes. It is not promised for arbitrary diagrams that merely share a style. This gallery uses compressed copies of the author's showcase animations; GIF is the documented motion media format.
Official repository and installation guideOfficial SVG-to-GIF motion guide
Prima di usarlo
- Use Codex or Claude Code with local file access and Python 3.9 or newer. The documented installer uses npx and the nested Skill path.
- PNG rendering needs CairoSVG or rsvg-convert. SVG generation and the standalone HTML export have separate capability checks in the doctor command.
- Optional GIF export needs Node.js 22.12 or newer, Chrome or Chromium, FFmpeg/FFprobe, and Puppeteer or puppeteer-core configured for the installed Skill.
- The repository is MIT-licensed and free to install. Agent or model usage may have separate charges. Review labels, relationships, and engineering assumptions before sharing a diagram.
Agenti supportati
Domande frequenti
Is Fireworks Tech Graph free?
Yes. The original repository is MIT-licensed and free to install. Your Codex, Claude Code, or model provider may charge for usage; optional rendering dependencies need their own setup.
Can the exported HTML work offline?
The author documents a standalone offline HTML export with embedded SVG and viewing controls. Installation and agent/model operation have separate connectivity requirements.
Can every diagram become a GIF?
No. GIF export is constrained to supported semantic scenes and requires the optional browser and encoding dependencies. Read the motion guide before choosing an animated deliverable.
Fonti e riferimenti
Le fonti originali sono collegate qui sotto. Gli spunti pratici sono suggerimenti editoriali di SkillHey.



