agentleFS
nors1993nors1993/Research-Skills/skills/fireworks-tech-graph/SKILL.md

fireworks-tech-graph

Skill9 starsChanged 6 months agoMITView on GitHub

Generate production-quality technical diagrams (architecture, comparison, flow) as SVG+PNG using the fireworks-tech-graph style system. Trigger on: "画架构图" "画对比图" "技术图表" "generate diagram" "system diagram" "comparison diagram".

  • Installs packages

15 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ui-ux-pro-max.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • StrayDragonSkill

    ui-ux-pro-max

    UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write clean SVG using the style-1 color palette

    line 20
  2. Distinctive:

    ViewBox first: don't cram — 1600×900 minimum for dual-panel

    line 26
  3. Distinctive:

    Don't trust visual inspection alone — compute text width vs circle diameter

    line 84

“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Fireworks Tech Graph — Dual-Panel & Architecture Diagrams

Install source: git clone https://github.com/yizhiyanhua-ai/fireworks-tech-graph.git Style reference: references/style-1-flat-icon.md (Flat Icon, default) Converter: cairosvg (pip install cairosvg --break-system-packages) Validation: scripts/validate-svg.sh from the repo

Workflow

  1. Classify diagram type (architecture, comparison, data-flow, flowchart…)
  2. Design layout in a generous viewBox (min 1600×900 for dual-panel)
  3. Write clean SVG using the style-1 color palette
  4. Convert: python3 -c "import cairosvg; cairosvg.svg2png(url='in.svg', write_to='out.png', output_width=2800, output_height=1575)"
  5. Validate: bash scripts/validate-svg.sh file.svg

Critical Layout Rules (anti-overlap)

  1. ViewBox first: don't cram — 1600×900 minimum for dual-panel
  2. Circle nodes: r ≥ 54px when text is ≤18 chars at font-size 9; font-size ≤ 9 inside circles
  3. Text-in-circle check: longest label × 5.5px ≤ circle diameter (108px for r=54)
  4. Node spacing: adjacent circles 45° apart on r=300 → 229px center-to-center (safe)
  5. Legend positioning: y ≥ bottom-node-edge + 26px
  6. Never use   in SVG — use   (valid XML entity)
  7. Margin zones: 60px gutter between left-panel nodes and right-side annotations
  8. Rightmost nodes: x + r ≤ viewBox width - 26px

Style-1 Color Palette (Flat Icon)

Background:     #ffffff
Box fill:       #ffffff → #F1F5F9 (light tiers)
Box stroke:     #94A3B8 / #d1d5db
Text primary:   #111827 / #334155
Text secondary: #64748B / #6b7280
Blue accent:    #1A56DB (communication)
Green accent:   #047857 (earth observation)
Purple accent:  #7C3AED (navigation)
Orange accent:  #D97706 (IoT)
Red accent:     #DC2626 (infrastructure)
Hub fill:       #DBEAFE → #EFF6F6 (radial gradient)
Shadow filter:  feDropShadow dy=2 stdDeviation=4 #00000018

SVG Patterns

Dual-panel comparison (Value Chain / Ecosystem)

<svg viewBox="0 0 1600 900">
  <!-- Divider: dashed vertical line at midpoint -->
  <line x1="800" y1="70" x2="800" y2="880" stroke="#E2E8F0" stroke-dasharray="6 6"/>
  
  <!-- Left panel: vertical chain with rounded rects + arrows -->
  <!-- Right panel: hub-and-spoke with circle nodes + radial connections -->
</svg>

Circle node with text

<circle cx="X" cy="Y" r="54" fill="#FFFFFF" stroke="COLOR" stroke-width="2.2" filter="url(#shadowLight)"/>
<text x="X" y="Y-7" text-anchor="middle" font-size="9" font-weight="700" fill="COLOR">Label Line 1</text>
<text x="X" y="Y+9" text-anchor="middle" font-size="8" fill="#64748B">Sub-label</text>

Legend pattern

<rect x="L" y="Y" width="W" height="48" rx="8" fill="#F8FAFC" stroke="#E2E8F0"/>
<!-- Color dots + labels, spaced evenly across width -->

Pitfalls

  • &nbsp; is HTML, not XML — always use &#160; in SVG
  • rsvg-convert may not be installed; cairosvg is the reliable Python fallback
  • Text inside circles: reduce font-size before enlarging circles (keep proportions)
  • Vision API may reject large PNGs; convert at output_width ≤ 2800
  • Don't trust visual inspection alone — compute text width vs circle diameter

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.