biodsa-agent-exec-skills/SKILL.md
# BioDSA Agent Execution Skill ## Core Principle **Write the script AND run it.** When a user asks to execute a BioDSA agent, do NOT just hand them a script and tell them to run it themselves. You must: 1. Write the execution script 2. **Run the script** via the terminal to start the agent 3. Monitor the output and report the results back to the user 4. Collect and present the deliverables (JSON, PDF, artifacts) This is the key difference from the dev skill — the exec skill is about **complet
npx skillsauth add ryanwangzf/biodsa biodsa-agent-exec-skillsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Write the script AND run it. When a user asks to execute a BioDSA agent, do NOT just hand them a script and tell them to run it themselves. You must:
This is the key difference from the dev skill — the exec skill is about completing the task end-to-end, not just scaffolding code.
Use this skill when the user wants to:
Do NOT use this skill for creating new agents — use the biodsa-agent-dev-skills for that.
These agents are available in BioDSA. Read 01-agent-catalog.md for full details on each.
| Agent | Best For | Import |
|-------|----------|--------|
| DSWizardAgent | Data analysis on biomedical datasets (CSV, tables) | from biodsa.agents import DSWizardAgent |
| DeepEvidenceAgent | Deep research across 17+ biomedical knowledge bases | from biodsa.agents import DeepEvidenceAgent |
| CoderAgent | Direct code generation + sandbox execution | from biodsa.agents import CoderAgent |
| ReactAgent | Tool-calling ReAct loop for general tasks | from biodsa.agents import ReactAgent |
| TrialMindSLRAgent | Systematic literature review (search → screen → extract → synthesize) | from biodsa.agents.trialmind_slr import TrialMindSLRAgent |
| SLRMetaAgent | Systematic review + meta-analysis with forest plots | from biodsa.agents import SLRMetaAgent |
| InformGenAgent | Clinical/regulatory document generation | from biodsa.agents.informgen import InformGenAgent |
| TrialGPTAgent | Patient-to-clinical-trial matching | from biodsa.agents.trialgpt import TrialGPTAgent |
| AgentMD | Clinical risk prediction with medical calculators | from biodsa.agents.agentmd import AgentMD |
| GeneAgent | Gene set analysis with self-verification | from biodsa.agents.geneagent import GeneAgent |
| VirtualLabAgent | Multi-agent scientific discussion meetings | from biodsa.agents import VirtualLabAgent |
IMPORTANT: BioDSA agents perform complex multi-step biomedical reasoning. Always use frontier-tier models to ensure high-quality results. Weaker models (gpt-4o, gpt-4o-mini, claude-sonnet, etc.) produce significantly worse results and should be avoided unless the user explicitly requests them.
| Provider | Recommended Model | Avoid |
|----------|------------------|-------|
| Azure OpenAI | "gpt-5" | "gpt-4o", "gpt-4o-mini" |
| OpenAI | "gpt-5" | "gpt-4o", "gpt-4o-mini" |
| Anthropic | "claude-opus-4-20250514" | "claude-sonnet-4-20250514" |
| Google | "gemini-2.5-pro" | "gemini-2.0-flash" |
When reading the user's .env file, check the MODEL_NAME value. If it is set to a weaker model, warn the user that it may produce poor results and suggest upgrading.
When a user describes a task, follow these steps in order:
Before anything, verify the BioDSA environment is set up. Read 00-environment-setup.md and run the checks. If the environment is not ready (no conda/pipenv env, missing dependencies, no .env), set it up automatically — do not ask the user to do it manually. This includes:
pipenv install to install all dependencies.env with API keysVerify the .env file has MODEL_NAME set to a frontier model (see Model Selection above). If it is set to a weaker model like gpt-4o or gpt-4o-mini, warn the user and suggest upgrading to gpt-5 / claude-opus-4-20250514 / gemini-2.5-pro.
Match the user's task to the right agent from the catalog above. See 01-agent-catalog.md for the full decision guide and go() signatures.
Generate a complete Python script at the repo root (e.g., run_task.py). Follow the patterns in 02-execution-patterns.md. Use the template below.
IMPORTANT: Do NOT stop after writing the script. Execute it immediately:
cd /path/to/BioDSA
python run_task.py
Monitor the output. Agent runs can take seconds to minutes depending on complexity. Wait for the script to complete.
After the script finishes:
final_response from the terminal outputEvery agent script follows this skeleton:
import sys, os
REPO_BASE_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, REPO_BASE_DIR)
from dotenv import load_dotenv
load_dotenv(os.path.join(REPO_BASE_DIR, ".env"))
from biodsa.agents import <AgentClass>
agent = <AgentClass>(
model_name=os.environ.get("MODEL_NAME", "gpt-5"),
api_type=os.environ.get("API_TYPE", "azure"),
api_key=os.environ.get("AZURE_OPENAI_API_KEY"),
endpoint=os.environ.get("AZURE_OPENAI_ENDPOINT"),
)
# (Optional) Register data for analysis agents
# agent.register_workspace("/path/to/data")
results = agent.go("<user's task description>")
# Save deliverables
os.makedirs("output", exist_ok=True)
print(results.final_response)
results.to_json(output_path="output/results.json")
results.to_pdf(output_dir="output")
You are NOT done until:
| Guide | File | What It Covers |
| ----- | ---- | -------------- |
| 0 | 00-environment-setup.md | Automatic environment setup: conda env, pipenv install, .env configuration, Docker sandbox — run this before anything else if the env is not ready |
| 1 | 01-agent-catalog.md | All available agents: when to use each, import paths, go() signatures, required parameters |
| 2 | 02-execution-patterns.md | LLM configuration, model selection, workspace registration, single runs, batch runs, chaining agents |
| 3 | 03-output-and-deliverables.md | ExecutionResults API, PDF reports, JSON export, artifact download, specialized result types |
| What | Path |
| ---- | ---- |
| Agent imports | biodsa/agents/__init__.py |
| Agent implementations | biodsa/agents/<agent_name>/ |
| Sandbox & ExecutionResults | biodsa/sandbox/execution.py |
| Example run scripts | scripts/run_*.py and run_*.py (repo root) |
| Benchmarks | benchmarks/ |
| Example datasets | biomedical_data/ |
| Environment config | .env (create from .env.example) |
| Tutorials | tutorials/ |
tools
# BioDSA Agent Development Skill ## When to Use This Skill Use this skill when the user wants to: - Create a **new agent** in the BioDSA framework - Understand the **agent architecture** (BaseAgent, state, tools, graphs) - Implement a **single-agent** or **multi-agent** workflow - Add new **tools or tool wrappers** for an agent - Create a **run script** for an agent - Make a new agent pass a **sanity check** - Understand what the **deliverables** look like for prototyping an agent - **Build an
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
development
Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.