用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/trungdo9/ClauKit --skill tech-graph命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | tech-graph |
| description | Create publication-ready SVG technical diagrams |
| category | Documentation & Content |
| status | active |
Generate publication-quality technical diagrams as SVG code. Tech-graph tools (GraphViz DOT, mingrammer/diagrams, D3.js + Graphviz) render structured architecture, infrastructure, and graph visualizations suitable for documentation, whitepapers, and presentations.
Do NOT use when: Needing hand-drawn casual style (use Excalidraw), requiring interactive pan/zoom/filters (use D3.js directly), or building real-time dashboards (overhead not justified).
dot -Tsvg, Python script with diagram rendering, or D3 rendering pipelineDOT is a graph description language used by GraphViz (AT&T Bell Labs 1991, now open-source) for automatic layout. Define nodes and edges; GraphViz applies layout algorithms (Graphviz, neato, fdp) to compute positions. Output: SVG, PNG, PDF.
Example:
digraph G {
A -> B [label="depends"];
B -> C;
C -> A [style=dashed];
}
Simple syntax, powerful auto-layout. No explicit positioning; let algorithm optimize.
Diagrams library (Python 3.9+) renders cloud architecture using AWS/Azure/GCP provider icons. Define infrastructure as code; generates Graphviz DOT internally; outputs SVG/PNG. Ideal for visualizing cloud deployments, Kubernetes clusters, on-premises resources.
Example:
from diagrams import Diagram
from diagrams.aws.compute import EC2
from diagrams.aws.database import RDS
with Diagram("Architecture"):
EC2("web") >> RDS("db")
Requires Graphviz installed (apt-get install graphviz).
d3-graphviz library combines D3.js rendering with Graphviz layout via WebAssembly. Enables interactive SVG: animated transitions, hover effects, click handlers. Suitable for browser-based diagram exploration.
Performance caveat: SVG rendering slower than Canvas for large graphs; best for <500 nodes.
GraphViz (DOT):
strict digraph {
node [shape=box, style=filled, fillcolor=lightblue];
API [label="REST API"];
Service1 [label="Service A"];
Service2 [label="Service B"];
DB [shape=cylinder, label="Database"];
API -> Service1 [label="calls"];
API -> Service2 [label="calls"];
Service1 -> DB;
Service2 -> DB;
}
Render: dot -Tsvg architecture.dot -o architecture.svg
Mingrammer (Python):
from diagrams import Diagram, Cluster
from diagrams.aws.compute import EC2, Lambda
from diagrams.aws.network import ELB
from diagrams.aws.database import RDS
with Diagram("Microservices", show=False):
lb = ELB("load balancer")
with Cluster("Compute"):
web = [EC2("web1"), EC2("web2")]
api = Lambda("api")
db = RDS("postgres")
lb >> web >> api >> db
Outputs microservices.png with AWS icons automatically positioned.
digraph, add styling incrementally)graphviz binary; container/deployment must include it)