stem-illustration

Generate STEM diagrams and scientific illustrations from 24 scene templates via image generation APIs.

115|4|Updated Jul 20, 2026
One-click install
npx skills add https://github.com/liangdabiao/stem-illustration-skill --skill stem-illustration-liangdabiao
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: stem-illustration
Source: https://github.com/liangdabiao/stem-illustration-skill
Command: npx skills add https://github.com/liangdabiao/stem-illustration-skill --skill stem-illustration-liangdabiao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires matplotlib, and includes scripts (resource) and references (resource) components.

What problem does it solve? Creating accurate scientific diagrams, mechanism illustrations, and educational figures for research papers, teaching materials, and technical documentation is time-consuming and requires design expertise. This Skill turns a topic description into a structured visual brief and a ready-to-run image generation prompt, then optionally renders the image through a unified script. ## Core Features & Use Cases - 24 Scene Templates: Covers signaling pathways, experimental workflows, cell structures, plasmid maps, physics schematics, chemistry structures, architecture diagrams, academic posters, and more, each with style variants (academic, textbook, infographic, 3d-render). - Discipline-Aware Prompt Rules: Enforces 10 STEM prompt rules (hex colors, explicit layout direction, standardized terminology, bilingual labels) plus per-discipline tips for biology, medicine, chemistry, physics, engineering, and math. - Academic Integrity Guardrails: Refuses to fabricate experimental data charts and routes strict geometry or math proof figures to a matplotlib-based code generator instead of AI image models. - Use Case: A graduate student needs a Nature-style MAPK-ERK signaling pathway figure. The Skill matches the signaling-pathway template, produces a visual brief with a complete English prompt, and renders a 3:4 2K image via the generation script. ## Quick Start Ask the agent to create a journal-style vertical signaling pathway diagram of the MAPK-ERK cascade and confirm the generated visual brief to render the image.

Frequently Asked Questions about stem-illustration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a scientific diagram with an AI image model?▼

Provide the discipline, diagram type, target audience, key terms, size, and language. The Skill matches one of 24 scene templates, builds a structured nine-part prompt with enforced style rules, and renders it through the generate_image.py script using your configured image API.

What image generation APIs does the script support?▼

The generate_image.py script supports OpenAI-compatible synchronous APIs and the apimart.ai asynchronous polling API. It auto-detects the mode from the base URL, and you configure IMG_BASE_URL, IMG_MODEL, and IMG_API_KEY in a .env file.

Can AI image generation create accurate math or geometry proof figures?▼

No. Image models cannot guarantee geometric precision, so strict proofs, coordinate plots, and exact constructions must be code-generated. The Skill includes generate_geometry.py, a matplotlib-based generator that draws and numerically verifies figures such as Garfield's Pythagorean proof.

Can I use AI to generate charts from real experimental data?▼

No, the Skill explicitly prohibits generating scatter, bar, or line charts of real experimental data with AI to protect academic integrity. It directs you to tools like GraphPad, Origin, or matplotlib for data-driven figures.

How do I keep a multi-panel paper figure visually consistent?▼

Apply the Campaign Style Lock rules: fix a palette of two to three hex colors, one Chinese and one English font, uniform line widths and backgrounds, and bold A/B/C/D panel labels. The multi-panel template enforces these constraints across all subfigures.