重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
tikz-flowchart by yzlnew/infra-skills
npx skills add https://github.com/yzlnew/infra-skills --skill tikz-flowchart此技能提供了一个标准化的模板/样式,用于使用 LaTeX TikZ 建立专业的技术图表。它专为创建流程图、架构图和过程流而设计。
当在此项目中要求“创建流程图”或“绘制图表”时,请使用下面的模板作为起点。根据具体内容需要调整样式(dataNode、opNode 等)。
模板使用类似 Google Material 的调色板:
greenFill/greenStroke):数据、输入、输出、张量。memFill/memStroke):内存、权重、检查点。coreFill/):操作、计算内核、进程。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
coreStrokeoptFill/optStroke):优化、特殊步骤。procFill/procStroke):通用处理步骤。dataNode:用于数据流的矩形(绿色)。memNode:用于存储/权重的圆柱体(橙色)。opNode:用于操作的矩形(蓝色)。kernelBox:用于分组内部内核逻辑的虚线容器。group:用于逻辑分组阶段/步骤的虚线背景容器。使用此模板作为基础:
\documentclass[tikz,border=10pt]{standalone}
\usepackage{tikz}
\usepackage{amssymb}
\usetikzlibrary{shapes.geometric, arrows.meta, positioning, fit, backgrounds, calc, shadows.blur, decorations.pathreplacing}
% --- Color Definitions ---
\definecolor{greenFill}{HTML}{E8F5E9}
\definecolor{greenStroke}{HTML}{43A047}
\definecolor{memFill}{HTML}{FFF3E0}
\definecolor{memStroke}{HTML}{FFB74D}
\definecolor{coreFill}{HTML}{E1F5FE}
\definecolor{coreStroke}{HTML}{0277BD}
\definecolor{optFill}{HTML}{FCE4EC}
\definecolor{optStroke}{HTML}{E91E63}
\definecolor{procFill}{HTML}{FFF9C4}
\definecolor{procStroke}{HTML}{FBC02D}
\begin{document}
\begin{tikzpicture}[
node distance=1.2cm and 1.8cm, % Vertical and Horizontal spacing
font=\sffamily\footnotesize,
>=Stealth,
% --- Styles ---
dataNode/.style={
rectangle, rounded corners=3pt,
draw=greenStroke, thick,
fill=greenFill,
minimum width=2.4cm, minimum height=1.2cm,
align=center,
drop shadow
},
memNode/.style={
cylinder, cylinder uses custom fill,
cylinder body fill=memFill, cylinder end fill=memFill!90!gray,
shape border rotate=90,
aspect=0.25,
draw=memStroke, thick,
minimum width=1.8cm, minimum height=1.3cm,
align=center
},
opNode/.style={
rectangle, rounded corners=3pt,
draw=coreStroke, thick,
fill=coreFill,
minimum width=2.6cm, minimum height=1.2cm,
align=center,
drop shadow
},
kernelBox/.style={
rectangle, rounded corners=8pt,
draw=coreStroke, thick, dashed,
fill=coreFill!20,
inner sep=12pt,
align=center
},
group/.style={
draw=gray!30, dashed, rounded corners=8pt, inner sep=12pt, fill=gray!5
},
edgeLabel/.style={
font=\scriptsize,
text=black!80,
align=center,
inner sep=1pt
}
]
% --- Nodes ---
% 示例:
% \node[dataNode] (Input) {Input Data};
% \node[opNode, right=of Input] (Process) {Process};
% --- Layout Containers (Optional) ---
% \begin{scope}[on background layer]
% \node[group, fit=(Input)(Process)] (MainGroup) {};
% \end{scope}
% --- Connections ---
% \draw[->, thick, color=gray!80] (Input) -- (Process);
\end{tikzpicture}
\end{document}
right=of Node、below=of Node 来实现布局稳定性。通过 tikzpicture 选项中的 node distance 调整距离。fit 库和 group 样式在相关节点周围绘制背景框。始终将这些放在 \begin{scope}[on background layer] 块中。-| 和 |- 路径操作来绘制干净的正交线(例如,(A) -| (B))。\\ 进行换行,使用 \scriptsize 表示次要细节。每周安装量
53
代码仓库
GitHub 星标数
97
首次出现
2026年1月22日
安全审计
安装于
opencode47
codex46
gemini-cli45
github-copilot41
cursor36
kimi-cli35
This skill provides a standardized template/style for establishing professional technical diagrams using LaTeX TikZ. It is designed for creating flowcharts, architecture diagrams, and process flows.
When asked to "create a flowchart" or "draw a diagram" in this project, use the template below as a starting point. Adjust styles (dataNode, opNode, etc.) as needed for the specific content.
The template uses a Google Material-like palette:
greenFill/greenStroke): Data, Inputs, Outputs, Tensors.memFill/memStroke): Memory, Weights, Checkpoints.coreFill/coreStroke): Operations, Compute Kernels, Processes.optFill/optStroke): Optimizations, Special Steps.procFill/procStroke): General Processing Steps.dataNode: Rectangles for data flow (green).memNode: Cylinders for storage/weights (orange).opNode: Rectangles for operations (blue).kernelBox: Dashed containers for grouping internal kernel logic.group: Dashed background containers for logical grouping of phases/stages.Use this template as your base:
\documentclass[tikz,border=10pt]{standalone}
\usepackage{tikz}
\usepackage{amssymb}
\usetikzlibrary{shapes.geometric, arrows.meta, positioning, fit, backgrounds, calc, shadows.blur, decorations.pathreplacing}
% --- Color Definitions ---
\definecolor{greenFill}{HTML}{E8F5E9}
\definecolor{greenStroke}{HTML}{43A047}
\definecolor{memFill}{HTML}{FFF3E0}
\definecolor{memStroke}{HTML}{FFB74D}
\definecolor{coreFill}{HTML}{E1F5FE}
\definecolor{coreStroke}{HTML}{0277BD}
\definecolor{optFill}{HTML}{FCE4EC}
\definecolor{optStroke}{HTML}{E91E63}
\definecolor{procFill}{HTML}{FFF9C4}
\definecolor{procStroke}{HTML}{FBC02D}
\begin{document}
\begin{tikzpicture}[
node distance=1.2cm and 1.8cm, % Vertical and Horizontal spacing
font=\sffamily\footnotesize,
>=Stealth,
% --- Styles ---
dataNode/.style={
rectangle, rounded corners=3pt,
draw=greenStroke, thick,
fill=greenFill,
minimum width=2.4cm, minimum height=1.2cm,
align=center,
drop shadow
},
memNode/.style={
cylinder, cylinder uses custom fill,
cylinder body fill=memFill, cylinder end fill=memFill!90!gray,
shape border rotate=90,
aspect=0.25,
draw=memStroke, thick,
minimum width=1.8cm, minimum height=1.3cm,
align=center
},
opNode/.style={
rectangle, rounded corners=3pt,
draw=coreStroke, thick,
fill=coreFill,
minimum width=2.6cm, minimum height=1.2cm,
align=center,
drop shadow
},
kernelBox/.style={
rectangle, rounded corners=8pt,
draw=coreStroke, thick, dashed,
fill=coreFill!20,
inner sep=12pt,
align=center
},
group/.style={
draw=gray!30, dashed, rounded corners=8pt, inner sep=12pt, fill=gray!5
},
edgeLabel/.style={
font=\scriptsize,
text=black!80,
align=center,
inner sep=1pt
}
]
% --- Nodes ---
% Example:
% \node[dataNode] (Input) {Input Data};
% \node[opNode, right=of Input] (Process) {Process};
% --- Layout Containers (Optional) ---
% \begin{scope}[on background layer]
% \node[group, fit=(Input)(Process)] (MainGroup) {};
% \end{scope}
% --- Connections ---
% \draw[->, thick, color=gray!80] (Input) -- (Process);
\end{tikzpicture}
\end{document}
right=of Node, below=of Node for layout stability. Adjust distances via node distance in the tikzpicture options.fit library and group style to draw background boxes around related nodes. Always place these in a \begin{scope}[on background layer] block.-| and |- path operations for clean, orthogonal lines (e.g., (A) -| (B)).Weekly Installs
53
Repository
GitHub Stars
97
First Seen
Jan 22, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode47
codex46
gemini-cli45
github-copilot41
cursor36
kimi-cli35
文档查找工具:实时获取库、框架和API最新文档,替代训练数据
1,400 周安装
\\ for line breaks and \scriptsize for secondary details.