Skip to content
Skillpedia
Images & icons51k · #1971

scientific-schematics

Helps your agent create drafts of scientific diagrams. It refines diagrams based on quality reviews, useful for neural networks and flowcharts.

What it does

This tool creates drafts of scientific diagrams for papers, presentations, or reports. You describe what you want to see, and the AI generates an image.

When to use it

  • ✓Need a flowchart for a scientific paper.
  • ✓Want to visualize a neural network architecture.
  • ✓Creating a presentation and need a diagram.

Example of what to ask your AI

“Create a CONSORT participant flowchart with 500 screened and 150 excluded.”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/scientific-schematics/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/scientific-schematics/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

You describe the diagram in text. One AI creates an image. Another AI checks the quality and asks for improvements if needed, generating new versions until it's good.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add K-Dense-AI/scientific-agent-skills --skill scientific-schematics

Or download just the file:

curl -L https://raw.githubusercontent.com/K-Dense-AI/scientific-agent-skills/main/skills/scientific-schematics/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from 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:

  1. Generation 1: Nano Banana 2 creates initial image following scientific diagram best practices
  2. Review 1: Gemini 3.7 Flash evaluates quality against document-type threshold
  3. Decision: If quality >= threshold and no improvement verdict → DONE (no more iterations needed!)
  4. If below threshold or improvement requested: Improved prompt based on critique, regenerate
  5. 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

…

FAQ

Is the final image high resolution?

The image is generated in PNG format. If you need formats like PDF or specific high resolution (DPI), you'll have to convert the image afterward.

Can I use confidential data?

No. Your requests are sent to the AI, so do not use information that cannot be shared.

How many times does the AI try to redo the diagram?

The AI tries to redo the diagram a maximum of two times if the first version isn't good enough or if the review requests improvements.

Details

Original description by the author

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.

repo: K-Dense-AI/scientific-agent-skills

Popularity

GitHub stars
51k
Ranking position
#1971
License
MIT
Updated
10/15/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills