科研 Skill
研究流程与因果图绘制
mgmt-paper-diagrams
自动生成研究流程图、因果DAG、PRISMA图与网络图,提供Mermaid/Python/LaTeX TikZ模板。适用于绘制论文流程图或因果识别可视化。
SKILL.md
MGMT - Paper - Diagrams — 研究图自动生成(Mermaid / NetworkX / TikZ)
科研论文中研究流程图、因果 DAG、PRISMA 流程图、假设关系树、合作/引用网络是高频可视化需求,但传统工具门槛较高(dot/graphviz/dagitty/gephi)。本 Skill 教 AI agent 用三条互补路线一站式产出:
| 路线 | 适用场景 | 优点 |
|---|---|---|
| Mermaid | Markdown / Notion / Obsidian / GitHub README | 文本即图,所见即所得,最易展示与版本管理 |
| Python (networkx + matplotlib) | 论文 PNG/PDF 插图、批量自动化 | 免装 graphviz,纯 Python,可程序化 |
| LaTeX TikZ | 投稿到 AER/JF/Nature/IEEE 的高分辨率图 | 矢量、与正文字体一致 |
What it does
- 5 类常用研究图模板,开箱即用:研究流程、理论框架、PRISMA、DiD 设计、网络图
- 中文标签 fully supported(Mermaid 直接写中文;matplotlib 用 SimSun/Songti SC fallback)
- 三条路线互补:先用 Mermaid 草图→定稿改 Python/TikZ
- 导出 GraphML 与 Gephi/Cytoscape 互通,处理大型合作网络/专利引用网络
Diagram types covered
| 图类型 | 用途 | Mermaid 模板 | Python 模板 | TikZ 模板 |
|---|---|---|---|---|
| 研究流程图 | 选题→投稿全流程 | research-workflow.mmd | — | — |
| 理论框架 | 调节/中介关系 | theoretical-framework.mmd | — | — |
| PRISMA 2020 | 系统综述筛选流程 | prisma-flow.mmd | prisma_flow_matplotlib.py | — |
| DiD 实验设计 | 处理/对照、Pre/Post | did-design.mmd | — | — |
| 实证流水线 | 数据→清洗→回归→稳健 | empirical-pipeline.mmd | — | — |
| 因果 DAG | 处理/混杂/工具/中介 | — | causal_dag_dagitty.py | causal_dag.tex |
| 假设关系树 | H1/H2 + 子假设 | — | hypothesis_tree.py | — |
| 合作/引用网络 | Gephi 互通 | — | graphml_export.py | — |
Trigger phrases
中文:研究流程图、因果图、DAG、混杂变量、PRISMA、系统综述、假设关系、理论框架、调节中介图、合作网络、引用网络、Mermaid、TikZ、Gephi、GraphML。
English: research workflow diagram, causal DAG, confounder, PRISMA flow, hypothesis tree, theoretical framework, mediation moderation, co-authorship network, citation network, Mermaid, TikZ, GraphML, NetworkX.
How to use this Skill
- 判断展示载体:
- Markdown / GitHub / Notion → 用
templates/mermaid/*.mmd - 论文 PDF 插图 → 用
templates/python/*.py生成 PNG/PDF - LaTeX 投稿 → 用
templates/tikz/causal_dag.tex
- Markdown / GitHub / Notion → 用
- 挑模板:参考上表,复制对应文件并替换变量名 / 中文标签。
- 读规范:
- 因果图先读
references/causal-dag-rules.md(DAGitty 视觉约定) - PRISMA 严格遵循
references/prisma-2020.md(识别/筛选/纳入 4 阶段) - 假设树参照
references/hypothesis-tree.md
- 因果图先读
- 导出 Gephi:网络数据走
templates/python/graphml_export.py,Gephi 打开 .graphml 调布局。
File map
SKILL.md (this file)
references/
mermaid-cheatsheet.md Mermaid 全语法速查(含中文)
causal-dag-rules.md DAGitty 因果图视觉规范
prisma-2020.md PRISMA 2020 流程图规范
hypothesis-tree.md 假设关系树规范
graphml-export.md GraphML / NetworkX / Gephi 用法
templates/
mermaid/ research-workflow / theoretical-framework / prisma-flow / did-design / empirical-pipeline (.mmd)
python/ causal_dag_dagitty / prisma_flow_matplotlib / hypothesis_tree / graphml_export (.py)
tikz/ causal_dag.tex
tests/ test_skill_structure / test_mermaid_syntax / test_python_templates (.py)
LICENSE NOTICE README.md
Source & attribution
本 Skill 完全独立编写。语法与规范参考公开资料:
- Mermaid 官方文档 (https://mermaid.js.org/) — MIT-licensed concept
- DAGitty 因果图视觉惯例 (http://dagitty.net/) — public method
- PRISMA 2020 声明 (http://www.prisma-statement.org/) — public document
Python 代码使用标准 networkx + matplotlib API;TikZ 使用公开的 tikz/tikz-cd 语法。无第三方源码复制。
License
Apache 2.0. See LICENSE and NOTICE.
示例提示词
帮我用Mermaid画一张PRISMA系统综述流程图和因果识别DAG。
所属插件
安装该插件会一并获得同领域的 40 个 Skill / MCP。
同插件的其他科研 Skill
- 文献计量分析Runs bibliometric and co-citation analysis for management or economics literature reviews using CiteSpace, VOSviewer, or bibliometrix. Use for citation-network mapping.
- 发展经济学与RCT分析Loads LSMS data and runs RCT ITT analysis, Lee sharp bounds, covariate balance tables, propensity-score matching, and FGT poverty indices. Use for development-economics impact or poverty research.
- 双重差分因果推断Estimates DiD effects with two-way fixed effects, parallel-trends tests, Callaway-Sant’Anna staggered estimators, and Goodman-Bacon decomposition. Use for staggered or two-period DiD designs.
- 宏观经济预测Runs ARIMA, VAR, LightGBM ensemble forecasting, Diebold-Mariano tests, fan charts, and real-time ALFRED data. Use for macroeconomic forecasting or forecast-accuracy comparison.
- 金融事件研究法Estimates abnormal returns, CARs, BMP tests, and Fama-French normal returns plus long-run BHAR using yfinance. Use for a corporate-finance event-study around an announcement date.
- 实验经济学设计Designs incentivized lab, online, or lab-in-field experiments: treatment and payoff design, deception/IRB norms, and oTree/z-Tree setup. Use when designing a behavioral-economics study.
- 资产定价因子模型Fits Fama-French 3/5-factor, Carhart 4-factor, and q-factor asset-pricing models with rolling loadings and the GRS alpha test. Use for asset-pricing factor-model estimation.
- 金融时间序列分析Covers GARCH volatility modeling, cointegration, pairs trading, factor models, and risk decomposition for financial time series. Use for volatility or financial time-series research.
- 固定收益证券分析Covers bond pricing, yield curves, duration/convexity, Nelson-Siegel fitting, and credit-spread modeling. Use for fixed-income analytics or term-structure research.
- FRED宏观数据分析Fetches and analyzes FRED series via fredapi: GDP, unemployment, inflation, yield curves, recession shading, and HP filtering. Use for US macroeconomic time-series retrieval and analysis.
- 工具变量两阶段最小二乘Runs IV/2SLS with first-stage diagnostics, Wu-Hausman endogeneity, Sargan overidentification, and weak-instrument tests via linearmodels. Use for IV estimation of an endogenous regressor.
- 劳动经济学分析Estimates Mincer wage equations, Heckman selection, Oaxaca-Blinder decomposition, and unconditional quantile regression on CPS data. Use for labor-economics wage or selection research.
- 管理学实证研究图表為管理/財務實證研究產出出版級統計圖:轉折點圖、係數森林圖、交互作用圖、事件研究CAR曲線。用於迴歸或追蹤資料結果需要投稿圖表時。
- 中国情境因果推断方法提供DiD/RDD/IV/合成控制/PSM识别策略的Stata/R/Python模板,附中国数据陷阱。适用于CSMAR/Wind/CFPS数据的因果识别。
- 经管学术图表模板集提供12种经管高频图表的Stata/R/Python三语言模板,支持4种期刊样式切换。适用于绘制经管学术图表、事件研究可视化或政策评估图。
- CSMAR数据清洗SOP提供CSMAR数据清洗SOP:ST剔除、缩尾标准、公司ID追踪、行业代码映射与时间对齐模板。适用于处理CSMAR数据或构建经管类面板数据。
- 科研资助申请书写作覆盖国内外主流科研资助项目的写作助手,提供项目对比、各模块写作提示与预算编制规范。适用于撰写国家社科基金、NSF、ERC等资助申请书。
- 管理学期刊投稿图表按目标期刊生成投稿级图表规格,强调矢量PDF、字体嵌入、色盲友好与可复现脚本。适用于准备特定期刊风格的图表或审查图表质量。
- 论文投稿材料整理覆盖论文材料盘点、证据矩阵、章节撰写与预投稿package整理,含cover letter与补充材料清单。适用于把研究项目整理成可投稿的完整论文包。
- 混合方法研究设计覆盖探索型/解释型顺序设计、并行汇聚设计、joint display与方法整合段落写作。适用于连接访谈/案例与问卷/实验数据的混合方法论文设计。
- 国自然基金申请书写作提供NSFC面上/青年/重点等8类项目的立项依据、研究内容、预算编制模板与退稿信号清单。适用于撰写、修改或审阅国家自然科学基金申请书。
- 论文项目进度管理提供论文项目的任务拆解、看板、里程碑、风险登记与周计划模板,适用于管理论文进度、协调合作者或安排修订冲刺与会议纪要整理。
- 中文期刊配图规范提供中文学术期刊配图规范与matplotlib模板:三线表、宋体字号、色盲友好调色板与7类常用图。适用于绘制符合中文期刊规范的学术图表。
- 管理学定性研究方法覆盖案例选择、访谈提纲、扎根理论、Gioia方法、编码本与NVivo/MAXQDA工作流。适用于设计、执行或写作管理学定性研究。
常见问题
研究流程与因果图绘制能做什么?
自动生成研究流程图、因果DAG、PRISMA图与网络图,提供Mermaid/Python/LaTeX TikZ模板。适用于绘制论文流程图或因果识别可视化。
如何安装研究流程与因果图绘制?
在科搭 Codar 左侧点击「插件」,在「组件」页签搜索「研究流程与因果图绘制」并安装;在 Claude Code 或 Codex 中可以发送本页的安装提示词,或下载 Skill 包后解压到 ~/.claude/skills 或 ~/.codex/skills。
研究流程与因果图绘制需要哪些权限?
该科研 Skill没有声明额外权限;执行具体操作时仍由 Agent 按自身规则请求确认。
研究流程与因果图绘制经过官方审核吗?
是。SpeedSkills 收录的每个版本都会记录内容摘要与权限声明,当前版本已通过安全审核。