Draw Science 标志

Draw Science

社区
QIANJINYDX
draw-science

Create, revise, audit, and export publication-style scientific flowcharts and schematic workflows in diagrams.net/draw.io. Use for research-paper flowcharts, Nature-style workflows, graphical abstracts, method pipelines, experimental design, cohort/study flow, mechanism schematics, model architecture, editable .drawio files, and SVG/PDF-ready scientific diagrams, including 科研流程图, 论文流程图, draw.io作图, 方法流程图, 实验设计图, 技术路线图, 机制示意图, and 图形摘要. Start from a scientific message, topology, grid layout, semantic composite-element plan, collision-free routing, math-label contract, export contract, and reviewer-risk check. Build editable glyphs from draw.io primitives, such as bar miniatures, DNA helices, matrices, neural networks, cells, samples, and model blocks. Enforce alignment, non-overlap, readable labels, and MathJax formulas. Not for dashboards, generic business diagrams, or illustration-first artwork.

概览

发布者QIANJINYDX
代码仓库research-drawio-skill
技能名称draw-science
星标数
45
复刻数
2
附带文件
17
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 17 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 QIANJINYDX 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Draw Science AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/QIANJINYDX/research-drawio-skill/tree/main/skills/draw-science
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/QIANJINYDX/research-drawio-skill.git /tmp/research-drawio-skill
mkdir -p .claude/skills
cp -r /tmp/research-drawio-skill/skills/draw-science .claude/skills/draw-science
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Draw Science,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Draw Science。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Draw Science 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Draw Science

Build scientific flowcharts as visual arguments, not decorative process maps. The diagram must make a paper's method, mechanism, cohort flow, model architecture, or analytical logic easier to review.

This skill mirrors the nature-figure philosophy: first define the scientific claim and evidence hierarchy, then choose the minimum diagram structure, then engineer the layout and connectors, then apply restrained journal style and export QA.

The output should not be an all-text box diagram when the topic has visual entities. Use editable draw.io primitives to build semantic glyphs for the key scientific objects, while keeping labels short and reviewable.

Routing Protocol

Follow these steps whenever the skill is invoked.

1. Load the manifest and core layer

Read manifest.yaml. Then read every file listed under always_load:

  • static/core/contract.md
  • static/core/stance.md

Do not draw from memory or from a favorite template before the contract exists. If the diagram contains formulas, load references/math-typesetting.md before authoring any formula labels. If the diagram contains biological structures, charts, tensors, model modules, or other visual entities, load references/composite-elements.md before drawing those entities. If the diagram is traced from a GPT/imagegen/raster reference and close visual matching matters, load references/strict-visual-comparison.md before final QA.

2. Establish the diagram contract before authoring

Create a compact working contract:

  1. Scientific message: the one-sentence point the flowchart must defend.
  2. Diagram role: method overview, experimental workflow, cohort flow, mechanism, analytical pipeline, graphical abstract, or hybrid figure panel.
  3. Topology: ordered nodes, grouped modules, edge meanings, branches, loops, and inputs/outputs.
  4. Layout blueprint: rows, columns, modules, gutters, and connector corridors.
  5. Composite-element plan: which nodes become grouped visual glyphs, which draw.io primitives compose them, and what each primitive means.
  6. Visual vocabulary: colors, shapes, icons, and labels that map to scientific entities rather than decoration.
  7. Math contract: formula cells, MathJax delimiters, and fallback plain labels.
  8. Export contract: target size, editable source, SVG/PDF needs, and review risks.

If the user provides only a topic, infer a provisional message and topology, then make the uncertainty visible in the working notes or response.

3. Use draw.io as the default editable source

Use diagrams.net/draw.io .drawio as the source format unless the user asks for another format. If no export format is specified, provide or prepare:

  • .drawio editable source as the primary artifact.
  • .svg as the primary publication/export preview.
  • .pdf or .png only when requested or needed for submission/preview.

When editing an existing .drawio, preserve user content, page structure, IDs, grouping, and geometry unless the requested redesign requires a change.

4. Engineer layout before connectors

Before writing edges, create a grid layout plan:

  • Place modules on a strict column/row grid with consistent node sizes.
  • Decide which major nodes should be visual glyphs instead of plain text boxes.
  • Reserve empty routing corridors between modules and around formula blocks.
  • Route connectors only through corridors, never through text-bearing shapes.
  • Use the simplest valid connector: direct line first, one-bend orthogonal line second, multi-bend detour only when it avoids a real obstacle.
  • Prefer separate label cells near connectors over text directly on long edges.
  • Avoid crossings by changing geometry before adding style.

For detailed rules, load references/layout-and-routing.md whenever creating or repairing a .drawio file.

5. Build semantic composite elements

Use grouped draw.io primitives when they clarify the science:

  • Use bars + axes for a "quantitative result" or "metric comparison" glyph.
  • Use paired circles + crossing rails for a DNA/RNA helix glyph.
  • Use tiled rectangles for matrices, heatmaps, attention maps, or omics tables.
  • Use circles connected by lines for neural networks, graphs, or cell-cell communication.
  • Use ellipses/circles with internal marks for cells, nuclei, organelles, or samples.

Composite elements must be editable, grouped, and semantic. They are not clip art. Each repeated primitive should encode a real object, category, feature, or data structure. Do not draw arbitrary chart glyphs with invented values. For detailed recipes, load references/composite-elements.md.

6. Classify the diagram archetype

Choose the closest archetype before layout:

  • experimental workflow
  • computational pipeline
  • study/cohort flow
  • method architecture
  • mechanism schematic
  • multi-omics/data-integration workflow
  • graphical abstract
  • hybrid multi-panel flowchart

Use one dominant archetype. Treat secondary archetypes as supporting modules, not competing layouts.

7. Load references only when needed

Use the references.on_demand table in manifest.yaml.

FileOpen when
references/archetypes.mdNeed to choose or combine flowchart archetypes
references/style-guide.mdNeed typography, color, shape, arrow, spacing, and panel-label rules
references/composite-elements.mdNeed editable grouped glyphs such as DNA, bar-chart miniatures, matrices, networks, cells, tissues, or model blocks
references/layout-and-routing.mdNeed grid alignment, connector routing, collision avoidance, or dense model diagrams
references/math-typesetting.mdNeed formulas, symbols, MathJax, or draw.io mathematical typesetting
references/drawio-authoring.mdNeed to create or edit .drawio/mxGraph XML directly
references/export-preview.mdNeed to export PNG/SVG/PDF previews, verify draw.io Desktop CLI, or run visual preview checks
references/strict-visual-comparison.mdNeed to compare exported draw.io PNG against a GPT/imagegen/raster reference or diagnose mismatch regions
references/qa-contract.mdBefore final delivery, export, reviewer-facing audit, or journal submission

Operating Rules

  • The scientific logic outranks style. Delete nodes and branches that do not carry a unique piece of evidence or procedural meaning.
  • Prefer one clear reading path over a dense network. Use branches only for real alternatives, controls, or parallel assays.
  • Draw the layout from a grid plan, not by eye. Nodes in the same semantic lane must share aligned x/y coordinates and dimensions.
  • Avoid all-text diagrams. For each major scientific entity, ask whether it should be a grouped visual glyph made from draw.io primitives.
  • Build composite glyphs from simple editable shapes, not raster icons. Group their child elements, use stable IDs, and keep a short label near the group.
  • If a dedicated SVG has already been inserted for the same scientific object, treat that SVG as the visual glyph and do not also draw a duplicate primitive glyph unless the user explicitly asks for a hybrid editable reconstruction.
  • Keep labels outside glyph interiors unless the label is an intentional symbol such as A/C/G/T on a base or a channel mark. Text must not cover primitive shapes.
  • Treat connector routing as a first-class design object. No connector may pass through a text label, formula cell, node body, matrix tile, or module title.
  • Minimize connector bends. Remove micro-jogs and redundant waypoints before final delivery.
  • Render mathematical notation through draw.io MathJax syntax: set math="1" in the graph model and use \(...\) or $$...$$ delimiters.
  • Use restrained journal style: white background, clean typography, subtle module grouping, consistent arrows, and low-saturation color families.
  • Reclaim whitespace after replacing primitive glyphs with SVGs: recenter the SVG, move labels closer with safe padding, shrink stale placeholder regions, and reroute connectors with the fewest bends that remain valid.
  • Make text editable and readable at final print size. Avoid rasterized labels, decorative shadows, gradients, and clip-art-like icons.
  • Run scripts/qa_drawio.py on generated uncompressed .drawio files when Python is available, then fix all reported layout or source-integrity issues.
  • For final or visually sensitive figures, export PNG/SVG previews with scripts/export_drawio_preview.py, inspect the preview, and iterate until inserted SVGs, formulas, labels, connectors, and canvas crop render correctly.
  • For traced reference figures, run scripts/compare_drawio_reference.py against the exported PNG and use the diff overlays and worst-tile report to drive another edit pass before delivery.
  • For close GPT/imagegen/raster tracing, run at least three strict export/compare/fix iterations and require a final strict-comparison pass before calling the figure complete. Failed strict metrics are not acceptable merely because the redraw is editable, vectorized, or formula-cleaned.
  • Keep a private working trail private. Do not expose private paths, filenames, internal template names, or provenance unless the user explicitly asks.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Draw Science AI 技能有什么作用?

Create, revise, audit, and export publication-style scientific flowcharts and schematic workflows in diagrams.net/draw.io. Use for research-paper flowcharts, Nature-style workflows, graphical abstracts, method pipelines, experimental design, cohort/study flow, mechanism schematics, model architecture, editable .drawio files, and SVG/PDF-ready scientific diagrams, including 科研流程图, 论文流程图, draw.io作图, 方法流程图, 实验设计图, 技术路线图, 机制示意图, and 图形摘要. Start from a scientific message, topology, grid layout, semantic composite-element plan, collision-free routing, math-label contract, export contract, and rev...

为什么在 TypingMind 中使用 Draw Science?

因为您只需安装一次,就能搭配任何模型使用。Draw Science 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Draw Science?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/QIANJINYDX/research-drawio-skill/tree/main/skills/draw-science。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Draw Science?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Draw Science 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Draw Science 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Draw Science AI 技能免费吗?

QIANJINYDX 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇