Medge biomed dispatch

From Zaoqu-Liu/ScienceClaw · View interactive version

Medge biomed dispatch is an AI agent skill from the GitHub repository Zaoqu-Liu/ScienceClaw. Dispatch biomedical research and data analysis tasks to Claude Code with K-Dense Scientific Skills. Use this skill when the user asks to run any bioinformatics, genomics, drug discovery, clinical data analysis, proteomics, multi-omics, medical imaging, or scientific computation task. Also use for li

How to use this skill

Skill file

Biomedical Analysis Dispatch

Purpose

Bridge between the OpenClaw conversational interface and Claude Code's

scientific execution environment (K-Dense Scientific Skills).

When to use

Workflow

  1. Identify task type from the user's request
  2. Locate data files — check if user mentioned a file path; if not, list /workspace/data/ and confirm with user
  3. Set up Dashboard — every analysis task must have a live dashboard:

```bash

TASK_DIR=data/<task_name>

mkdir -p "$TASK_DIR/dashboard" "$TASK_DIR/output"

cp skills/dashboard/dashboard.html "$TASK_DIR/dashboard/"

cp skills/dashboard/dashboard_serve.py "$TASK_DIR/dashboard/"

# Write initial state.json with: progress(0%), 研究概要, 分析计划(list), empty steps

# Start server

python "$TASK_DIR/dashboard/dashboard_serve.py" --port <free_port> &

# Tell user the URL immediately: http://localhost:<port>/dashboard/dashboard.html

```

  1. Construct the Claude Code prompt — include dashboard update instructions:
  1. Execute via Claude Code CLI:

```bash

claude --dangerously-skip-permissions -p "Use available scientific skills. [TASK]. Input: [PATH]. Outputs: $TASK_DIR/output/. Update dashboard at $TASK_DIR/dashboard/state.json after each step (step panels with code + outputs). Completion: openclaw system event --text 'Done: summary' --mode now"

```

  1. Monitor — if the task takes >30s, inform the user it is running in background
  2. Report back — summarize results, point user to dashboard URL for details

Output handling

Example dispatches

Clinical data analysis (complete flow with dashboard):

# 1. Setup
TASK_DIR=data/charls_ace
mkdir -p "$TASK_DIR/dashboard" "$TASK_DIR/output"
cp skills/dashboard/dashboard.html "$TASK_DIR/dashboard/"
cp skills/dashboard/dashboard_serve.py "$TASK_DIR/dashboard/"
# 2. Write initial state.json
# 3. Start dashboard server
python "$TASK_DIR/dashboard/dashboard_serve.py" --port 7790 &
# 4. Dispatch to Claude Code
claude --dangerously-skip-permissions -p "分析 CHARLS 队列中 ACE 与 CVD 的关联。Input: data/charls_ace/charls.dta. Output: data/charls_ace/output/. 每步更新 dashboard state.json(step panels with code + outputs)。完成后: openclaw system event --text 'Done: ACE-CVD分析完成' --mode now"

RNA-seq differential expression:

claude --dangerously-skip-permissions -p "Use DESeq2 scientific skill. Run differential expression. Counts: /workspace/data/counts.csv, metadata: /workspace/data/meta.csv, contrast: treatment vs control. Save to /workspace/data/rnaseq/output/. Update dashboard at /workspace/data/rnaseq/dashboard/state.json."

Single-cell RNA-seq:

claude --dangerously-skip-permissions -p "Use Scanpy scientific skill. Analyze 10X data at /workspace/data/10x/. QC, clustering, markers. Save to /workspace/data/10x/output/. Update dashboard state.json with step panels."

Important rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.