alterlab-scientific-schematics — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited alterlab-scientific-schematics (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
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.1 Pro Preview quality review.
How it works:
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 2 creates it. All diagrams are stored in the figures/ subfolder and referenced in papers/posters.
Create any scientific diagram by simply describing it. Nano Banana 2 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 journalWhat happens behind the scenes:
Smart Iteration Benefits:
Output: Versioned images plus a detailed review log with quality scores, critiques, and early-stop information.
Set your OpenRouter API key:
export OPENROUTER_API_KEY='your_api_key_here'Get an API key at: https://openrouter.ai/keys
This skill's generation scripts (scripts/generate_schematic_ai.py) send your diagram description / prompt to a third-party API (OpenRouter) over the network for image generation and quality review. Your text prompts — and any details you include in them — leave your machine and are processed by an external provider. Do not include confidential, clinical, patient-identifying, or unpublished proprietary content in figure descriptions. Describe figures generically and add sensitive labels locally afterward if needed.
Good prompts are specific: name the diagram type, components, flow/direction, labels, and style. Vague prompts ("make a flowchart", "neural network") underperform. Scientific quality guidelines (clean background, ≥10pt labels, sans-serif, Okabe-Ito palette, proper spacing) are applied automatically. Good/bad prompt examples and the full guideline list are in references/ai_generation_guide.md.
This skill should be used when:
Simply describe your diagram in natural language. Nano Banana 2 generates it automatically:
python scripts/generate_schematic.py "your diagram description" -o output.pngThat's it! The AI handles:
Works for all diagram types:
No coding, no templates, no manual drawing required.
The AI generation system uses smart iteration: Nano Banana 2 generates an image, Gemini 3.1 Pro Preview scores it (0-10 across scientific accuracy, clarity, label quality, layout, and professional appearance), and the system stops early once the score meets the document-type threshold — otherwise it improves the prompt from the critique and regenerates (max 2 iterations). Every run writes a JSON review log with per-iteration scores, critiques, and early-stop info.
The deep dive — iteration flowchart, review rubric, example review output, decision table, JSON log schema, the ScientificSchematicGenerator Python API, all command-line options, and prompt engineering tips — is in references/ai_generation_guide.md.
Copy-and-adapt worked invocations for CONSORT flowcharts, transformer architectures, biological pathways, and system block diagrams are in references/generation_examples.md.
The main entry point for generating scientific schematics:
# Basic usage
python scripts/generate_schematic.py "diagram description" -o output.png
# Custom iterations (max 2)
python scripts/generate_schematic.py "complex diagram" -o diagram.png --iterations 2
# Verbose mode
python scripts/generate_schematic.py "diagram" -o out.png -vNote: The Nano Banana 2 AI generation system includes automatic quality review in its iterative refinement process. Each iteration is evaluated for scientific accuracy, clarity, and accessibility.
Design for clarity over complexity, consistent styling, colorblind accessibility (Okabe-Ito, redundant encoding), ≥7-8 pt sans-serif type, and vector output (PDF/SVG; 300+ DPI for raster). Integrate with LaTeX via \includegraphics{}, caption thoroughly, reference in text, and keep prompts + outputs under version control. The full design/technical/integration checklist and the pre-submission verification checklist are in references/submission_checklist.md.
For fixes to AI generation problems (overlaps, poor connections), image-quality issues, quality-check failures, and accessibility problems (grayscale contrast, small text), see references/troubleshooting.md. Most issues resolve by making the prompt more specific or raising --iterations 2.
Load these files for comprehensive information on specific topics:
Python Libraries
Publication Standards
This skill works synergistically with:
Before submitting diagrams, run through the full checklist (visual quality, accessibility, typography, publication standards, required quality verification, documentation/version control, and final integration) in references/submission_checklist.md.
# Required
export OPENROUTER_API_KEY='your_api_key_here'
# Get key at: https://openrouter.ai/keysSimplest possible usage:
python scripts/generate_schematic.py "your diagram description" -o output.pngUse this skill to create clear, accessible, publication-quality diagrams that effectively communicate complex scientific concepts. The AI-powered workflow with iterative refinement ensures diagrams meet professional standards.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.