scientific-schematics
它能做什么
这个工具可以为论文、演示文稿或报告制作科研示意图的草稿。你用文字描述想要的图,AI 就会生成一张图片。
适用场景
- ✓需要为科研论文绘制流程图时。
- ✓想要可视化神经网络架构时。
- ✓正在制作演示文稿,需要一张示意图时。
技能链接
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/scientific-schematics/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“创建一张 CONSORT 参与者流程图,其中 500 人被筛查,150 人被排除。”
每周 5 个新技能,1 分钟读完。
工作原理
你用文字描述图示内容,一个 AI 生成图片,另一个 AI 检查质量。如有需要,它会提出改进意见,并不断生成新版本,直到满意为止。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Scientific Schematics and Diagrams
Overview
Scientific schematics and diagrams transform complex concepts into clear visual representations for publication. This skill uses Nano Banana 2 AI for diagram generation with Gemini 3.7 Flash quality review.
How it works:
- Describe your diagram in natural language
- Nano Banana 2 generates a PNG draft from the specified components and relationships
- Gemini 3.7 Flash reviews quality against document-type thresholds
- Smart iteration: Refines when the score or verdict requests improvement
- Saved drafts and a review log for manual verification
- No coding, templates, or manual drawing required
Local review thresholds by document type (heuristics chosen by this helper, not publisher acceptance criteria):
| Document Type | Threshold | Description |
|---|---|---|
| journal | 8.5/10 | Nature, Science, peer-reviewed journals |
| conference | 8.0/10 | Conference papers |
| thesis | 8.0/10 | Dissertations, theses |
| grant | 8.0/10 | Grant proposals |
| preprint | 7.5/10 | arXiv, bioRxiv, etc. |
| report | 7.5/10 | Technical reports |
| poster | 7.0/10 | Academic posters |
| presentation | 6.5/10 | Slides, talks |
| default | 7.5/10 | General purpose |
Save diagrams under figures/ using -o figures/name.png, then inspect every label and relationship before including them in a paper or poster. The output location is the path you choose.
What the output is: a raster PNG at whatever resolution the image model returns. This skill has no vector path and no DPI control — if a journal demands PDF, EPS, or 300 dpi TIFF, convert the PNG downstream and check the result at final print size.
Quick Start: Generate Any Diagram
Run from this skill directory with requests installed and OPENROUTER_API_KEY set. The following paid-generation examples are illustrative; the request contracts are tested offline. Supply source-backed labels and relationships rather than asking the image model to invent them:
# Generate for journal paper (highest quality threshold: 8.5/10)
python scripts/generate_schematic.py "CONSORT participant flow diagram with 500 screened, 150 excluded, 350 randomized" -o figures/consort.png --doc-type journal
# Generate for presentation (lower threshold: 6.5/10 - faster)
python scripts/generate_schematic.py "Transformer encoder-decoder architecture showing multi-head attention" -o figures/transformer.png --doc-type presentation
# Generate for poster (moderate threshold: 7.0/10)
python scripts/generate_schematic.py "MAPK signaling pathway from EGFR to gene transcription" -o figures/mapk_pathway.png --doc-type poster
# Custom max iterations (max 2)
python scripts/generate_schematic.py "Complex circuit diagram with op-amp, resistors, and capacitors" -o figures/circuit.png --iterations 2 --doc-type journal
What happens behind the scenes:
- Generation 1: Nano Banana 2 creates initial image following scientific diagram best practices
- Review 1: Gemini 3.7 Flash evaluates quality against document-type threshold
- Decision: If quality >= threshold and no improvement verdict → DONE (no more iterations needed!)
- If below threshold or improvement requested: Improved prompt based on critique, regenerate
- Repeat: Until quality meets threshold OR max iterations reached
Smart Iteration Benefits:
- ✅ Saves API calls if first generation is good enough
- ✅ Higher quality standards for journal papers
- ✅ Faster turnaround for presentations/posters
- ✅ Appropriate quality for each use case
Output: Versioned images (name_v1.png, name_v2.png), a copy of the latest successful version at the path you
asked for, and name_review_log.json with the score, critique, and any early-stop reason.
When the review cannot run — a rate limit, a content filter, a reviewer that answers in some
unexpected shape — the image is still generated and saved, but no score is invented for it. The log
records "score": null with the reason in "review_error". "reviewed": false means the reviewer did not return a usable response; a prose answer with no parsable score can have "reviewed": true. "final_reviewed" remains false without a numeric score, and the run
prints Review unavailable - image kept, quality not verified. Treat that image as unchecked and
…
常见问题
最终图片是高分辨率的吗?
图片以 PNG 格式生成。如果你需要 PDF 等格式或特定的高分辨率(DPI),需要事后自行转换。
我可以使用机密数据吗?
不可以。你的请求会发送给 AI,因此请不要使用不能被分享的信息。
AI 最多会重做几次示意图?
如果第一版不够好,或者审查环节提出了改进意见,AI 最多会重做两次。
详情
作者的原始描述
Generates scientific diagram drafts using Nano Banana 2 AI with smart iterative refinement. Uses Gemini 3.7 Flash for quality review. Refines when the review requests improvement, with at most two generations. Specialized in neural network architectures, system diagrams, flowcharts, biological pathways, and complex scientific visualizations.
热度
- GitHub 星标
- 51k
- 排名
- #3563
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …