@ia-ccun/code-agent-cli 0.0.47 → 0.0.49-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/config/agent/extensions/aicode-tips.ts +19 -0
  2. package/config/agent/skills/design-md/README.md +34 -0
  3. package/config/agent/skills/design-md/SKILL.md +172 -0
  4. package/config/agent/skills/design-md/examples/DESIGN.md +154 -0
  5. package/config/agent/skills/fireworks-tech-graph/LICENSE +21 -0
  6. package/config/agent/skills/fireworks-tech-graph/README.md +528 -0
  7. package/config/agent/skills/fireworks-tech-graph/README.zh.md +499 -0
  8. package/config/agent/skills/fireworks-tech-graph/SKILL.md +537 -0
  9. package/config/agent/skills/fireworks-tech-graph/agentloop-core.svg +101 -0
  10. package/config/agent/skills/fireworks-tech-graph/agents/openai.yaml +4 -0
  11. package/config/agent/skills/fireworks-tech-graph/assets/samples/sample-style1-flat.png +0 -0
  12. package/config/agent/skills/fireworks-tech-graph/assets/samples/sample-style2-dark.png +0 -0
  13. package/config/agent/skills/fireworks-tech-graph/assets/samples/sample-style3-blueprint.png +0 -0
  14. package/config/agent/skills/fireworks-tech-graph/assets/samples/sample-style4-notion.png +0 -0
  15. package/config/agent/skills/fireworks-tech-graph/assets/samples/sample-style5-glass.png +0 -0
  16. package/config/agent/skills/fireworks-tech-graph/assets/samples/sample-style6-claude.png +0 -0
  17. package/config/agent/skills/fireworks-tech-graph/assets/samples/sample-style7-openai.png +0 -0
  18. package/config/agent/skills/fireworks-tech-graph/fixtures/agent-memory-types-style4.json +181 -0
  19. package/config/agent/skills/fireworks-tech-graph/fixtures/api-flow-style7.json +40 -0
  20. package/config/agent/skills/fireworks-tech-graph/fixtures/mem0-style1.json +297 -0
  21. package/config/agent/skills/fireworks-tech-graph/fixtures/microservices-style3.json +64 -0
  22. package/config/agent/skills/fireworks-tech-graph/fixtures/multi-agent-style5.json +45 -0
  23. package/config/agent/skills/fireworks-tech-graph/fixtures/system-architecture-style6.json +48 -0
  24. package/config/agent/skills/fireworks-tech-graph/fixtures/tool-call-style2.json +182 -0
  25. package/config/agent/skills/fireworks-tech-graph/package.json +42 -0
  26. package/config/agent/skills/fireworks-tech-graph/references/icons.md +406 -0
  27. package/config/agent/skills/fireworks-tech-graph/references/style-1-flat-icon.md +108 -0
  28. package/config/agent/skills/fireworks-tech-graph/references/style-2-dark-terminal.md +107 -0
  29. package/config/agent/skills/fireworks-tech-graph/references/style-3-blueprint.md +113 -0
  30. package/config/agent/skills/fireworks-tech-graph/references/style-4-notion-clean.md +94 -0
  31. package/config/agent/skills/fireworks-tech-graph/references/style-5-glassmorphism.md +125 -0
  32. package/config/agent/skills/fireworks-tech-graph/references/style-6-claude-official.md +209 -0
  33. package/config/agent/skills/fireworks-tech-graph/references/style-7-openai.md +215 -0
  34. package/config/agent/skills/fireworks-tech-graph/references/style-diagram-matrix.md +135 -0
  35. package/config/agent/skills/fireworks-tech-graph/references/svg-layout-best-practices.md +100 -0
  36. package/config/agent/skills/fireworks-tech-graph/scripts/README.md +244 -0
  37. package/config/agent/skills/fireworks-tech-graph/scripts/generate-diagram.sh +157 -0
  38. package/config/agent/skills/fireworks-tech-graph/scripts/generate-from-template.py +1556 -0
  39. package/config/agent/skills/fireworks-tech-graph/scripts/test-all-styles.sh +135 -0
  40. package/config/agent/skills/fireworks-tech-graph/scripts/validate-svg.sh +292 -0
  41. package/config/agent/skills/fireworks-tech-graph/templates/agent-architecture.svg +28 -0
  42. package/config/agent/skills/fireworks-tech-graph/templates/architecture.svg +23 -0
  43. package/config/agent/skills/fireworks-tech-graph/templates/comparison-matrix.svg +14 -0
  44. package/config/agent/skills/fireworks-tech-graph/templates/data-flow.svg +28 -0
  45. package/config/agent/skills/fireworks-tech-graph/templates/er-diagram.svg +21 -0
  46. package/config/agent/skills/fireworks-tech-graph/templates/flowchart.svg +21 -0
  47. package/config/agent/skills/fireworks-tech-graph/templates/sequence.svg +20 -0
  48. package/config/agent/skills/fireworks-tech-graph/templates/state-machine.svg +20 -0
  49. package/config/agent/skills/fireworks-tech-graph/templates/timeline.svg +19 -0
  50. package/config/agent/skills/fireworks-tech-graph/templates/use-case.svg +21 -0
  51. package/config/agent/skills/impeccable/adapt/SKILL.md +205 -0
  52. package/config/agent/skills/impeccable/animate/SKILL.md +178 -0
  53. package/config/agent/skills/impeccable/arrange/SKILL.md +128 -0
  54. package/config/agent/skills/impeccable/audit/SKILL.md +129 -0
  55. package/config/agent/skills/impeccable/bolder/SKILL.md +120 -0
  56. package/config/agent/skills/impeccable/clarify/SKILL.md +186 -0
  57. package/config/agent/skills/impeccable/colorize/SKILL.md +146 -0
  58. package/config/agent/skills/impeccable/critique/SKILL.md +123 -0
  59. package/config/agent/skills/impeccable/delight/SKILL.md +307 -0
  60. package/config/agent/skills/impeccable/distill/SKILL.md +125 -0
  61. package/config/agent/skills/impeccable/extract/SKILL.md +95 -0
  62. package/config/agent/skills/impeccable/frontend-design/reference/color-and-contrast.md +132 -0
  63. package/config/agent/skills/impeccable/frontend-design/reference/interaction-design.md +123 -0
  64. package/config/agent/skills/impeccable/frontend-design/reference/motion-design.md +99 -0
  65. package/config/agent/skills/impeccable/frontend-design/reference/responsive-design.md +114 -0
  66. package/config/agent/skills/impeccable/frontend-design/reference/spatial-design.md +100 -0
  67. package/config/agent/skills/impeccable/frontend-design/reference/typography.md +133 -0
  68. package/config/agent/skills/impeccable/frontend-design/reference/ux-writing.md +107 -0
  69. package/config/agent/skills/impeccable/harden/SKILL.md +358 -0
  70. package/config/agent/skills/impeccable/normalize/SKILL.md +74 -0
  71. package/config/agent/skills/impeccable/onboard/SKILL.md +249 -0
  72. package/config/agent/skills/impeccable/optimize/SKILL.md +269 -0
  73. package/config/agent/skills/impeccable/overdrive/SKILL.md +145 -0
  74. package/config/agent/skills/impeccable/polish/SKILL.md +206 -0
  75. package/config/agent/skills/impeccable/quieter/SKILL.md +106 -0
  76. package/config/agent/skills/impeccable/teach-impeccable/SKILL.md +72 -0
  77. package/config/agent/skills/impeccable/typeset/SKILL.md +119 -0
  78. package/package.json +1 -1
@@ -0,0 +1,528 @@
1
+ [English](README.md) | [中文](README.zh.md)
2
+
3
+ # fireworks-tech-graph
4
+
5
+ > **Stop drawing diagrams by hand.** Describe your system in English or Chinese — get publication-ready SVG + PNG technical diagrams in seconds.
6
+
7
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
8
+ [![Claude Code Skill](https://img.shields.io/badge/Claude%20Code-Skill-blue)](https://claude.ai/code)
9
+ [![7 Visual Styles](https://img.shields.io/badge/Styles-7-purple)]()
10
+ [![14 Diagram Types](https://img.shields.io/badge/Diagram%20Types-14-green)]()
11
+ [![UML Support](https://img.shields.io/badge/UML-Full%20Support-orange)]()
12
+
13
+ ---
14
+
15
+ ## Overview
16
+
17
+ `fireworks-tech-graph` turns natural language descriptions into polished SVG diagrams, then exports them as high-resolution PNG via `rsvg-convert`. It ships with **7 visual styles** and deep knowledge of AI/Agent domain patterns (RAG, Agentic Search, Mem0, Multi-Agent, Tool Call flows), plus full support for all 14 UML diagram types.
18
+
19
+ ```
20
+ User: "Generate a Mem0 memory architecture diagram, dark style"
21
+ → Skill classifies: Memory Architecture Diagram, Style 2
22
+ → Generates SVG with swim lanes, cylinders, semantic arrows
23
+ → Exports 1920px PNG
24
+ → Reports: mem0-architecture.svg / mem0-architecture.png
25
+ ```
26
+
27
+ ---
28
+
29
+ ## Showcase
30
+
31
+ > All samples exported at 1920px width (2× retina) via `rsvg-convert`. PNG is lossless and the right choice for technical diagrams — sharp edges, no JPEG compression artifacts on text/lines.
32
+
33
+ ### Style 1 — Flat Icon (default)
34
+ *Mem0 Memory Architecture — white background, semantic arrows, layered memory system*
35
+ ![Style 1 — Flat Icon](assets/samples/sample-style1-flat.png)
36
+
37
+ ### Style 2 — Dark Terminal
38
+ *Tool Call Flow — dark background, neon accents, monospace font*
39
+ ![Style 2 — Dark Terminal](assets/samples/sample-style2-dark.png)
40
+
41
+ ### Style 3 — Blueprint
42
+ *Microservices Architecture — deep blue background, grid lines, cyan strokes*
43
+ ![Style 3 — Blueprint](assets/samples/sample-style3-blueprint.png)
44
+
45
+ ### Style 4 — Notion Clean
46
+ *Agent Memory Types — minimal white, single accent color*
47
+ ![Style 4 — Notion Clean](assets/samples/sample-style4-notion.png)
48
+
49
+ ### Style 5 — Glassmorphism
50
+ *Multi-Agent Collaboration — dark gradient background, frosted glass cards*
51
+ ![Style 5 — Glassmorphism](assets/samples/sample-style5-glass.png)
52
+
53
+ ### Style 6 — Claude Official
54
+ *System Architecture — warm cream background (#f8f6f3), Anthropic brand colors, clean professional aesthetic*
55
+ ![Style 6 — Claude Official](assets/samples/sample-style6-claude.png)
56
+
57
+ ### Style 7 — OpenAI Official
58
+ *API Integration Flow — pure white background, OpenAI brand palette, modern minimalist design*
59
+ ![Style 7 — OpenAI Official](assets/samples/sample-style7-openai.png)
60
+
61
+ ---
62
+
63
+ ## Stable Prompt Recipes
64
+
65
+ Use prompts like these when you want the model to stay close to the repo's strongest regression-tested outputs:
66
+
67
+ ### Style 1 — Flat Icon
68
+ ```text
69
+ Draw a Mem0 memory architecture diagram in style 1 (Flat Icon).
70
+ Use four horizontal sections: Input Layer, Memory Manager, Storage Layer, Output / Retrieval.
71
+ Include User, AI App / Agent, LLM, mem0 Client, Memory Manager, Vector Store, Graph DB, Key-Value Store, History Store, Context Builder, Ranked Results, Personalized Response.
72
+ Use semantic arrows for read, write, control, and data flow. Keep the layout clean and product-doc friendly.
73
+ ```
74
+
75
+ ### Style 2 — Dark Terminal
76
+ ```text
77
+ Draw a tool call flow diagram in style 2 (Dark Terminal).
78
+ Show User query, Retrieve chunks, Generate answer, Knowledge base, Agent, Terminal, Source documents, and Grounded answer.
79
+ Use terminal chrome, neon accents, monospace typography, and semantic arrows for retrieval, synthesis, and embedding update.
80
+ ```
81
+
82
+ ### Style 3 — Blueprint
83
+ ```text
84
+ Draw a microservices architecture diagram in style 3 (Blueprint).
85
+ Create numbered engineering sections like 01 // EDGE, 02 // APPLICATION SERVICES, 03 // DATA + EVENT INFRA, 04 // OBSERVABILITY.
86
+ Include Client Apps, API Gateway, Auth / Policy, three services, Event Router, Postgres, Redis Cache, Warehouse, and Metrics / Traces.
87
+ Use blueprint grid, cyan strokes, and a bottom-right title block.
88
+ ```
89
+
90
+ ### Style 4 — Notion Clean
91
+ ```text
92
+ Draw an agent memory types diagram in style 4 (Notion Clean).
93
+ Compare Sensory Memory, Working Memory, Episodic Memory, Semantic Memory, and Procedural Memory around a central Agent core.
94
+ Use a minimal white layout, neutral borders, one accent color for arrows, and short storage tags for each memory type.
95
+ ```
96
+
97
+ ### Style 5 — Glassmorphism
98
+ ```text
99
+ Draw a multi-agent collaboration diagram in style 5 (Glassmorphism).
100
+ Use three sections: Mission Control, Specialist Agents, and Synthesis.
101
+ Include User brief, Coordinator Agent, Research Agent, Coding Agent, Review Agent, Shared Memory, Synthesis Engine, and Final response.
102
+ Use frosted cards, soft glow, and semantic arrows for delegation, shared memory writes, and synthesis output.
103
+ ```
104
+
105
+ ### Style 6 — Claude Official
106
+ ```text
107
+ Draw a system architecture diagram in style 6 (Claude Official).
108
+ Use left-side layer labels: Interface Layer, Core Layer, Foundation Layer.
109
+ Include Client Surface, Gateway, Task Planner, Model Runtime, Policy Guardrails, Memory Store, Tool Runtime, Observability, and Registry.
110
+ Use warm cream background, restrained brand-like palette, generous whitespace, and a bottom-right legend.
111
+ ```
112
+
113
+ ### Style 7 — OpenAI Official
114
+ ```text
115
+ Draw an API integration flow diagram in style 7 (OpenAI Official).
116
+ Use three sections: Entry, Model + Tools, and Delivery.
117
+ Include Application, OpenAI SDK Layer, Prompt Builder, Model Runtime, Tool Calls, Response Formatter, Observability, and Release Control.
118
+ Keep the look minimal, white, precise, and modern with clean green-accented arrows.
119
+ ```
120
+
121
+ ---
122
+
123
+ ## Features
124
+
125
+ - **7 visual styles** — from clean white docs to dark neon to frosted glass to official brand styles
126
+ - **Executable style system** — style guides are encoded into the generator, not only documented in markdown
127
+ - **14 diagram types** — Full UML support (Class, Component, Deployment, Package, Composite Structure, Object, Use Case, Activity, State Machine, Sequence, Communication, Timing, Interaction Overview, ER Diagram) plus AI/Agent domain diagrams
128
+ - **AI/Agent domain patterns** — RAG, Agentic Search, Mem0, Multi-Agent, Tool Call, and more built-in
129
+ - **Semantic shape vocabulary** — LLM = double-border rect, Agent = hexagon, Vector Store = ringed cylinder
130
+ - **Semantic arrow system** — color + dash pattern encode meaning (write vs read vs async vs loop)
131
+ - **Product icons** — 40+ products with brand colors: OpenAI, Anthropic, Pinecone, Weaviate, Kafka, PostgreSQL…
132
+ - **Swim lane grouping** — automatic layer labeling for complex architectures
133
+ - **SVG + PNG output** — SVG for editing, 1920px PNG for embedding
134
+ - **rsvg-convert compatible** — no external font fetching, pure inline SVG
135
+
136
+ ---
137
+
138
+ ## Installation
139
+
140
+ ```bash
141
+ npx skills add yizhiyanhua-ai/fireworks-tech-graph
142
+ ```
143
+
144
+ This skill is installed from the GitHub repository. The npm package page is the public package/distribution page:
145
+
146
+ ```text
147
+ https://www.npmjs.com/package/@yizhiyanhua-ai/fireworks-tech-graph
148
+ ```
149
+
150
+ Do not use the npm package name with `skills add`, because the CLI resolves install sources as GitHub/local paths.
151
+
152
+ ## Update
153
+
154
+ ```bash
155
+ npx skills add yizhiyanhua-ai/fireworks-tech-graph --force -g -y
156
+ ```
157
+
158
+ Re-run `add --force` to pull the latest version of this skill.
159
+
160
+ Or clone directly:
161
+
162
+ ```bash
163
+ git clone https://github.com/yizhiyanhua-ai/fireworks-tech-graph.git ~/.claude/skills/fireworks-tech-graph
164
+ ```
165
+
166
+ ---
167
+
168
+ ## Requirements
169
+
170
+ ```bash
171
+ # macOS
172
+ brew install librsvg
173
+
174
+ # Ubuntu/Debian
175
+ sudo apt install librsvg2-bin
176
+
177
+ # Verify
178
+ rsvg-convert --version
179
+ ```
180
+
181
+ ---
182
+
183
+ ## Why Not Mermaid or draw.io?
184
+
185
+ | | Mermaid | draw.io | **fireworks-tech-graph** |
186
+ |--|---------|---------|--------------------------|
187
+ | Natural language input | ✗ | ✗ | ✅ |
188
+ | AI/Agent domain patterns | ✗ | ✗ | ✅ |
189
+ | Multiple visual styles | ✗ | manual | ✅ 5 built-in |
190
+ | High-res PNG export | ✗ | manual | ✅ auto 1920px |
191
+ | Semantic arrow colors | ✗ | manual | ✅ auto |
192
+ | No online tool needed | ✅ | ✗ | ✅ |
193
+
194
+ Mermaid is great for quick inline diagrams in markdown. draw.io is great for manual polishing. `fireworks-tech-graph` is optimized for **describing a system and getting a polished diagram immediately**, without writing DSL syntax or clicking around a GUI.
195
+
196
+ ---
197
+
198
+ ## Usage
199
+
200
+ ### Trigger phrases
201
+
202
+ The skill auto-triggers on:
203
+
204
+ ```
205
+ generate diagram / draw diagram / create chart / visualize
206
+ architecture diagram / flowchart / sequence diagram / data flow
207
+ ```
208
+
209
+ ### Basic usage
210
+
211
+ ```
212
+ Draw a RAG pipeline flowchart
213
+ ```
214
+
215
+ ```
216
+ Generate an Agentic Search architecture diagram
217
+ ```
218
+
219
+ ### Specify style
220
+
221
+ ```
222
+ Draw a microservices architecture diagram, style 2 (dark terminal)
223
+ ```
224
+
225
+ ```
226
+ Draw a multi-agent collaboration diagram --style glassmorphism
227
+ ```
228
+
229
+ ### Specify output path
230
+
231
+ ```
232
+ Generate a Mem0 architecture diagram, output to ~/Desktop/
233
+ ```
234
+
235
+ ```
236
+ Create a tool call flow diagram --output /tmp/diagrams/
237
+ ```
238
+
239
+ ---
240
+
241
+ ## Example Prompts by Scenario
242
+
243
+ ### AI/Agent Systems
244
+
245
+ ```
246
+ Compare Agentic RAG vs standard RAG in a feature matrix, Notion clean style
247
+ ```
248
+ → Comparison matrix: RAG vs Agentic RAG, covering retrieval strategy, agent loop, tool use
249
+
250
+ ```
251
+ Generate a Mem0 memory architecture diagram with vector store, graph DB, KV store, and memory manager
252
+ ```
253
+ → Memory Architecture with swim lanes: Input → Memory Manager → Storage tiers → Retrieval
254
+
255
+ ```
256
+ Draw a Multi-Agent diagram: Orchestrator dispatches 3 SubAgents (search / compute / code execution), results aggregated
257
+ ```
258
+ → Agent Architecture with hexagons, tool layers, and result aggregation
259
+
260
+ ```
261
+ Visualize the Tool Call execution flow: LLM → Tool Selector → Execution → Parser → back to LLM
262
+ ```
263
+ → Flowchart with decision loop showing tool invocation cycle
264
+
265
+ ```
266
+ Draw the 5 agent memory types: Sensory, Working, Episodic, Semantic, Procedural
267
+ ```
268
+ → Mind map or layered architecture showing memory tiers from sensory to procedural
269
+
270
+ ### Infrastructure & Cloud
271
+
272
+ ```
273
+ Draw a microservices architecture: Client → API Gateway → [User Service / Order Service / Payment Service] → PostgreSQL + Redis
274
+ ```
275
+ → Architecture diagram with horizontal layers, swim lanes per service cluster
276
+
277
+ ```
278
+ Generate a data pipeline diagram: Kafka → Spark processing → write to S3 → Athena query
279
+ ```
280
+ → Data flow diagram with labeled arrows (stream / batch / query)
281
+
282
+ ```
283
+ Draw a Kubernetes deployment: Ingress → Service → [Pod × 3] → ConfigMap + PersistentVolume
284
+ ```
285
+ → Architecture with dashed containers per namespace, solid arrows for traffic flow
286
+
287
+ ### API & Sequence Flows
288
+
289
+ ```
290
+ Draw an OAuth2 authorization code flow sequence diagram: User → Client → Auth Server → Resource Server
291
+ ```
292
+ → Sequence diagram with vertical lifelines and activation boxes
293
+
294
+ ```
295
+ Draw the ChatGPT Plugin call sequence diagram
296
+ ```
297
+ → Sequence: User → ChatGPT → Plugin Manifest → API → Response chain
298
+
299
+ ### Decision & Process Flows
300
+
301
+ ```
302
+ Draw a pre-launch QA flowchart for an AI app: Code Review → Security Scan → Performance Test → Manual Approval → Deploy
303
+ ```
304
+ → Flowchart with diamond decision nodes and parallel branches
305
+
306
+ ```
307
+ Generate a feature comparison matrix: RAG vs Fine-tuning vs Prompt Engineering
308
+ ```
309
+ → Comparison matrix with checked/unchecked cells across cost, latency, accuracy, flexibility
310
+
311
+ ### Concept Maps
312
+
313
+ ```
314
+ Visualize the LLM application tech stack: from foundation model to SDK to app framework to deployment
315
+ ```
316
+ → Layered architecture or mind map from model layer to product layer
317
+
318
+ ```
319
+ Draw an AI Agent capability map: Perception / Memory / Reasoning / Action / Learning
320
+ ```
321
+ → Mind map with central "AI Agent" node and 5 radial branches
322
+
323
+ ---
324
+
325
+ ## Styles
326
+
327
+ | # | Name | Background | Font | Best For |
328
+ |---|------|-----------|------|----------|
329
+ | 1 | **Flat Icon** *(default)* | `#ffffff` | Helvetica | Blogs, slides, docs |
330
+ | 2 | **Dark Terminal** | `#0f0f1a` | SF Mono / Fira Code | GitHub README, dev articles |
331
+ | 3 | **Blueprint** | `#0a1628` | Courier New | Architecture docs, engineering |
332
+ | 4 | **Notion Clean** | `#ffffff` | system-ui | Notion, Confluence, wikis |
333
+ | 5 | **Glassmorphism** | `#0d1117` gradient | Inter | Product sites, keynotes |
334
+ | 6 | **Claude Official** | `#f8f6f3` | system-ui | Anthropic-style diagrams, warm aesthetic |
335
+ | 7 | **OpenAI Official** | `#ffffff` | system-ui | OpenAI-style diagrams, clean modern look |
336
+
337
+ Each style has a dedicated reference file in `references/` with exact color tokens, SVG patterns, and templates.
338
+ The generator also consumes style-aware structure fields such as `containers`, semantic `nodes[].kind`, `arrows[].flow`, and explicit port anchors so sample-grade layouts can be reproduced more consistently.
339
+
340
+ Useful high-leverage fields for style-specific polish:
341
+ - `style_overrides` to nudge title alignment or palette tokens without forking a full style
342
+ - `containers[].header_prefix` / `containers[].header_text` for blueprint-style numbered section headers such as `01 // EDGE`
343
+ - `containers[].side_label` for Claude-style left layer labels
344
+ - `window_controls`, `meta_left`, `meta_center`, `meta_right` for terminal / document chrome
345
+ - `blueprint_title_block` for engineering title boxes in style 3
346
+
347
+ ### Style Selection Guide
348
+
349
+ **For UML Diagrams:**
350
+ - **Class/Component/Package**: Style 1 (Flat Icon) or Style 4 (Notion Clean) — clear structure, easy to read
351
+ - **Sequence/Timing**: Style 2 (Dark Terminal) — monospace fonts help with alignment
352
+ - **State Machine/Activity**: Style 3 (Blueprint) — engineering aesthetic fits process flows
353
+ - **Use Case/Interview**: Style 1 (Flat Icon) — colorful, accessible
354
+
355
+ **For AI/Agent Diagrams:**
356
+ - **RAG/Agentic Search**: Style 2 (Dark Terminal) or Style 5 (Glassmorphism) — tech-forward aesthetic
357
+ - **Memory Architecture**: Style 3 (Blueprint) — emphasizes layered storage tiers
358
+ - **Multi-Agent**: Style 5 (Glassmorphism) — frosted cards distinguish agent boundaries
359
+
360
+ **For Documentation:**
361
+ - **Internal docs**: Style 4 (Notion Clean) — minimal, wiki-friendly
362
+ - **Blog posts**: Style 1 (Flat Icon) — colorful, engaging
363
+ - **GitHub README**: Style 2 (Dark Terminal) — matches dark theme
364
+ - **Presentations**: Style 5 (Glassmorphism) or Style 6 (Claude Official) — polished
365
+
366
+ **Brand-Specific:**
367
+ - **Anthropic/Claude projects**: Style 6 (Claude Official) — warm cream background, brand colors
368
+ - **OpenAI projects**: Style 7 (OpenAI Official) — clean white, OpenAI palette
369
+
370
+ ---
371
+
372
+ ## Diagram Types
373
+
374
+ | Type | Description | Key Layout Rule |
375
+ |------|-------------|-----------------|
376
+ | **Architecture** | Services, components, cloud infra | Horizontal layers top→bottom |
377
+ | **Data Flow** | What data moves where | Label every arrow with data type |
378
+ | **Flowchart** | Decisions, process steps | Diamond = decision, top→bottom |
379
+ | **Agent Architecture** | LLM + tools + memory | 5-layer model: Input/Agent/Memory/Tool/Output |
380
+ | **Memory Architecture** | Mem0, MemGPT-style | Separate read/write paths, memory tiers |
381
+ | **Sequence** | API call chains, time-ordered | Vertical lifelines, horizontal messages |
382
+ | **Comparison** | Feature matrix, side-by-side | Column = system, row = attribute |
383
+ | **Mind Map** | Concept maps, radial | Central node, bezier branches |
384
+
385
+ ### UML Diagram Support (14 Types)
386
+
387
+ | UML Type | Description | Best Style |
388
+ |----------|-------------|------------|
389
+ | **Class Diagram** | Classes, attributes, methods, relationships | Style 1, 4 |
390
+ | **Component Diagram** | Software components and dependencies | Style 1, 3 |
391
+ | **Deployment Diagram** | Hardware nodes and software deployment | Style 3 |
392
+ | **Package Diagram** | Package organization and dependencies | Style 1, 4 |
393
+ | **Composite Structure** | Internal structure of classes/components | Style 1, 3 |
394
+ | **Object Diagram** | Object instances and relationships | Style 1, 4 |
395
+ | **Use Case Diagram** | Actors, use cases, system boundaries | Style 1 |
396
+ | **Activity Diagram** | Workflows, parallel processes | Style 3 |
397
+ | **State Machine** | State transitions and events | Style 2, 3 |
398
+ | **Sequence Diagram** | Message exchanges over time | Style 2 |
399
+ | **Communication Diagram** | Object interactions and messages | Style 1, 2 |
400
+ | **Timing Diagram** | State changes over time | Style 2 |
401
+ | **Interaction Overview** | High-level interaction flow | Style 1, 2 |
402
+ | **ER Diagram** | Entity-relationship data models | Style 1, 3 |
403
+
404
+ ---
405
+
406
+ ## AI/Agent Domain Patterns
407
+
408
+ Built-in pattern knowledge:
409
+
410
+ ```
411
+ RAG Pipeline → Query → Embed → VectorSearch → Retrieve → LLM → Response
412
+ Agentic RAG → adds Agent loop + Tool use
413
+ Agentic Search → Query → Planner → [Search/Calc/Code] → Synthesizer
414
+ Mem0 Memory Layer → Input → Memory Manager → [VectorDB + GraphDB] → Context
415
+ Agent Memory Types → Sensory → Working → Episodic → Semantic → Procedural
416
+ Multi-Agent → Orchestrator → [SubAgent×N] → Aggregator → Output
417
+ Tool Call Flow → LLM → Tool Selector → Execution → Parser → LLM (loop)
418
+ ```
419
+
420
+ ---
421
+
422
+ ## Shape Vocabulary
423
+
424
+ Shapes encode semantic meaning consistently across all styles:
425
+
426
+ | Concept | Shape |
427
+ |---------|-------|
428
+ | User / Human | Circle + body |
429
+ | LLM / Model | Rounded rect, double border, ⚡ |
430
+ | Agent / Orchestrator | Hexagon |
431
+ | Memory (short-term) | Dashed-border rounded rect |
432
+ | Memory (long-term) | Solid cylinder |
433
+ | Vector Store | Cylinder with inner rings |
434
+ | Graph DB | 3-circle cluster |
435
+ | Tool / Function | Rect with ⚙ |
436
+ | API / Gateway | Hexagon (single border) |
437
+ | Queue / Stream | Horizontal pipe/tube |
438
+ | Document / File | Folded-corner rect |
439
+ | Browser / UI | Rect with 3-dot titlebar |
440
+ | Decision | Diamond |
441
+ | External Service | Dashed-border rect |
442
+
443
+ ---
444
+
445
+ ## Arrow Semantics
446
+
447
+ | Flow Type | Stroke | Dash | Meaning |
448
+ |-----------|--------|------|---------|
449
+ | Primary data flow | 2px solid | — | Main request/response |
450
+ | Control / trigger | 1.5px solid | — | System A triggers B |
451
+ | Memory read | 1.5px solid | — | Retrieve from store |
452
+ | Memory write | 1.5px | `5,3` | Write/store operation |
453
+ | Async / event | 1.5px | `4,2` | Non-blocking |
454
+ | Feedback / loop | 1.5px curved | — | Iterative reasoning |
455
+
456
+ ---
457
+
458
+ ## File Structure
459
+
460
+ ```
461
+ fireworks-tech-graph/
462
+ ├── SKILL.md # Main skill — diagram types, layout rules, shape vocab
463
+ ├── README.md # This file (English)
464
+ ├── README.zh.md # Chinese version
465
+ ├── references/
466
+ │ ├── style-1-flat-icon.md # White background, colored accents
467
+ │ ├── style-2-dark-terminal.md # Dark bg, neon accents, monospace
468
+ │ ├── style-3-blueprint.md # Blueprint grid, cyan lines
469
+ │ ├── style-4-notion-clean.md # Minimal, white, single arrow color
470
+ │ ├── style-5-glassmorphism.md # Dark gradient, frosted glass cards
471
+ │ ├── style-6-claude-official.md # Warm cream background, Anthropic brand
472
+ │ ├── style-7-openai.md # Clean white, OpenAI brand palette
473
+ │ └── icons.md # 40+ product icons + semantic shapes
474
+ ├── agents/
475
+ │ └── openai.yaml # Agent metadata for compatible runtimes
476
+ ├── fixtures/
477
+ │ ├── mem0-style1.json # Style 1 regression fixture
478
+ │ ├── tool-call-style2.json # Style 2 regression fixture
479
+ │ └── ... # Additional sample-grade fixtures per style
480
+ ├── scripts/
481
+ │ ├── generate-diagram.sh # Validate SVG + export PNG
482
+ │ ├── generate-from-template.py # Create starter SVGs from templates
483
+ │ ├── validate-svg.sh # Validate SVG syntax
484
+ │ └── test-all-styles.sh # Batch test all styles
485
+ ├── assets/
486
+ │ └── samples/ # Showcase diagram PNGs
487
+ ├── templates/
488
+ │ ├── architecture.svg # Architecture starter template
489
+ │ ├── data-flow.svg # Data-flow starter template
490
+ │ └── ... # Additional diagram templates
491
+ └── agentloop-core.svg # Included sample SVG
492
+ ```
493
+
494
+ ---
495
+
496
+ ## Product Icon Coverage
497
+
498
+ **AI/ML:** OpenAI, Anthropic/Claude, Google Gemini, Meta LLaMA, Mistral, Cohere, Groq, Hugging Face
499
+
500
+ **AI Frameworks:** Mem0, LangChain, LlamaIndex, LangGraph, CrewAI, AutoGen, DSPy, Haystack
501
+
502
+ **Vector DBs:** Pinecone, Weaviate, Qdrant, Chroma, Milvus, pgvector, Faiss
503
+
504
+ **Databases:** PostgreSQL, MySQL, MongoDB, Redis, Elasticsearch, Neo4j, Cassandra
505
+
506
+ **Messaging:** Kafka, RabbitMQ, NATS, Pulsar
507
+
508
+ **Cloud:** AWS, GCP, Azure, Cloudflare, Vercel, Docker, Kubernetes
509
+
510
+ **Observability:** Grafana, Prometheus, Datadog, LangSmith, Langfuse, Arize
511
+
512
+ ---
513
+
514
+ ## Troubleshooting
515
+
516
+ | Symptom | Cause | Fix |
517
+ |---------|-------|-----|
518
+ | PNG is blank or all-black | `@import url()` in SVG — rsvg-convert can't fetch fonts | Remove `@import`, use system font stack |
519
+ | PNG not generated | `rsvg-convert` not installed | `brew install librsvg` (macOS) or `apt install librsvg2-bin` |
520
+ | Diagram cut off at bottom | ViewBox height too short | Increase `height` in `viewBox="0 0 960 <height>"` |
521
+ | Text overflowing boxes | Labels too long | Add `text-anchor="middle"` + `<clipPath>` or shorten label |
522
+ | Icons not rendering | External CDN URL in rsvg-convert context | Use inline SVG paths from `references/icons.md` |
523
+
524
+ ---
525
+
526
+ ## License
527
+
528
+ MIT © 2025 fireworks-tech-graph contributors