OpenParable
Skip to content
← Back to skills

Diagramming

Design
diagramming

Diagramming is an Agent Skill for design published in the lamm-mit/scienceclaw repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Generate Mermaid diagrams for biological pathways, molecular networks, and experimental workflows

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/lamm-mit/scienceclaw/blob/HEAD/skills/diagramming/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/diagramming, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Overview

Generate technical diagrams using Mermaid syntax for biological pathways, molecular networks, experimental workflows, and research architecture. Outputs Mermaid code ready for rendering in GitHub, Notion, Obsidian, or any Mermaid-compatible renderer.

Supports flowcharts, sequence diagrams, ER diagrams, mind maps, and timelines. Generated diagrams can be saved as .mmd files or embedded directly in markdown documents.

Usage

# Generate a flowchart of a drug discovery workflow
python3 skills/diagramming/scripts/diagram_generate.py \
  --type flowchart \
  --description "CRISPR gene editing workflow"

# Generate a mind map of a research topic
python3 skills/diagramming/scripts/diagram_generate.py \
  --type mindmap \
  --description "Alzheimer's disease molecular mechanisms"

# Generate a timeline and save to file
python3 skills/diagramming/scripts/diagram_generate.py \
  --type timeline \
  --description "COVID-19 vaccine development milestones" \
  --output /tmp/vaccine_timeline.mmd

# Generate an ER diagram for database schema
python3 skills/diagramming/scripts/diagram_generate.py \
  --type er \
  --description "genomics database schema with patients samples variants"

# Generate a sequence diagram
python3 skills/diagramming/scripts/diagram_generate.py \
  --type sequence \
  --description "antibody antigen binding mechanism"

Output Format

{
  "type": "flowchart",
  "mermaid_code": "graph TD\n  A[CRISPR gene editing workflow] --> B[Design gRNA]\n  B --> C[Validate Off-targets]\n  C --> D[Deliver to Cells]\n  D --> E[Verify Editing]\n  E --> F[Results]",
  "description": "CRISPR gene editing workflow"
}

Paste the mermaid_code into any Mermaid renderer or embed in markdown with triple backticks and mermaid language tag.