scientific-schematics

davila7/claude-code-templates · updated Apr 8, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills add https://github.com/davila7/claude-code-templates --skill scientific-schematics
0 commentsdiscussion
summary

Publication-quality scientific diagrams generated with AI and smart iterative refinement.

  • Supports neural network architectures, system diagrams, flowcharts, biological pathways, circuit diagrams, and complex scientific visualizations through natural language descriptions
  • Uses Nano Banana Pro for generation and Gemini 3 Pro for quality review, with smart iteration that stops early if quality meets the threshold for your document type (journal: 8.5/10, poster: 7.0/10, presentation: 6.5/1
skill.md

Scientific Schematics and Diagrams

Overview

Scientific schematics and diagrams transform complex concepts into clear visual representations for publication. This skill uses Nano Banana Pro AI for diagram generation with Gemini 3 Pro quality review.

How it works:

  • Describe your diagram in natural language
  • Nano Banana Pro generates publication-quality images automatically
  • Gemini 3 Pro reviews quality against document-type thresholds
  • Smart iteration: Only regenerates if quality is below threshold
  • Publication-ready output in minutes
  • No coding, templates, or manual drawing required

Quality Thresholds by Document Type:

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

Simply describe what you want, and Nano Banana Pro creates it. All diagrams are stored in the figures/ subfolder and referenced in papers/posters.

Quick Start: Generate Any Diagram

Create any scientific diagram by simply describing it. Nano Banana Pro handles everything automatically with smart iteration:

# 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 Pro creates initial image following scientific diagram best practices
  2. Review 1: Gemini 3 Pro evaluates quality against document-type threshold
  3. Decision: If quality >= threshold → DONE (no more iterations needed!)
  4. If below threshold: 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 plus a detailed review log with quality scores, critiques, and early-stop information.

Configuration

Set your OpenRouter API key:

export OPENROUTER_API_KEY='your_api_key_here'

Get an API key at: https://openrouter.ai/keys

AI Generation Best Practices

Effective Prompts for Scientific Diagrams:

Good prompts (specific, detailed):

  • "CONSORT flowchart showing participant flow from screening (n=500) through randomization to final analysis"
  • "Transformer neural network architecture with encoder stack on left, decoder stack on right, showing multi-head attention and cross-attention connections"
  • "Biological signaling cascade: EGFR receptor → RAS → RAF → MEK → ERK → nucleus, with phosphorylation steps labeled"
  • "Block diagram of IoT system: sensors → microcontroller → WiFi module → cloud server → mobile app"

Avoid vague prompts:

  • "Make a flowchart" (too generic)
  • "Neural network" (which type? what components?)
  • "Pathway diagram" (which pathway? what molecules?)

Key elements to include:

  • Type: Flowchart, architecture diagram, pathway, circuit, etc.
  • Components: Specific elements to include
  • Flow/Direction: How elements connect (left-to-right, top-to-bottom)
  • Labels: Key annotations or text to include
  • Style: Any specific visual requirements

Scientific Quality Guidelines (automatically applied):

  • Clean white/light background
  • High contrast for readability
  • Clear, readable labels (minimum 10pt)
  • Professional typography (sans-serif fonts)
  • Colorblind-friendly colors (Okabe-Ito palette)
  • Proper spacing to prevent crowding
  • Scale bars, legends, axes where appropriate

When to Use This Skill

This skill should be used when:

  • Creating neural network architecture diagrams (Transformers, CNNs, RNNs, etc.)
  • Illustrating system architectures and data flow diagrams
  • Drawing methodology flowcharts for study design (CONSORT, PRISMA)
  • Visualizing algorithm workflows and processing pipelines
  • Creating circuit diagrams and electrical schematics
  • Depicting biological pathways and molecular interactions
  • Generating network topologies and hierarchical structures
  • Illustrating conceptual frameworks and theoretical models
  • Designing block diagrams for technical papers

How to Use This Skill

Simply describe your diagram in natural language. Nano Banana Pro generates it automatically:

python scripts/generate_schematic.py "your diagram description" -o output.png

That's it! The AI handles:

  • ✓ Layout and composition
  • ✓ Labels and annotations
  • ✓ Colors and styling
  • ✓ Quality review and refinement
  • ✓ Publication-ready output

Works for all diagram types:

  • Flowcharts (CONSORT, PRISMA, etc.)
  • Neural network architectures
  • Biological pathways
  • Circuit diagrams
  • System architectures
  • Block diagrams
  • Any scientific visualization

No coding, no templates, no manual drawing required.


AI Generation Mode (Nano Banana Pro + Gemini 3 Pro Review)

Smart Iterative Refinement Workflow

The AI generation system uses smart iteration - it only regenerates if quality is below the threshold for your document type:

How Smart Iteration Works

┌─────────────────────────────────────────────────────┐
│  1. Generate image with Nano Banana Pro             │
│                    ↓                                │
│  2. Review quality with Gemini 3 Pro                │
│                    ↓                                │
│  3. Score >= threshold?                             │
│       YES → DONE! (early stop)                      │
│       NO  → Improve prompt, go to step 1            │
│                    ↓                                │
│  4. Repeat until quality met OR max iterations      │
└─────────────────────────────────────────────────────┘

Iteration 1: Initial Generation

Prompt Construction:

Scientific diagram guidelines + User request

Output: diagram_v1.png

Quality Review by Gemini 3 Pro

Gemini 3 Pro evaluates the diagram on:

  1. Scientific Accuracy (0-2 points) - Correct concepts, notation, relationships
  2. Clarity and Readability (0-2 points) - Easy to understand, clear hierarchy
  3. Label Quality (0-2 points) - Complete, readable, consistent labels
  4. Layout and Composition (0-2 points) - Logical flow, balanced, no overlaps
  5. Professional Appearance (0-2 points) - Publication-ready quality

Example Review Output:

SCORE: 8.0

STRENGTHS:
- Clear flow from top to bottom
- All phases properly labeled
- Professional typography

ISSUES:
- Participant counts slightly small
- Minor overlap on exclusion box

VERDICT: ACCEPTABLE (for poster, threshold 7.0)

Decision Point: Continue or Stop?

If Score... Action
>= threshold STOP - Quality is good enough for this document type
< threshold Continue to next iteration with improved prompt

Example:

  • For a poster (threshold 7.0): Score of 7.5 → DONE after 1 iteration!
  • For a journal (threshold 8.5): Score of 7.5 → Continue improving

Subsequent Iterations (Only If Needed)

If quality is below threshold, the system:

  1. Extracts specific issues from Gemini 3 Pro's review
  2. Enhances the prompt with improvement instructions
  3. Regenerates with Nano Banana Pro
  4. Reviews again with Gemini 3 Pro
  5. Repeats until threshold met or max iterations reached

Review Log

All iterations are saved with a JSON review log that includes early-stop information:

{
  "user_prompt": "CONSORT participant flow diagram...",
  "doc_type": "poster",
  "quality_threshold": 7.0,
  "iterations": [
    {
      "iteration": 1,
      "image_path": "figures/consort_v1.png",
      "score": 7.5,
      "needs_improvement": false,
      "critique": "SCORE: 7.5\nSTRENGTHS:..."
    }
  ],
  "final_score": 7.5,
  "early_stop": true,
  "early_stop_reason": "Quality score 7.5 meets threshold 7.0 for poster"
}

Note: With smart iteration, you may see only 1 iteration instead of the full 2 if quality is achieved early!

Advanced AI Generation Usage

Python API

from scripts.generate_schematic_ai import ScientificSchematicGenerator

# Initialize generator
generator = ScientificSchematicGenerator(
    api_key="your_openrouter_key",
    verbose=True
)

# Generate with iterative refinement (max 2 iterations)
results = generator.generate_iterative(
    user_prompt="Transformer architecture diagram",
    output_path="figures/transformer.png",
    iterations=2
)

# Access results
print(f"Final score: {results['final_score']}/10")
print(f"Final image: {results['final_image']}")

# Review individual iterations
for iteration in results['iterations']:
    print(f"Iteration {iteration['iteration']}: {iteration['score']}/10")
    print(f"Critique: {iteration['critique']}")

Command-Line Options

# Basic usage (default threshold 7.5/10)
python scripts/generate_schematic.py "diagram description" -o output.png

# Specify document type for appropriate quality threshold
python scripts/generate_schematic.py "diagram" -o out.png --doc-type journal      # 8.5/10
python scripts/generate_schematic.py "diagram" -o out.png --doc-type conference   # 8.0/10
python scripts/generate_schematic.py "diagram" -o out.png --doc-type poster       # 7.0/10
python scripts/generate_schematic.py "diagram" -o out.png --doc-type presentation # 6.5/10

# Custom max iterations (1-2)
python scripts/generate_schematic.py "complex diagram" -o diagram.png --iterations 2

# Verbose output (see all API calls and reviews)
python scripts/generate_schematic.py "flowchart" -o flow.png -v

# Provide API key via flag
python scripts/generate_schematic.py "diagram" -o out.png --api-key "sk-or-v1-..."

# Combine options
python scripts/generate_schematic.py "neural network" -o nn.png --doc-type journal --iterations 2 -v

Prompt Engineering Tips

1. Be Specific About Layout:

how to use scientific-schematics

How to use scientific-schematics on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your development machine
  • Node.js version 16.0+ with npm package manager (verify with node --version)
  • Active project directory or workspace where you want to add scientific-schematics
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills add https://github.com/davila7/claude-code-templates --skill scientific-schematics

The skills CLI fetches scientific-schematics from GitHub repository davila7/claude-code-templates and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/scientific-schematics

Reload or restart Cursor to activate scientific-schematics. Access the skill through slash commands (e.g., /scientific-schematics) or your agent's skill management interface.

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED →

Use Cases

User Story & Requirements Generation

Create detailed user stories, acceptance criteria, and feature specs

Example

Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios

Reduce spec writing time by 50%, ensure comprehensive coverage

Competitive Analysis

Research competitors, compare features, identify gaps

Example

Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities

Complete competitive research in 2 hours instead of 2 days

Roadmap Prioritization

Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs

Example

Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale

Make data-driven prioritization decisions faster

Stakeholder Communication

Draft PRDs, status updates, and stakeholder presentations

Example

Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement

Save 3-5 hours/week on communication overhead

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client
  • Access to product documentation and roadmap tools (Jira, Notion, etc.)
  • Understanding of product management frameworks (RICE, Jobs-to-be-Done, etc.)
  • Stakeholder contact information and communication channels

Time Estimate

30-60 minutes to see productivity improvements

Installation Steps

  1. 1.Install product management skill
  2. 2.Start with user story generation for known feature
  3. 3.Progress to competitive analysis: research 2-3 competitors
  4. 4.Use for roadmap prioritization: apply RICE/ICE scoring
  5. 5.Draft stakeholder communications and refine based on feedback
  6. 6.Build template library for recurring PM tasks
  7. 7.Share effective prompts with product team

Common Pitfalls

  • Not validating competitive research—verify facts before sharing
  • Accepting user stories without involving engineering team
  • Over-relying on frameworks without qualitative judgment
  • Not customizing outputs to company culture and communication style
  • Skipping stakeholder validation of generated requirements

Best Practices

✓ Do

  • +Validate research and competitive analysis with real data
  • +Collaborate with engineering when generating technical requirements
  • +Customize frameworks and templates to your company context
  • +Use skill for first drafts, refine with stakeholder input
  • +Document successful prompt patterns for PM tasks
  • +Combine AI efficiency with human judgment and intuition

✗ Don't

  • Don't publish competitive analysis without fact-checking
  • Don't finalize user stories without engineering review
  • Don't make prioritization decisions solely on AI scoring
  • Don't skip customer validation of generated requirements
  • Don't ignore company-specific context and culture

💡 Pro Tips

  • Provide context: company goals, constraints, customer feedback
  • Ask for alternatives: 'Show 3 ways to prioritize this roadmap'
  • Request stakeholder-specific formatting: 'Executive summary vs. engineering spec'
  • Use skill for 70% generation + 30% customization to company needs

When to Use This

✓ Use When

Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.

✗ Avoid When

Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.

Learning Path

  1. 1Basic: user stories, feature specs, status updates
  2. 2Intermediate: competitive analysis, prioritization frameworks, PRDs
  3. 3Advanced: product strategy, go-to-market planning, OKR setting
  4. 4Expert: product vision, market positioning, business model innovation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.861 reviews
  • Charlotte Mensah· Dec 28, 2024

    I recommend scientific-schematics for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Arjun Khanna· Dec 28, 2024

    Solid pick for teams standardizing on skills: scientific-schematics is focused, and the summary matches what you get after install.

  • Hassan Patel· Dec 24, 2024

    scientific-schematics is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Ganesh Mohane· Dec 20, 2024

    scientific-schematics has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Jin Farah· Dec 16, 2024

    scientific-schematics reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Jin Khan· Dec 8, 2024

    Useful defaults in scientific-schematics — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Arjun Menon· Nov 27, 2024

    I recommend scientific-schematics for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Maya Ghosh· Nov 23, 2024

    scientific-schematics is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Hassan Rao· Nov 23, 2024

    scientific-schematics reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Alexander Garcia· Nov 19, 2024

    Useful defaults in scientific-schematics — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

showing 1-10 of 61

1 / 7