ワンクリックで
fig
Create and manage publication figures: framework diagrams via draw.io/Figma MCP, data plots via code, and figure assembly
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Create and manage publication figures: framework diagrams via draw.io/Figma MCP, data plots via code, and figure assembly
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Graduate an evaluated idea into a full project: create Linear Project with Phase milestones, GitHub repo, and standard directory structure
Initialize Linear workspace for SWF workflow: create label system, Ideas project, Archive project, and configure team settings
Show today's tasks across all projects, optionally filtered by type label (dev, writing, figures, experiment, admin)
Read project state and design docs, then create the next batch of Linear issues for a project
Import an existing research project into the SWF workflow: create Linear Project with milestones, add standard docs to existing repo
Export Done/Canceled issues to Archive project as Documents, then guide user to delete originals to free quota
| name | fig |
| description | Create and manage publication figures: framework diagrams via draw.io/Figma MCP, data plots via code, and figure assembly |
| argument-hint | [framework|plot|assemble|list] |
Create, iterate, and organize publication-quality figures for papers.
$ARGUMENTS[0] determines the action. If omitted, show help.
/swf:fig framework <description>Create a framework/architecture diagram (typically Fig.1 of a paper).
Choose tool based on need:
Ask the user: "用 draw.io 还是 Figma 画?"
draw.io workflow:
start_session to open browser previewcreate_new_diagram with well-structured XML:
edit_diagramexport_diagram to save:
.drawio → for further editing in draw.io desktop.svg → for paper inclusion (vector, scalable).png → for quick previewdocs/paper/figures/Figma workflow:
generate_diagram to create in FigJamcreate_new_file + use_figma for Figma design filesget_screenshot to previewRecord in experiment log:
/swf:fig plot <description>Generate a data visualization figure from experiment results.
Read experiment data:
results/ for metrics filesdocs/experiments/ for relevant experiment recordsGenerate matplotlib/seaborn code:
src/plots/ or scripts/docs/paper/figures/Run and iterate:
/swf:fig assemblePlan figure assembly, create tasks in Linear for manual assembly, and generate legends.
Read paper outline from docs/paper/outline.md
List all available sub-figures:
docs/paper/figures/docs/paper/figures/docs/experiments/Generate assembly plan:
## Figure Assembly Plan
### Fig.1 — Method Overview (框架图)
- Source: docs/paper/figures/framework.svg
- Status: Done
- Tool: draw.io
### Fig.2 — Benchmark Comparison (数据图)
- Panel a: docs/paper/figures/benchmark-accuracy.pdf
- Panel b: docs/paper/figures/benchmark-speed.pdf
- Status: Panel a done, Panel b missing
- Tool: matplotlib
### Fig.3 — Case Study Results
- Panel a-c: results/case-001/figures/
- Status: Not started
Identify gaps:
/swf:fig plot or /swf:fig frameworkCreate Linear issues for manual assembly work (user confirms before creating):
Title: 拼装 Fig.2 — Benchmark Comparison
Labels: figures, manual
Milestone: Phase 4
Description:
子图文件:
- Panel a: results/figures/benchmark-accuracy.pdf
- Panel b: results/figures/benchmark-speed.pdf
拼装要求:
- 加 a/b panel 标签(大写,粗体,左上角)
- 统一字体和字号
- 对齐面板边距
- 导出为 docs/paper/figures/fig2-benchmark.pdf (300 dpi+)
Generate legends for all figures with sub-figures ready:
/swf:fig legenddocs/paper/figure-legends.md/swf:fig listList all figures in the project with their status.
docs/paper/figures/ and experiment result directories| Figure | Description | Source | Format | Status |
|--------|-------------|--------|--------|--------|
| Fig.1 | Framework | draw.io | .svg | Done |
| Fig.2a | Benchmark | matplotlib | .pdf | Done |
| Fig.2b | Performance | — | — | Missing |
/swf:fig legend [fig-number]Write figure legends for publication.
If fig-number given (e.g., fig1), write legend for that figure only. If omitted, write legends for all figures.
Gather information for each figure:
Generate legend following journal conventions (Nature-style):
**Figure 1 | Method overview.**
**a**, Data preprocessing pipeline. Raw expression matrices are filtered
for quality control (Methods) and normalized using ... **b**, Model
architecture. The encoder takes ... and produces ... **c**, Training
procedure. The model is trained on ... with ... loss function.
Data shown are from Dataset A (n = 5,000 cells).
Rules:
Save to docs/paper/figure-legends.md
Validate against checklist:
When generating figures, use these color-blind friendly palettes:
Qualitative (categorical data):
#4477AA, #EE6677, #228833, #CCBB44, #66CCEE, #AA3377, #BBBBBB
Sequential (continuous data):
Use matplotlib's viridis, plasma, or cividis colormaps.
docs/paper/figures/ with clear naming: fig1-framework.svg, fig2a-benchmark.pdf, etc.