Scientific Figure Making
ChenLiu-1996/figures4papers
Covers publication-ready matplotlib figures for academic papers, slides, and reports—bars, trends, scatter, heatmaps, and multi-panel layouts—with this…
生成研究/项目架构图、流程图、层次图(swimlane / processflow / hierarchytree)。适合 PPT 汇报、技术文档、综述插图。输出风格接近 draw.io,可选 graphviz(高质量)/ matplotlib(零依赖)双后端。
$ npx skills add csmar432/finai-research --skill fin-arch-diagram -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install csmar432/finai-research fin-arch-diagram --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/csmar432/finai-research.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/fin-arch-diagram .claude/skills/fin-arch-diagram && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "fin-arch-diagram" agent skill from https://github.com/csmar432/finai-research/tree/main/.cursor/skills/fin-arch-diagram into .claude/skills/fin-arch-diagram/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fin-arch-diagram", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/csmar432/finai-research/tree/main/.cursor/skills/fin-arch-diagramType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add csmar432/finai-research --skill fin-arch-diagram -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install csmar432/finai-research fin-arch-diagram --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/csmar432/finai-research.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.cursor/skills/fin-arch-diagram .agents/skills/fin-arch-diagram && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "fin-arch-diagram" agent skill from https://github.com/csmar432/finai-research/tree/main/.cursor/skills/fin-arch-diagram into .agents/skills/fin-arch-diagram/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fin-arch-diagram", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add csmar432/finai-research --skill fin-arch-diagram -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install csmar432/finai-research fin-arch-diagram --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/csmar432/finai-research.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.cursor/skills/fin-arch-diagram .cursor/skills/fin-arch-diagram && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "fin-arch-diagram" agent skill from https://github.com/csmar432/finai-research/tree/main/.cursor/skills/fin-arch-diagram into .cursor/skills/fin-arch-diagram/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fin-arch-diagram", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/csmar432/finai-research.git --path .cursor/skills/fin-arch-diagram--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add csmar432/finai-research --skill fin-arch-diagram -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install csmar432/finai-research fin-arch-diagram --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/csmar432/finai-research.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.cursor/skills/fin-arch-diagram .gemini/skills/fin-arch-diagram && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "fin-arch-diagram" agent skill from https://github.com/csmar432/finai-research/tree/main/.cursor/skills/fin-arch-diagram into .gemini/skills/fin-arch-diagram/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fin-arch-diagram", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install csmar432/finai-research fin-arch-diagramInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add csmar432/finai-research --skill fin-arch-diagram -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/csmar432/finai-research.git skills-src && mkdir -p .github/skills && cp -r skills-src/.cursor/skills/fin-arch-diagram .github/skills/fin-arch-diagram && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "fin-arch-diagram" agent skill from https://github.com/csmar432/finai-research/tree/main/.cursor/skills/fin-arch-diagram into .github/skills/fin-arch-diagram/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fin-arch-diagram", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add csmar432/finai-research --skill fin-arch-diagram -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install csmar432/finai-research fin-arch-diagram --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/csmar432/finai-research.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.cursor/skills/fin-arch-diagram .opencode/skills/fin-arch-diagram && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "fin-arch-diagram" agent skill from https://github.com/csmar432/finai-research/tree/main/.cursor/skills/fin-arch-diagram into .opencode/skills/fin-arch-diagram/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fin-arch-diagram", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
fin-arch-diagram生成研究/项目架构图、流程图、层次图(swimlane / processflow / hierarchytree)。适合 PPT 汇报、技术文档、综述插图。输出风格接近 draw.io,可选 graphviz(高质量)/ matplotlib(零依赖)双后端。
Fin Arch Diagram is an agent skill from csmar432/finai-research. 生成研究/项目架构图、流程图、层次图(swimlane / processflow / hierarchytree)。适合 PPT 汇报、技术文档、综述插图。输出风格接近 draw.io,可选 graphviz(高质量)/ matplotlib(零依赖)双后端。
Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Data & Analytics, covering Data visualization and Econometrics and empirical research. It works with Matplotlib, draw.io and Python. The repository describes itself as: Evidence-first AI workflow for economic and financial research: literature → identification → data → econometrics → verifiable LaTeX. 43 data sources, 58 method modules, 18 AI… The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 47eebb7. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
pythonbrewpipFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Fin Arch Diagram loads about 1.5k tokens when it runs. Until then it costs about 38 tokens; SKILL.md has 348 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from csmar432/finai-research at commit 47eebb7, republished under its MIT licence (© csmar432). 348 words, ~1,475 tokens.
.claude/skills/fin-arch-diagram/SKILL.md (or your agent's skills folder).生成高质量架构/流程/层次图,专为 PPT 汇报和技术文档插图设计。 不依赖数据(与 fin-viz-launch / fin-paper-figure 的"数据图表"互补), 不阻塞论文流水线(用户主动触发)。
架构图 架构 流程图 流程 层次图 层次
swim_lane process_flow hierarchy 画架构
生成架构图 绘制流程图 绘制架构图
画一个流程图 组织架构图 架构示意图 系统架构图Skill: fin-arch-diagram "[描述]"| 类型 | 用途 | 函数 | graphviz 风格 |
|---|---|---|---|
swim_lane | 系统架构(多层 + 泳道) | swim_lane_gv() | ✅ ~92% 接近 draw.io |
process_flow | 业务流程(决策菱形 + 分支 + 循环) | process_flow_gv() | ✅ 决策菱形 + yes/no 边 |
hierarchy_tree | 树状/层级(树/CONSORT/组织架构) | hierarchy_tree_gv() | ✅ tree/consort/org 三风格 |
from scripts.research_framework.arch_diagram_gv import draw_diagram
from scripts.research_framework.arch_diagram import (
DiagramSpec, Node, Edge, Layer,
)
# 例:生成 FinResearch Agent 系统架构图
spec = DiagramSpec(
title="FinResearch Agent · 系统架构",
layers=[
Layer("USER LAYER", y_top=70, y_bottom=55, color="#FDEBD0", text_color="#D68910"),
Layer("SKILLS LAYER", y_top=53, y_bottom=38, color="#D6EAF8", text_color="#21618C"),
Layer("PERSISTENCE", y_top=36, y_bottom=21, color="#EBDEF0", text_color="#6C3483"),
Layer("INFRASTRUCTURE", y_top=19, y_bottom=4, color="#D5F5E3", text_color="#1E8449"),
],
nodes=[
Node("u1", "Researchers", layer="USER LAYER", color="#E67E22", icon="U"),
Node("u2", "HitL Reviewer", layer="USER LAYER", color="#E67E22", icon="U"),
Node("a1", "Orchestrator", layer="SKILLS LAYER", column="Sub-agents",
color="#1ABC9C", icon="1"),
Node("p1", "fin-full-pipeline", layer="SKILLS LAYER", column="Pipelines",
color="#3498DB", icon="1"),
# ... 更多节点
],
edges=[
Edge("u1", "p1"),
Edge("p1", "a1", label="dispatch", style="invoke"),
Edge("a1", "u2", label="HITL", style="invoke"),
# ... 更多边
],
)
# 默认 graphviz 后端(接近 draw.io 风格)
out = draw_diagram(spec, "output/figures/finresearch_arch.png")
print(f"生成: {out}")
# 显式指定后端
out = draw_diagram(spec, "out.png", engine="graphviz") # 高质量 (推荐)
out = draw_diagram(spec, "out.png", engine="matplotlib") # 零系统依赖python scripts/research_framework/arch_diagram_demos.py输出(graphviz 后端,浅色风格):
output/figures/demo_arch_finresearch_gv.png — 系统架构 4 层 × 3 泳道output/figures/demo_hierarchy_pipeline_gv.png — 8 步研究流水线output/figures/demo_process_flow_gv.png — 决策菱形 + yes/no 分支 + 自循环output/figures/demo_consort_gv.png — CONSORT 样本筛选output/figures/demo_org_chart_gv.png — 组织架构(纵向)| 字段 | 类型 | 说明 |
|---|---|---|
id | str | 唯一标识,用于 Edge 引用 |
label | str | 显示文字(支持 \n 多行) |
color | str | 边框色 hex(如 #3498DB) |
icon | str | icon Unicode 字符(U=👤, 1-5=①-⑤, ?=❓, S=▶, E=■, K=📚, D=💾, P=📋, M=🔌, L=🧠) |
layer | str | 所属 layer 名称 |
column | str | 所属泳道名称(layer 内的纵向分隔) |
| 字段 | 类型 | 说明 |
|---|---|---|
src / dst | str | 源/目标节点 id |
label | str | 边标签文字 |
style | str | solid/dashed/dotted/invoke(红)/loop(黄)/data(蓝) |
arrow | str | ->(默认)/<-(反向)/<->(双向) |
color | str | 自定义边颜色(覆盖 style 默认色) |
| 字段 | 类型 | 说明 |
|---|---|---|
name | str | Layer 名称(也作 cluster key) |
y_top / y_bottom | int | 兼容 matplotlib 后端的纵向范围(graphviz 后端自动忽略) |
color | str | Layer 背景填充色 hex |
text_color | str | Layer 标题文字色 hex |
| 维度 | matplotlib 后端 | graphviz 后端(默认) |
|---|---|---|
| 系统依赖 | ❌ 纯 Python | ⚠️ 需 brew install graphviz + pip install graphviz |
| 自动布局 | ❌ 手动坐标 | ✅ graphviz 智能布局 |
| 视觉风格 | 基础 | ⭐⭐⭐⭐ 接近 draw.io |
| 用户体感 | 简单但粗糙 | 专业、像素级对齐 |
| Fallback | — | graphviz 不可用时自动 fallback 到 matplotlib |
cross-platform: macOS / Linux / Windows 全兼容。
graphviz 不可用时 draw_diagram() 会自动警告并 fallback,不抛异常。
论文流水线 PLOTTING 阶段完成时,可通过 CLI flag 触发自动生成:
python scripts/agent_pipeline.py --topic "数字金融与企业创新" --auto-archoutput/arch_diagrams/ 输出架构图| 场景 | 用这个 |
|---|---|
| 画 PPT 用系统架构图 | fin-arch-diagram ← 本文 |
| 画 PPT 用研究流程图 | fin-arch-diagram ← 本文 |
| 画 PPT 用组织架构图 | fin-arch-diagram ← 本文 |
| 画论文 DID 平行趋势图 | fin-viz-launch |
| 画论文 PSM 倾向得分图 | fin-viz-launch |
| 画论文相关性热力图 | fin-paper-figure |
核心区别:
output/
├── figures/
│ └── finresearch_arch.png # graphviz 后端 PNG(≥300 DPI 等价)
└── arch_diagrams/ # agent_pipeline --auto-arch 输出
└── arch_<topic>_<timestamp>.pngscripts/research_framework/arch_diagram.py — matplotlib 后端 (1038 行)scripts/research_framework/arch_diagram_gv.py — graphviz 后端 (新增)scripts/research_framework/arch_diagram_demos.py — 5 张 demo runnerdot (graphviz) — 已验证 macOS brew install graphviz⚠️ 图标使用 Unicode emoji(👤📚💾🔌🧠 等),不同操作系统的 emoji 字体可能略有差异。
macOS 默认支持;Linux 需安装 noto-coloremoji;Windows 11+ 自带 Segoe UI Emoji。
如果对图标一致性要求严格,可改为图标编号(icon="1" 等)。
© csmar432, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .cursor/skills/fin-arch-diagram of csmar432/finai-research.
Open the folder on GitHubat commit 47eebb7
Fin Arch Diagram next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Fin Arch Diagram this skillcsmar432/finai-research | 109 | — | ~1.5k | Automated safety check: Pass | MIT | |
| Scientific Figure MakingChenLiu-1996/figures4papers | 8.3k | — | ~557 | Automated safety check: Pass | Custom licence | |
| FigMirrorVILA-Lab/FigMirror | 521 | — | ~2.4k | Automated safety check: Pass | None | |
| Agent Figure GalleryDsadd4/AgentFigureGallery | 163 | — | ~643 | Automated safety check: Pass | MIT | |
| Scientific Figure Generationlingzhi227/agent-research-skills | 390 | — | ~809 | Automated safety check: Pass | None | |
| Molecular Visualization 3dmoljaechang-hits/SciAgent-Skills | 374 | — | ~3.2k | Automated safety check: Pass | BSD-3-Clause |
ChenLiu-1996/figures4papers
Covers publication-ready matplotlib figures for academic papers, slides, and reports—bars, trends, scatter, heatmaps, and multi-panel layouts—with this…
VILA-Lab/FigMirror
Mirrors the visual style of a top-conference paper figure onto your own data, producing a camera-ready PDF and a self-contained matplotlib script.
Dsadd4/AgentFigureGallery
Lets a plotting agent query a gallery of scientific figure references, show candidates for you to pick from, and export the chosen ones before it writes plot code.
lingzhi227/agent-research-skills
Generates publication-quality scientific figures with matplotlib or seaborn through query expansion, a run-and-retry coding loop and a visual check of the rendered PNG.
jaechang-hits/SciAgent-Skills
3Dmol.js WebGL molecular visualization emitted as self-contained HTML.
FreedomIntelligence/OpenClaw-Medical-Skills
Visualize copy number profiles, segments, and compare across samples.
csmar432/finai-research
根据用户输入或已有研究输出(文献综述/想法报告/新颖性报告),自动生成或更新FINBRIEF.md,减少用户填写负担. An agent skill from csmar432/finai-research.
csmar432/finai-research
根据REFINEDDESIGN.md中的变量定义,自动获取所需数据并生成可执行的回归分析脚本(Python/Stata)。
csmar432/finai-research
经济金融实证方法设计。根据研究想法和REFINEDDESIGN.md,生成完整的实证研究设计方案,覆盖识别策略选择、样本构建、变量定义、稳健性检验清单和内生性处理方案。
csmar432/finai-research
针对经济金融研究方向的创意生成与评估。生成8-12个可发表的研究idea,过滤后在数据可行的情况下进行小规模实证验证,输出排序后的研究想法报告。
csmar432/finai-research
经济金融研究的完整想法发现流程。从研究方向出发,经过文献综述、想法生成、新颖性验证、实证方法设计和数据获取,输出经过数据实证验证的可执行研究方案。
csmar432/finai-research
经济金融领域的系统性文献综述。整合 Semantic Scholar + ArXiv + OpenAlex + NBER 构建引文网络,识别研究缺口,生成结构化文献地图。
Works with
Categories
生成研究/项目架构图、流程图、层次图(swimlane / processflow / hierarchytree)。适合 PPT 汇报、技术文档、综述插图。输出风格接近 draw.io,可选 graphviz(高质量)/ matplotlib(零依赖)双后端。. Fin Arch Diagram is an agent skill from csmar432/finai-research.
Fin Arch Diagram fits situations like: tasks that involve Data visualization; tasks that involve Econometrics and empirical research.
Run `npx skills add csmar432/finai-research --skill fin-arch-diagram -a claude-code`. Or copy the skill folder (.cursor/skills/fin-arch-diagram in csmar432/finai-research) into .claude/skills/fin-arch-diagram in your project. Claude Code loads it when a task matches its description.
Run `npx skills add csmar432/finai-research --skill fin-arch-diagram -a codex`. Or copy the skill folder (.cursor/skills/fin-arch-diagram in csmar432/finai-research) into .agents/skills/fin-arch-diagram in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add csmar432/finai-research --skill fin-arch-diagram -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/fin-arch-diagram, .gemini/skills/fin-arch-diagram, .github/skills/fin-arch-diagram and .opencode/skills/fin-arch-diagram in your project.
Going by SKILL.md and its folder, Fin Arch Diagram needs the command-line tools its instructions call (python, brew and pip). Our summary lists: Python 3.
SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Fin Arch Diagram is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.5k tokens (SKILL.md is roughly 5.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Fin Arch Diagram: Scientific Figure Making (ChenLiu-1996/figures4papers, 8.3k stars), FigMirror (VILA-Lab/FigMirror, 521 stars), Agent Figure Gallery (Dsadd4/AgentFigureGallery, 163 stars) and Scientific Figure Generation (lingzhi227/agent-research-skills, 390 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
csmar432 (a GitHub user) maintains it in csmar432/finai-research, which has 109 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on October 6, 2026.
Source: csmar432/finai-research on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.