[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75KS5JPB3C4NWCM7FJVZD7P":3,"skill-same:01M75KS5JPB3C4NWCM7FJVZD7P":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M75KS5JPB3C4NWCM7FJVZD7P","schematics-diagrams",null,"Design scientific schematics, workflow diagrams, and architecture figures.","pradyumnasagar\u002Fopen-research-skills","pradyumnasagar","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F10559871?v=4","01M75K78MYCCVKRTYGT8KKC380","Pradyumna Jayaram","01M75K78NTNE41F2PE1XBVFHAS",8,"MIT","https:\u002F\u002Fgithub.com\u002Fpradyumnasagar\u002Fopen-research-skills\u002Fblob\u002Fmain\u002Fskills\u002Fscientific-visualization\u002Fschematics-diagrams\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\n\nname: schematics-diagrams\ndescription: \"Design scientific schematics, workflow diagrams, and architecture figures.\"\nlicense: MIT\n---\n\u003C!-- metadata:\n  category: scientific-visualization\n  oversight: medium\n  version: 1.0.0\n  author: Pradyumna Jayaram\n  tags: [scientific-visualization, research]\n  difficulty: intermediate\n-->\n\n# Scientific Schematics and Diagrams\n\n## Hard rules\n\n1. **No fabricated citations.** Every cited work must resolve to a verifiable\n2. **No claim without provenance.** Every quantitative or factual claim\n3. **No silent failure.** Every script invocation, API call, or tool use must declare its exit status and what to do on non-zero. A skill that silently swallows errors is a violation.\n\n## When to use\n\nTrigger this skill when any of the following apply:\n\n- A manuscript needs a graphical abstract, study-design cartoon, or workflow figure.\n- You are describing a method (e.g., sample collection, library prep, model pipeline) that benefits from a visual.\"\n- A reviewer or collaborator asks \"could you draw this as a diagram?\".\n- You are producing a figure for a slide deck, poster, or thesis chapter where words alone are insufficient.\n- You need an architecture figure for a computational pipeline (training\u002Finference flow, data movement).\n\n## When NOT to use\n\n- Data plots (volcano, UMAP, survival curves) — use `ors-scientific-visualization-figure-design` or domain-specific `ors-bioinformatics-*` skills.\n- Presentation slides themselves — use `ors-scientific-visualization-slides-design`.\n- Large-format posters — use `ors-scientific-visualization-poster-design`.\n- Pure typography\u002Fcitations — use `ors-scientific-writing`.\n\n## Prerequisites\n\n- A single sentence that states the figure's main idea. If you cannot write this, the figure is not yet scoped.\n- A list of the elements (boxes, arrows, panels) and the relationships between them. Drawing it on paper first usually pays off.\n- For LaTeX\u002FTikZ: a working TeX Live installation with `tikz` and a TikZ library set (e.g., `shapes.geometric`, `arrows.meta`, `positioning`).\n- For SVG vector editing: Inkscape (free) or Affinity Designer \u002F Adobe Illustrator.\n- For declarative text-to-diagram: Mermaid CLI (`@mermaid-js\u002Fmermaid-cli`) or Graphviz (`dot`).\n\n## Core workflow\n\n1. **Write the one-sentence headline.** \"This figure shows that X is converted to Y via three steps.\" Anything that does not serve that sentence is removed.\n2. **Choose the tool family.** Declarative text-to-diagram (Mermaid, Graphviz, TikZ) for stable, code-reviewable figures; GUI vector editors (draw.io, Inkscape, Illustrator) for hand-tuned illustration; icon-heavy biomedical figures via BioRender or Inkscape + icon set.\n3. **Sketch the layout on a 3×5 grid.** Decide on 1, 2, 3, or 4 zones; align every element to the grid. Diagonal lines are rare; use orthogonal arrows.\n4. **Establish a visual vocabulary.** Pick a small set of shapes (rounded box = process, cylinder = data, diamond = decision, arrow = flow, brace = group) and stick to it.\n5. **Color-code by category, not by decoration.** Limit to 3–5 hues (e.g., input, processing, output, control, error). Always pair color with shape or label.\n6. **Label every element and every arrow.** Arrow text is an action verb (\"normalize\", \"filter\"), not a noun. Box text is a noun phrase.\n7. **Set typography and stroke.** One sans-serif family, ~9 pt for print, 1 pt stroke for boxes, 0.75 pt for arrows. See the figure-design skill for rcParams.\n8. **Export vector for print, PNG for previews.** PDF\u002FSVG for journals; PNG at 300 DPI for slide decks; embedded in LaTeX via `\\includegraphics`.\n9. **Audit for accessibility.** Run a CVD simulator, check contrast, add alt text in the manuscript.\n10. **Disclosure for AI-generated imagery.** If you use a generative tool to produce or enhance any portion, state the tool, prompt, and version in the figure caption or Methods, per the destination journal's policy.\n\n## Code patterns\n\n### A. Tool selection matrix\n\n| Need | Recommended tool | Why |\n|---|---|---|\n| Quick editable vector diagram, free | **draw.io (app.diagrams.net)** | Free, desktop + web, exports SVG\u002FPDF, large shape library, no install if you use the web app |\n| Hand-tuned publication vector | **Inkscape** (or Affinity \u002F Illustrator) | Full control, supports SVG natively, integrates with LaTeX via `inkscape --export-pdf` |\n| Pipeline \u002F sequence from text | **Mermaid** (`graph`, `flowchart`, `sequenceDiagram`, `erDiagram`) | Code-reviewable, version-controlled, renders in GitHub\u002FQuarto, low learning curve |\n| Auto-layout graph (trees, networks) | **Graphviz** (`dot`, `neato`, `fdp`) | Best automatic layout; great for phylogenies, dependencies, hierarchies |\n| LaTeX-native vector with formulas | **TikZ \u002F PGF** | Embedded in the manuscript, no external file, font consistency guaranteed |\n| Biomedical icon-heavy illustration | **BioRender** (commercial) | Curated icon library for cells, tissues, organs; license required for publication |\n| Schematic from generative AI | **DALL·E, Midjourney, Stable Diffusion** | Permitted by some journals with disclosure; check `ICMJE` and the destination journal's policy |\n\n### B. Mermaid — workflow diagram (renders in Markdown)\n\n````markdown\n```mermaid\nflowchart LR\n    A[FASTQ files] --> B[QC: fastp]\n    B --> C[Align: STAR]\n    C --> D[Quantify: featureCounts]\n    D --> E[De: DESeq2]\n    E --> F[(results table)]\n    F --> G[Volcano plot]\n    F --> H[GO enrichment]\n\n    classDef process fill:#E8F1FA,stroke:#1F77B4,color:#000;\n    classDef data fill:#FFF7E0,stroke:#FF9F1C,color:#000;\n    class A,F data;\n    class B,C,D,E process;\n```\n````\n\nRender with `mmdc -i workflow.md -o workflow.pdf` or include in Quarto\u002FLaTeX via a Mermaid filter.\n\n### C. Mermaid — sequence diagram (e.g., for an API or training loop)\n\n````markdown\n```mermaid\nsequenceDiagram\n    participant U as User\n    participant A as API\n    participant M as Model\n    U->>A: POST \u002Fpredict (fasta)\n    A->>M: tokenize + embed\n    M-->>A: logits\n    A-->>U: 200 OK (json)\n    Note over A,M: p95 latency 120 ms\n```\n````\n\n### D. Graphviz — DOT for auto-layout (e.g., a method pipeline)\n\n```dot\ndigraph pipeline {\n    rankdir=LR; bgcolor=\"white\";\n    node [shape=box, style=\"rounded,filled\", fontname=\"Helvetica\", fontsize=10];\n    edge [fontname=\"Helvetica\", fontsize=9];\n\n    fastq    [label=\"FASTQ\",            fillcolor=\"#FFF7E0\"];\n    qc       [label=\"fastp\",            fillcolor=\"#E8F1FA\"];\n    align    [label=\"STAR\",             fillcolor=\"#E8F1FA\"];\n    quant    [label=\"featureCounts\",    fillcolor=\"#E8F1FA\"];\n    de       [label=\"DESeq2\",           fillcolor=\"#E8F1FA\"];\n    results  [label=\"DE table\",         fillcolor=\"#FFF7E0\", shape=cylinder];\n\n    fastq  -> qc  [label=\"raw reads\"];\n    qc     -> align [label=\"clean reads\"];\n    align  -> quant [label=\"BAM\"];\n    quant  -> de   [label=\"counts matrix\"];\n    de     -> results [label=\"padj \u003C 0.05\"];\n}\n```\n\nCompile with `dot -Tpdf pipeline.dot -o pipeline.pdf` or `-Tsvg` for web.\n\n### E. TikZ — minimal figure skeleton in LaTeX\n\n```latex\n\\begin{figure}[t]\n\\centering\n\\begin{tikzpicture}[\n    node distance=12mm and 14mm,\n    every node\u002F.style={font=\\sffamily\\small},\n    proc\u002F.style={rectangle, rounded corners=2pt, draw=black!70,\n                 fill=blue!10, minimum width=22mm, minimum height=8mm,\n                 align=center, line width=0.5pt},\n    data\u002F.style={cylinder, shape border rotate=90, draw=black!70,\n                 fill=orange!15, aspect=0.3, minimum height=8mm, align=center},\n    arr\u002F.style={-{Latex[length=2mm]}, line width=0.5pt}\n]\n\\node[proc] (qc)  {fastp};\n\\node[proc, right=of qc] (aln) {STAR};\n\\node[proc, right=of aln] (cnt) {featureCounts};\n\\node[data, above=of qc]  (fq)  {FASTQ};\n\\node[data, right=of cnt] (res) {DE table};\n\n\\draw[arr] (fq) -- (qc);\n\\draw[arr] (qc) -- node[above, font=\\scriptsize]{clean} (aln);\n\\draw[arr] (aln) -- (cnt);\n\\draw[arr] (cnt) -- node[above, font=\\scriptsize]{counts} (res);\n\\end{tikzpicture}\n\\caption{Schematic of the RNA-seq quantification and differential-expression\nworkflow. Cylinders denote data artifacts; rounded boxes denote processes.}\n\\label{fig:workflow}\n\\end{figure}\n```\n\n### F. draw.io export (command line)\n\n```bash\n# Convert a draw.io file to a clean PDF with embedded fonts\ndrawio --export --format pdf \\\n       --border 10 \\\n       --scale 2 \\\n       --embed-svg-images \\\n       workflow.drawio\n# or via the headless CLI\ndrawio --headless --export workflow.drawio --output workflow.pdf\n```\n\n### G. Inkscape — vector cleanup for camera-ready\n\n- Save the working file as `.svg`. Export a PDF with `File → Save As → PDF` for the journal.\n- Convert all text to paths only if the journal explicitly requires it; otherwise keep live text so it is searchable and accessible.\n- Use `Extensions → Color → Randomize` only to find duplicates you missed; never on the final figure.\n\n## Visual grammar (the recurring vocabulary)\n\n| Element | Shape \u002F style | Use for |\n|---|---|---|\n| Process \u002F step | Rounded rectangle | An action, a tool, a transformation |\n| Data \u002F artifact | Cylinder or folder | A file, a table, a database, a model checkpoint |\n| Decision | Diamond | A yes\u002Fno branch, a threshold check |\n| External system | Cloud or dashed box | A service, an external database |\n| Group \u002F region | Lightly tinted background panel | A module, a stage, a phase |\n| Flow | Arrow with verb label | Movement, dependency, causality |\n| Inhibition | Blunt-end arrow (`-|-`) | Negative regulation, knock-out |\n| Activation | Standard arrow (`->`) | Positive regulation, activation |\n| Bidirectional | Double arrow (`\u003C->`) | Communication, two-way binding |\n\nPick one shape per category, do not switch. Use the same color for \"input\", the same color for \"processing\", the same color for \"output\" across every figure in the manuscript.\n\n## Layout principles\n\n- **One column at a time, top to bottom, or one row, left to right.** Readers in science journals read in a Western L→R top→bottom pattern. Multi-column flows need explicit numbering.\n- **Group by proximity.** Place elements that belong together in a tinted background or with a brace.\n- **Number complex flows.** When the figure has more than 5 steps, label each step (1, 2, 3, ...) and refer to the numbers in the caption.\n- **Reserve whitespace.** A figure that fills the whole canvas looks crowded. Use 10–15% margin on every side.\n- **Cap at 4 zones.** More than 4 quadrants\u002Fregions and the reader's working memory breaks. Split into two figures.\n- **Use a scale reference where appropriate.** For geographic\u002Fsize schematics (organ, organism, chip), include a scale bar in real units.\n\n## Accessibility for diagrams\n\nDiagrams have unique accessibility needs beyond plots:\n\n- **Alt text.** Write 1–3 sentences that name the figure type, the main idea, and the key elements. Example: \"Workflow diagram. FASTQ files are QC-filtered with fastp, aligned with STAR, quantified with featureCounts, and tested for differential expression with DESeq2.\"\n- **Color + shape.** Every category gets both a color and a unique shape, so CVD readers can still distinguish them.\n- **Text contrast.** All labels must meet WCAG 2.1 AA (4.5:1 for normal text, 3:1 for large). Test with the WebAIM contrast checker.\n- **No information conveyed by color alone.** If two branches are different, use different line styles as well.\n- **Readable at print size.** If a label is illegible at the journal's column width after PDF export, increase font size; do not shrink the figure.\n- **No emoji, no clip-art, no decorative icons** in figures destined for a journal article.\n\n## Journal conventions\n\n| Journal \u002F publisher | Schematic conventions |\n|---|---|\n| **Nature** | Vector PDF or SVG preferred; panel labels lowercase bold (a, b, c); figure caption begins with a one-sentence summary |\n| **Cell** | Strict vector requirement; Arial\u002FHelvetica 6–8 pt after reduction; no gradients; specific color guidance in author instructions |\n| **PNAS** | Width 8.7 cm or 12.1 cm; sans-serif; bold uppercase panel labels (A, B); tagging recommended for \"boxed\" callouts |\n| **PLOS** | RGB or CMYK; 300+ DPI raster, vector preferred; alt text required in submission system |\n| **IEEE** | 3.5\" or 7.16\" wide; sans-serif 8–10 pt at final size |\n| **eLife** | 110 mm or 225 mm; vector preferred; alt text enforced |\n\nAlways check the destination journal's \"Information for Authors\" before export.\n\n## AI image generation: a disclosure note\n\nGenerative tools (DALL·E, Midjourney, Stable Diffusion, Ideogram, Flux) can produce plausible scientific schematics but routinely:\n\n- Hallucinate anatomical structures (extra organelles, wrong cell-type morphology).\n- Mis-label molecules, arrows, and reagents.\n- Inherit the style of copyrighted training images (BioRender-style iconography is a common example).\n- Produce text in illegible or fabricated fonts.\n\nIf you do use a generative tool, the recommended practice is to treat the output as a sketch and redraw it in Inkscape or Illustrator for clarity, accuracy, and accessibility. Many journals (Nature, Science, Cell, JAMA) require explicit disclosure of generative-AI use in figures, including the model name, version, prompt, and any human modifications. Check the destination journal's policy; when in doubt, disclose.\n\n## Common pitfalls\n\n- **Decoration over information**: gradients, shadows, 3D bevels. They add ink without adding signal. Use flat fills.\n- **Color-only encoding**: red vs. green to distinguish two groups. ~8% of male readers see no difference. Use shape + color.\n- **Arrow spaghetti**: arrows crossing everywhere. Re-route around elements; use a slight vertical offset for parallel arrows.\n- **Unreadable labels at print size**: 6 pt body text after the journal reduces to 80%. Set the test page at the final print size before exporting.\n- **Mixing units**: some boxes in pixels, some in mm. Pick one. For SVG, set the document size in mm and use viewBox; for TikZ, use mm throughout.\n- **Forgetting the data type**: a rounded box where a cylinder belongs (e.g., a \"results table\" drawn as a process). Readers parse shape semantically.\n- **Reusing a BioRender figure without a license**: BioRender content is licensed for use only by the original author for a specific paper. Re-using or adapting it for another paper requires a new license.\n- **Embedded raster in a \"vector\" file**: a 72 DPI PNG dragged into Inkscape and exported as PDF looks fine on screen and is blurry in print. Always import at ≥ 300 DPI.\n\n## Validation\n\n- **Squint test**: squint at the figure. The one main idea should still be readable as a silhouette.\n- **Five-second test**: show the figure to a colleague for 5 seconds, then hide it. Ask them to state the main idea. If they cannot, simplify.\n- **Greyscale test**: convert the figure to greyscale (`gs -sDEVICE=pngalpha -sColorConversionStrategy=Gray ...`) and confirm the figure still tells its story.\n- **CVD test**: pass the exported PNG through Coblis or Sim Daltonism (deuteranopia, protanopia, tritanopia). All elements should remain distinguishable.\n- **Print test**: print at the final size on paper. If a label is unreadable from 2 feet, the figure is not publication-ready.\n- **Alt-text test**: paste the figure (no caption) into a doc, share with a colleague who has not seen it, and read them your alt text. If the colleague can sketch the figure from the alt text alone, the alt text is doing its job.\n\n## Open alternatives\n\n| Commercial \u002F proprietary | Open alternative | Trade-off |\n|---|---|---|\n| BioRender | Inkscape + sci-domain icon set (e.g., `scikit-image` glyphs, `reactome.org` icons, or `Servier Medical Art` for CC-BY icons) | Free; smaller icon library; requires manual placement |\n| Adobe Illustrator | Inkscape | Same vector file format (SVG), slightly different UX; no cloud-only features |\n| Lucidchart \u002F Miro | draw.io (app.diagrams.net) | Free, self-hostable, exports to SVG\u002FPDF, large community shape library |\n| yEd (yWorks) | Graphviz \u002F Mermaid | Free; less interactive, but code-driven and version-controllable |\n| Microsoft Visio | draw.io | Free, sufficient for most scientific diagrams; no native database reverse-engineering |\n| OmniGraffle | Inkscape | macOS-only commercial; Inkscape is cross-platform and free |\n| Photoshop pixel-pushing | Inkscape + GIMP (raster) | Free; GIMP for image cleanup, Inkscape for vector layout |\n| Generative AI tools (DALL·E, Midjourney) | Hand-draw in Inkscape | Reliable, accessible, disclosable; slower; better for accuracy |\n\n## References\n\nInternal cross-links to other `ors-*` skills:\n\n- `ors-scientific-visualization-figure-design` — DPI, vector\u002Fraster, rcParams, multi-panel layout.\n- `ors-scientific-visualization-color-and-accessibility` — palette choice and CVD audit.\n- `ors-scientific-visualization-slides-design` — adaptation for projection (larger fonts, fewer elements).\n- `ors-scientific-visualization-poster-design` — adaptation for A0\u002Fletter print.\n- `ors-scientific-writing` — caption-writing guidance and alt-text conventions.\n\nExternal resources (do not fabricate exact paths):\n\n- draw.io \u002F diagrams.net documentation — `www.diagrams.net`\n- Inkscape official documentation — `inkscape.org\u002Fdoc`\n- Mermaid documentation and live editor — `mermaid.js.org`\n- Graphviz documentation and gallery — `graphviz.org\u002Fdocumentation`\n- TikZ \u002F PGF manual (included with TeX Live; `texdoc tikz`)\n- BioRender publication-licensing terms — `biorender.com`\n- Servier Medical Art (CC-BY biomedical icon library) — `smart.servier.com`\n- WCAG 2.1 contrast guidelines — `w3.org\u002FTR\u002FWCAG21\u002F`\n- Nature \u002F Cell \u002F PNAS \u002F PLOS figure guidelines (journal-specific author instructions)\n\n## Changelog\n\n- 1.0.0 (2026-06-10): Initial adaptation by Pradyumna Jayaram from `scientific-schematics` (K-Dense Inc.). Consolidated the AI-image-generation workflow into a disclosure note, added Mermaid + Graphviz + TikZ declarative patterns, added journal-specific schematic conventions and an accessibility checklist.\n\n## Cross-references\n\nOther skills in this category:\n\n- color-and-accessibility\n- figure-design\n- poster-design\n- slides-design\n","\u003C!-- metadata:\n  category: scientific-visualization\n  oversight: medium\n  version: 1.0.0\n  author: Pradyumna Jayaram\n  tags: [scientific-visualization, research]\n  difficulty: intermediate\n-->\n\n# Scientific Schematics and Diagrams\n\n## Hard rules\n\n1. **No fabricated citations.** Every cited work must resolve to a verifiable\n2. **No claim without provenance.** Every quantitative or factual claim\n3. **No silent failure.** Every script invocation, API call, or tool use must declare its exit status and what to do on non-zero. A skill that silently swallows errors is a violation.\n\n## When to use\n\nTrigger this skill when any of the following apply:\n\n- A manuscript needs a graphical abstract, study-design cartoon, or workflow figure.\n- You are describing a method (e.g., sample collection, library prep, model pipeline) that benefits from a visual.\"\n- A reviewer or collaborator asks \"could you draw this as a diagram?\".\n- You are producing a figure for a slide deck, poster, or thesis chapter where words alone are insufficient.\n- You need an architecture figure for a computational pipeline (training\u002Finference flow, data movement).\n\n## When NOT to use\n\n- Data plots (volcano, UMAP, survival curves) — use `ors-scientific-visualization-figure-design` or domain-specific `ors-bioinformatics-*` skills.\n- Presentation slides themselves — use `ors-scientific-visualization-slides-design`.\n- Large-format posters — use `ors-scientific-visualization-poster-design`.\n- Pure typography\u002Fcitations — use `ors-scientific-writing`.\n\n## Prerequisites\n\n- A single sentence that states the figure's main idea. If you cannot write this, the figure is not yet scoped.\n- A list of the elements (boxes, arrows, panels) and the relationships between them. Drawing it on paper first usually pays off.\n- For LaTeX\u002FTikZ: a working TeX Live installation with `tikz` and a TikZ library set (e.g., `shapes.geometric`, `arrows.meta`, `positioning`).\n- For SVG vector editing: Inkscape (free) or Affinity Designer \u002F Adobe Illustrator.\n- For declarative text-to-diagram: Mermaid CLI (`@mermaid-js\u002Fmermaid-cli`) or Graphviz (`dot`).\n\n## Core workflow\n\n1. **Write the one-sentence headline.** \"This figure shows that X is converted to Y via three steps.\" Anything that does not serve that sentence is removed.\n2. **Choose the tool family.** Declarative text-to-diagram (Mermaid, Graphviz, TikZ) for stable, code-reviewable figures; GUI vector editors (draw.io, Inkscape, Illustrator) for hand-tuned illustration; icon-heavy biomedical figures via BioRender or Inkscape + icon set.\n3. **Sketch the layout on a 3×5 grid.** Decide on 1, 2, 3, or 4 zones; align every element to the grid. Diagonal lines are rare; use orthogonal arrows.\n4. **Establish a visual vocabulary.** Pick a small set of shapes (rounded box = process, cylinder = data, diamond = decision, arrow = flow, brace = group) and stick to it.\n5. **Color-code by category, not by decoration.** Limit to 3–5 hues (e.g., input, processing, output, control, error). Always pair color with shape or label.\n6. **Label every element and every arrow.** Arrow text is an action verb (\"normalize\", \"filter\"), not a noun. Box text is a noun phrase.\n7. **Set typography and stroke.** One sans-serif family, ~9 pt for print, 1 pt stroke for boxes, 0.75 pt for arrows. See the figure-design skill for rcParams.\n8. **Export vector for print, PNG for previews.** PDF\u002FSVG for journals; PNG at 300 DPI for slide decks; embedded in LaTeX via `\\includegraphics`.\n9. **Audit for accessibility.** Run a CVD simulator, check contrast, add alt text in the manuscript.\n10. **Disclosure for AI-generated imagery.** If you use a generative tool to produce or enhance any portion, state the tool, prompt, and version in the figure caption or Methods, per the destination journal's policy.\n\n## Code patterns\n\n### A. Tool selection matrix\n\n| Need | Recommended tool | Why |\n|---|---|---|\n| Quick editable vector diagram, free | **draw.io (app.diagrams.net)** | Free, desktop + web, exports SVG\u002FPDF, large shape library, no install if you use the web app |\n| Hand-tuned publication vector | **Inkscape** (or Affinity \u002F Illustrator) | Full control, supports SVG natively, integrates with LaTeX via `inkscape --export-pdf` |\n| Pipeline \u002F sequence from text | **Mermaid** (`graph`, `flowchart`, `sequenceDiagram`, `erDiagram`) | Code-reviewable, version-controlled, renders in GitHub\u002FQuarto, low learning curve |\n| Auto-layout graph (trees, networks) | **Graphviz** (`dot`, `neato`, `fdp`) | Best automatic layout; great for phylogenies, dependencies, hierarchies |\n| LaTeX-native vector with formulas | **TikZ \u002F PGF** | Embedded in the manuscript, no external file, font consistency guaranteed |\n| Biomedical icon-heavy illustration | **BioRender** (commercial) | Curated icon library for cells, tissues, organs; license required for publication |\n| Schematic from generative AI | **DALL·E, Midjourney, Stable Diffusion** | Permitted by some journals with disclosure; check `ICMJE` and the destination journal's policy |\n\n### B. Mermaid — workflow diagram (renders in Markdown)\n\n````markdown\n```mermaid\nflowchart LR\n    A[FASTQ files] --> B[QC: fastp]\n    B --> C[Align: STAR]\n    C --> D[Quantify: featureCounts]\n    D --> E[De: DESeq2]\n    E --> F[(results table)]\n    F --> G[Volcano plot]\n    F --> H[GO enrichment]\n\n    classDef process fill:#E8F1FA,stroke:#1F77B4,color:#000;\n    classDef data fill:#FFF7E0,stroke:#FF9F1C,color:#000;\n    class A,F data;\n    class B,C,D,E process;\n```\n````\n\nRender with `mmdc -i workflow.md -o workflow.pdf` or include in Quarto\u002FLaTeX via a Mermaid filter.\n\n### C. Mermaid — sequence diagram (e.g., for an API or training loop)\n\n````markdown\n```mermaid\nsequenceDiagram\n    participant U as User\n    participant A as API\n    participant M as Model\n    U->>A: POST \u002Fpredict (fasta)\n    A->>M: tokenize + embed\n    M-->>A: logits\n    A-->>U: 200 OK (json)\n    Note over A,M: p95 latency 120 ms\n```\n````\n\n### D. Graphviz — DOT for auto-layout (e.g., a method pipeline)\n\n```dot\ndigraph pipeline {\n    rankdir=LR; bgcolor=\"white\";\n    node [shape=box, style=\"rounded,filled\", fontname=\"Helvetica\", fontsize=10];\n    edge [fontname=\"Helvetica\", fontsize=9];\n\n    fastq    [label=\"FASTQ\",            fillcolor=\"#FFF7E0\"];\n    qc       [label=\"fastp\",            fillcolor=\"#E8F1FA\"];\n    align    [label=\"STAR\",             fillcolor=\"#E8F1FA\"];\n    quant    [label=\"featureCounts\",    fillcolor=\"#E8F1FA\"];\n    de       [label=\"DESeq2\",           fillcolor=\"#E8F1FA\"];\n    results  [label=\"DE table\",         fillcolor=\"#FFF7E0\", shape=cylinder];\n\n    fastq  -> qc  [label=\"raw reads\"];\n    qc     -> align [label=\"clean reads\"];\n    align  -> quant [label=\"BAM\"];\n    quant  -> de   [label=\"counts matrix\"];\n    de     -> results [label=\"padj \u003C 0.05\"];\n}\n```\n\nCompile with `dot -Tpdf pipeline.dot -o pipeline.pdf` or `-Tsvg` for web.\n\n### E. TikZ — minimal figure skeleton in LaTeX\n\n```latex\n\\begin{figure}[t]\n\\centering\n\\begin{tikzpicture}[\n    node distance=12mm and 14mm,\n    every node\u002F.style={font=\\sffamily\\small},\n    proc\u002F.style={rectangle, rounded corners=2pt, draw=black!70,\n                 fill=blue!10, minimum width=22mm, minimum height=8mm,\n                 align=center, line width=0.5pt},\n    data\u002F.style={cylinder, shape border rotate=90, draw=black!70,\n                 fill=orange!15, aspect=0.3, minimum height=8mm, align=center},\n    arr\u002F.style={-{Latex[length=2mm]}, line width=0.5pt}\n]\n\\node[proc] (qc)  {fastp};\n\\node[proc, right=of qc] (aln) {STAR};\n\\node[proc, right=of aln] (cnt) {featureCounts};\n\\node[data, above=of qc]  (fq)  {FASTQ};\n\\node[data, right=of cnt] (res) {DE table};\n\n\\draw[arr] (fq) -- (qc);\n\\draw[arr] (qc) -- node[above, font=\\scriptsize]{clean} (aln);\n\\draw[arr] (aln) -- (cnt);\n\\draw[arr] (cnt) -- node[above, font=\\scriptsize]{counts} (res);\n\\end{tikzpicture}\n\\caption{Schematic of the RNA-seq quantification and differential-expression\nworkflow. Cylinders denote data artifacts; rounded boxes denote processes.}\n\\label{fig:workflow}\n\\end{figure}\n```\n\n### F. draw.io export (command line)\n\n```bash\n# Convert a draw.io file to a clean PDF with embedded fonts\ndrawio --export --format pdf \\\n       --border 10 \\\n       --scale 2 \\\n       --embed-svg-images \\\n       workflow.drawio\n# or via the headless CLI\ndrawio --headless --export workflow.drawio --output workflow.pdf\n```\n\n### G. Inkscape — vector cleanup for camera-ready\n\n- Save the working file as `.svg`. Export a PDF with `File → Save As → PDF` for the journal.\n- Convert all text to paths only if the journal explicitly requires it; otherwise keep live text so it is searchable and accessible.\n- Use `Extensions → Color → Randomize` only to find duplicates you missed; never on the final figure.\n\n## Visual grammar (the recurring vocabulary)\n\n| Element | Shape \u002F style | Use for |\n|---|---|---|\n| Process \u002F step | Rounded rectangle | An action, a tool, a transformation |\n| Data \u002F artifact | Cylinder or folder | A file, a table, a database, a model checkpoint |\n| Decision | Diamond | A yes\u002Fno branch, a threshold check |\n| External system | Cloud or dashed box | A service, an external database |\n| Group \u002F region | Lightly tinted background panel | A module, a stage, a phase |\n| Flow | Arrow with verb label | Movement, dependency, causality |\n| Inhibition | Blunt-end arrow (`-|-`) | Negative regulation, knock-out |\n| Activation | Standard arrow (`->`) | Positive regulation, activation |\n| Bidirectional | Double arrow (`\u003C->`) | Communication, two-way binding |\n\nPick one shape per category, do not switch. Use the same color for \"input\", the same color for \"processing\", the same color for \"output\" across every figure in the manuscript.\n\n## Layout principles\n\n- **One column at a time, top to bottom, or one row, left to right.** Readers in science journals read in a Western L→R top→bottom pattern. Multi-column flows need explicit numbering.\n- **Group by proximity.** Place elements that belong together in a tinted background or with a brace.\n- **Number complex flows.** When the figure has more than 5 steps, label each step (1, 2, 3, ...) and refer to the numbers in the caption.\n- **Reserve whitespace.** A figure that fills the whole canvas looks crowded. Use 10–15% margin on every side.\n- **Cap at 4 zones.** More than 4 quadrants\u002Fregions and the reader's working memory breaks. Split into two figures.\n- **Use a scale reference where appropriate.** For geographic\u002Fsize schematics (organ, organism, chip), include a scale bar in real units.\n\n## Accessibility for diagrams\n\nDiagrams have unique accessibility needs beyond plots:\n\n- **Alt text.** Write 1–3 sentences that name the figure type, the main idea, and the key elements. Example: \"Workflow diagram. FASTQ files are QC-filtered with fastp, aligned with STAR, quantified with featureCounts, and tested for differential expression with DESeq2.\"\n- **Color + shape.** Every category gets both a color and a unique shape, so CVD readers can still distinguish them.\n- **Text contrast.** All labels must meet WCAG 2.1 AA (4.5:1 for normal text, 3:1 for large). Test with the WebAIM contrast checker.\n- **No information conveyed by color alone.** If two branches are different, use different line styles as well.\n- **Readable at print size.** If a label is illegible at the journal's column width after PDF export, increase font size; do not shrink the figure.\n- **No emoji, no clip-art, no decorative icons** in figures destined for a journal article.\n\n## Journal conventions\n\n| Journal \u002F publisher | Schematic conventions |\n|---|---|\n| **Nature** | Vector PDF or SVG preferred; panel labels lowercase bold (a, b, c); figure caption begins with a one-sentence summary |\n| **Cell** | Strict vector requirement; Arial\u002FHelvetica 6–8 pt after reduction; no gradients; specific color guidance in author instructions |\n| **PNAS** | Width 8.7 cm or 12.1 cm; sans-serif; bold uppercase panel labels (A, B); tagging recommended for \"boxed\" callouts |\n| **PLOS** | RGB or CMYK; 300+ DPI raster, vector preferred; alt text required in submission system |\n| **IEEE** | 3.5\" or 7.16\" wide; sans-serif 8–10 pt at final size |\n| **eLife** | 110 mm or 225 mm; vector preferred; alt text enforced |\n\nAlways check the destination journal's \"Information for Authors\" before export.\n\n## AI image generation: a disclosure note\n\nGenerative tools (DALL·E, Midjourney, Stable Diffusion, Ideogram, Flux) can produce plausible scientific schematics but routinely:\n\n- Hallucinate anatomical structures (extra organelles, wrong cell-type morphology).\n- Mis-label molecules, arrows, and reagents.\n- Inherit the style of copyrighted training images (BioRender-style iconography is a common example).\n- Produce text in illegible or fabricated fonts.\n\nIf you do use a generative tool, the recommended practice is to treat the output as a sketch and redraw it in Inkscape or Illustrator for clarity, accuracy, and accessibility. Many journals (Nature, Science, Cell, JAMA) require explicit disclosure of generative-AI use in figures, including the model name, version, prompt, and any human modifications. Check the destination journal's policy; when in doubt, disclose.\n\n## Common pitfalls\n\n- **Decoration over information**: gradients, shadows, 3D bevels. They add ink without adding signal. Use flat fills.\n- **Color-only encoding**: red vs. green to distinguish two groups. ~8% of male readers see no difference. Use shape + color.\n- **Arrow spaghetti**: arrows crossing everywhere. Re-route around elements; use a slight vertical offset for parallel arrows.\n- **Unreadable labels at print size**: 6 pt body text after the journal reduces to 80%. Set the test page at the final print size before exporting.\n- **Mixing units**: some boxes in pixels, some in mm. Pick one. For SVG, set the document size in mm and use viewBox; for TikZ, use mm throughout.\n- **Forgetting the data type**: a rounded box where a cylinder belongs (e.g., a \"results table\" drawn as a process). Readers parse shape semantically.\n- **Reusing a BioRender figure without a license**: BioRender content is licensed for use only by the original author for a specific paper. Re-using or adapting it for another paper requires a new license.\n- **Embedded raster in a \"vector\" file**: a 72 DPI PNG dragged into Inkscape and exported as PDF looks fine on screen and is blurry in print. Always import at ≥ 300 DPI.\n\n## Validation\n\n- **Squint test**: squint at the figure. The one main idea should still be readable as a silhouette.\n- **Five-second test**: show the figure to a colleague for 5 seconds, then hide it. Ask them to state the main idea. If they cannot, simplify.\n- **Greyscale test**: convert the figure to greyscale (`gs -sDEVICE=pngalpha -sColorConversionStrategy=Gray ...`) and confirm the figure still tells its story.\n- **CVD test**: pass the exported PNG through Coblis or Sim Daltonism (deuteranopia, protanopia, tritanopia). All elements should remain distinguishable.\n- **Print test**: print at the final size on paper. If a label is unreadable from 2 feet, the figure is not publication-ready.\n- **Alt-text test**: paste the figure (no caption) into a doc, share with a colleague who has not seen it, and read them your alt text. If the colleague can sketch the figure from the alt text alone, the alt text is doing its job.\n\n## Open alternatives\n\n| Commercial \u002F proprietary | Open alternative | Trade-off |\n|---|---|---|\n| BioRender | Inkscape + sci-domain icon set (e.g., `scikit-image` glyphs, `reactome.org` icons, or `Servier Medical Art` for CC-BY icons) | Free; smaller icon library; requires manual placement |\n| Adobe Illustrator | Inkscape | Same vector file format (SVG), slightly different UX; no cloud-only features |\n| Lucidchart \u002F Miro | draw.io (app.diagrams.net) | Free, self-hostable, exports to SVG\u002FPDF, large community shape library |\n| yEd (yWorks) | Graphviz \u002F Mermaid | Free; less interactive, but code-driven and version-controllable |\n| Microsoft Visio | draw.io | Free, sufficient for most scientific diagrams; no native database reverse-engineering |\n| OmniGraffle | Inkscape | macOS-only commercial; Inkscape is cross-platform and free |\n| Photoshop pixel-pushing | Inkscape + GIMP (raster) | Free; GIMP for image cleanup, Inkscape for vector layout |\n| Generative AI tools (DALL·E, Midjourney) | Hand-draw in Inkscape | Reliable, accessible, disclosable; slower; better for accuracy |\n\n## References\n\nInternal cross-links to other `ors-*` skills:\n\n- `ors-scientific-visualization-figure-design` — DPI, vector\u002Fraster, rcParams, multi-panel layout.\n- `ors-scientific-visualization-color-and-accessibility` — palette choice and CVD audit.\n- `ors-scientific-visualization-slides-design` — adaptation for projection (larger fonts, fewer elements).\n- `ors-scientific-visualization-poster-design` — adaptation for A0\u002Fletter print.\n- `ors-scientific-writing` — caption-writing guidance and alt-text conventions.\n\nExternal resources (do not fabricate exact paths):\n\n- draw.io \u002F diagrams.net documentation — `www.diagrams.net`\n- Inkscape official documentation — `inkscape.org\u002Fdoc`\n- Mermaid documentation and live editor — `mermaid.js.org`\n- Graphviz documentation and gallery — `graphviz.org\u002Fdocumentation`\n- TikZ \u002F PGF manual (included with TeX Live; `texdoc tikz`)\n- BioRender publication-licensing terms — `biorender.com`\n- Servier Medical Art (CC-BY biomedical icon library) — `smart.servier.com`\n- WCAG 2.1 contrast guidelines — `w3.org\u002FTR\u002FWCAG21\u002F`\n- Nature \u002F Cell \u002F PNAS \u002F PLOS figure guidelines (journal-specific author instructions)\n\n## Changelog\n\n- 1.0.0 (2026-06-10): Initial adaptation by Pradyumna Jayaram from `scientific-schematics` (K-Dense Inc.). Consolidated the AI-image-generation workflow into a disclosure note, added Mermaid + Graphviz + TikZ declarative patterns, added journal-specific schematic conventions and an accessibility checklist.\n\n## Cross-references\n\nOther skills in this category:\n\n- color-and-accessibility\n- figure-design\n- poster-design\n- slides-design\n",{"name":5,"license":15,"description":7},"main","9c0b41e2036cc5588c699f06e658ea6dc3b9685d","skills\u002Fscientific-visualization\u002Fschematics-diagrams",2,"https:\u002F\u002Fgithub.com\u002Fpradyumnasagar\u002Fopen-research-skills","https:\u002F\u002Fgithub.com\u002Fpradyumnasagar","PhD Scholar,\r\nManipal School Of Life Sciences, Manipal\r\n #OpenSourceDeveloper #LifeSciences #ComputationalBiology","2026-10-30 01:30:52",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add pradyumnasagar\u002Fopen-research-skills --skill schematics-diagrams",{"tool":38,"command":39},"bunx","bunx skills add pradyumnasagar\u002Fopen-research-skills --skill schematics-diagrams",{"tool":41,"command":42},"pnpm","pnpm dlx skills add pradyumnasagar\u002Fopen-research-skills --skill schematics-diagrams","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fpradyumnasagar\u002Fopen-research-skills\u002Fblob\u002Fmain\u002Fskills\u002Fscientific-visualization\u002Fschematics-diagrams\u002FSKILL.md",true,[],[47,54,60,67,74,81],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M75KTS5K9QNX8FQBTJW2GQSH","good-skill","A well-formed test fixture for the validation script.","https:\u002F\u002Fgithub.com\u002Fpradyumnasagar\u002Fopen-research-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgood-skill\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M75KTR7FAT0MMMED2EGC9WZZ","BadSkill","https:\u002F\u002Fgithub.com\u002Fpradyumnasagar\u002Fopen-research-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbad-skill\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M75KTN949EDF77GJDS8H6VR8","my-new-skill","One sentence (max 200 chars) — what the skill does and when to use it.","https:\u002F\u002Fgithub.com\u002Fpradyumnasagar\u002Fopen-research-skills\u002Fblob\u002Fmain\u002Ftemplate\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M75KTHTFS121SSF1Q5X2FXDA","thesis-structure","Use when planning or checking the architecture of a PhD \u002F MPhil thesis in the life sciences or bioinformatics — monograph vs article-based, chapter sequence, IMRaD-based chapters, abstract-to-conclusion flow, and the examiner expectations that the structure must meet.","https:\u002F\u002Fgithub.com\u002Fpradyumnasagar\u002Fopen-research-skills\u002Fblob\u002Fmain\u002Fskills\u002Fthesis-writing\u002Fthesis-structure\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M75KTE3WKW46FXFHQ579H8YP","thesis-methods-reproducibility","Use when writing or checking the Methods, figures, data, and code of a bioinformatics \u002F microbiology \u002F life-science PhD thesis — the FAIR data, versioned code, report-generation, figure-and-table discipline, and the reproducibility expectations that examiners probe at viva.","https:\u002F\u002Fgithub.com\u002Fpradyumnasagar\u002Fopen-research-skills\u002Fblob\u002Fmain\u002Fskills\u002Fthesis-writing\u002Fthesis-methods-reproducibility\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M75KTA033ZQCJY3DC8P5VQET","thesis-defense-viva","Use when preparing for the viva voce \u002F oral thesis defense — building the examiner's question set, rehearsing the presentation, and the pre-defense polish (slides, summary, the 'what if I'm stuck' responses) for a life-science or bioinformatics PhD.","https:\u002F\u002Fgithub.com\u002Fpradyumnasagar\u002Fopen-research-skills\u002Fblob\u002Fmain\u002Fskills\u002Fthesis-writing\u002Fthesis-defense-viva\u002FSKILL.md",[],[]]