@drunkcoding/agents-and-skills 0.0.44 → 0.0.46

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