Tooluck logoTooluck
SKILL.md

figures-python

Agent skill fromNorman-bury/research-writing-skill

Use when creating data visualizations for papers - generates publication-quality plots with top-journal color schemes

How to install figures-python

install figures-python
# install the research-writing-skill pack with the skills CLI
npx skills add Norman-bury/research-writing-skill

# or add only this skill to Claude Code: copy the folder

skills/figures-python/

# into

~/.claude/skills/figures-python/ (all projects)

.claude/skills/figures-python/ (one project)

skills/figures-python/SKILL.md

MITFull file
1# Python 数据图表
2
3本技能指导使用 Python 生成科研论文级别的数据图表。
4
5## Checklist
6
7- [ ] 确认 conda 环境已激活(research)
8- [ ] 确认图表类型和数据
9- [ ] 记录数据清单(data manifest)
10- [ ] 若使用 mock/synthetic 数据,明确标注为 planning data
11- [ ] 使用顶刊配色方案
12- [ ] 设置 450 DPI 分辨率
13- [ ] 同时输出 PNG 和 SVG
14- [ ] 检查中文字体显示
15- [ ] 保存到 figures/ 目录
16
17## 一、环境要求
18
19### 1.1 conda 环境
20
21**默认环境名**:`research`
22
23**激活命令**:
24```bash
25conda activate research
26```
27
28**必需库**:
29```bash
30pip install matplotlib seaborn numpy pandas
31```
32
33如环境未配置,调用 `environment-setup` 技能。
34
35## 二、图表规范
36
37### 2.0 数据清单与 mock 数据边界
38
39任何数据图都必须先有数据文件和数据清单(data manifest)。默认路径:
40
41```text
42figures/data-manifest.md
43figures/data/<figure-name>.csv
44figures/<section>/<figure-name>.py
45figures/<section>/<figure-name>.png
46figures/<section>/<figure-name>.svg
47```
48
49`figures/data-manifest.md` 至少记录:
50
51| Figure | Data file | Real/mock | Source | Script | Outputs |
52|---|---|---|---|---|---|
53
54mock 或 synthetic 数据只允许用于规划版图表。文件名必须以 `mock_` 或 `synthetic_` 开头,并在图表、表格或章节草稿中保留 `[待真实实验替换]`。不得把 mock 数据写成“实验结果表明”。
55
56### 2.1 分辨率要求
57
58| 用途 | DPI | 说明 |
59|------|-----|------|
60| 期刊投稿 | 300-600 | 大多数期刊要求 |
61| 顶刊投稿 | 450+ | Nature/Science等 |
62| 屏幕展示 | 150 | PPT/网页 |
63
64**本技能默认使用 450 DPI**
65
66### 2.2 输出格式
67
68每张图同时输出两种格式:
69- **PNG**:位图,适合网页和PPT
70- **SVG**:矢量图,适合期刊投稿
71
72### 2.3 图表尺寸
73
74| 类型 | 宽度(英寸) | 适用场景 |
75|------|-------------|----------|
76| 单栏图 | 3.5 | 期刊单栏 |
77| 双栏图 | 7.0 | 期刊双栏/全宽 |
78| PPT图 | 10.0 | 演示文稿 |
79
80## 三、顶刊配色方案
81
82### 3.1 Nature/Science 风格
83
84```python
85NATURE_COLORS = ['#2E86AB', '#A23B72', '#F18F01', '#C73E1D', '#95C623']
86```
87
88### 3.2 Cell 风格
89
90```python
91…

Excerpt shown under the repository's MIT license.

More skills in research-writing-skill

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

nexu-io /

open-design
107k

The 1st Collaborative AI Design Agent Workspace. Local-first and open source. Create motion, prototypes, websites, apps, dashboards, presentations, images, and videos with your team and AI agents. Share work, exchange feedback, and iterate together in one workspace.

40 skills

tt-a1i /

archify
95k

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

CCCXOC1 skill

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates