Agent skill

Biomni

by davila7 in davila7/claude-code-templates

Autonomous biomedical AI agent framework for executing complex research tasks across genomics, drug discovery, molecular biology, and clinical analysis.

MITAuto-check: notesResearch & Science

Install Biomni

skills CLI
$ npx skills add davila7/claude-code-templates --skill biomni -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install davila7/claude-code-templates biomni --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/davila7/claude-code-templates.git skills-src && mkdir -p .claude/skills && cp -r skills-src/cli-tool/components/skills/scientific/biomni .claude/skills/biomni && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
biomni
GitHub stars
33k
Used in
8 other repos
Token cost
~2.4k tokens
SKILL.md length
595 words
Files
6 (incl. scripts, references)
Skills in repo
479
Repo updated
First seen
Licence
MIT

At a glance

Autonomous biomedical AI agent framework for executing complex research tasks across genomics, drug discovery, molecular biology, and clinical analysis.

  • Works in 6 steps: Agent Initialization → Task Execution Workflow → Common Task Patterns → …
  • Conducting multi-step biomedical research including CRISPR screening design
  • SKILL.md covers Overview, Core Capabilities, When to Use This Skill and Quick Start, plus 4 more sections
  • Runs Python scripts from its folder; calls uv; needs ANTHROPIC_API_KEY

What it does

Biomni is an agent skill from davila7/claude-code-templates. Autonomous biomedical AI agent framework for executing complex research tasks across genomics, drug discovery, molecular biology, and clinical analysis. Use this skill when conducting multi-step biomedical research including CRISPR screening design, single-cell RNA-seq analysis, ADMET prediction, GWAS interpretation, rare disease diagnosis, or lab protocol optimization. Leverages LLM reasoning with code execution and integrated biomedical databases.

Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts and reference files (for example `references/api_reference.md`, `references/llm_providers.md` and `references/use_cases.md`).

It sits in Research & Science, covering Bioinformatics and Drug discovery and cheminformatics. The repository describes itself as: CLI tool for configuring and monitoring Claude Code. The licence is MIT.

When your agent uses it

  • Conducting multi-step biomedical research including CRISPR screening design
  • Single-cell RNA-seq analysis
  • ADMET prediction
  • GWAS interpretation

Example prompts

  • “/biomni”

Requirements

  • Python 3
  • Docker
  • A credential in ANTHROPIC_API_KEY

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Agent Initialization
  2. Task Execution Workflow
  3. Common Task Patterns
  4. Data Integration
  5. MCP Server Integration
  6. Evaluation Framework

What it can do on your machine

Read from SKILL.md and the folder at commit c0ca7da. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • uv

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com
    • huggingface.co
    • biomni.stanford.edu
    • biorxiv.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • ANTHROPIC_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Biomni loads about 2.4k tokens when it runs, and up to ~14k if it reads all its reference files. Until then it costs about 115 tokens; SKILL.md has 595 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~115
When it runs · the whole SKILL.md, loaded when a task matches
~2.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~14k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:41
    Configure API keys (store in `.env` file or environment variables):
  • NoteMentions a .env fileSKILL.md:290
    # Or check .env file in working directory

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from davila7/claude-code-templates at commit c0ca7da, republished under its MIT licence (© davila7). 595 words, ~2,444 tokens.

Download SKILL.mdSave it as .claude/skills/biomni/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
biomni
description
Autonomous biomedical AI agent framework for executing complex research tasks across genomics, drug discovery, molecular biology, and clinical analysis. Use this skill when conducting multi-step biomedical research including CRISPR screening design, single-cell RNA-seq analysis, ADMET prediction, GWAS interpretation, rare disease diagnosis, or lab protocol optimization. Leverages LLM reasoning with code execution and integrated biomedical databases.

Biomni

Overview

Biomni is an open-source biomedical AI agent framework from Stanford's SNAP lab that autonomously executes complex research tasks across biomedical domains. Use this skill when working on multi-step biological reasoning tasks, analyzing biomedical data, or conducting research spanning genomics, drug discovery, molecular biology, and clinical analysis.

Core Capabilities

Biomni excels at:

  1. Multi-step biological reasoning - Autonomous task decomposition and planning for complex biomedical queries
  2. Code generation and execution - Dynamic analysis pipeline creation for data processing
  3. Knowledge retrieval - Access to ~11GB of integrated biomedical databases and literature
  4. Cross-domain problem solving - Unified interface for genomics, proteomics, drug discovery, and clinical tasks

When to Use This Skill

Use biomni for:

  • CRISPR screening - Design screens, prioritize genes, analyze knockout effects
  • Single-cell RNA-seq - Cell type annotation, differential expression, trajectory analysis
  • Drug discovery - ADMET prediction, target identification, compound optimization
  • GWAS analysis - Variant interpretation, causal gene identification, pathway enrichment
  • Clinical genomics - Rare disease diagnosis, variant pathogenicity, phenotype-genotype mapping
  • Lab protocols - Protocol optimization, literature synthesis, experimental design

Quick Start

Installation and Setup

Install Biomni and configure API keys for LLM providers:

bash
uv pip install biomni --upgrade

Configure API keys (store in .env file or environment variables):

bash
export ANTHROPIC_API_KEY="your-key-here"
# Optional: OpenAI, Azure, Google, Groq, AWS Bedrock keys

Use scripts/setup_environment.py for interactive setup assistance.

Basic Usage Pattern
python
from biomni.agent import A1

# Initialize agent with data path and LLM choice
agent = A1(path='./data', llm='claude-sonnet-4-20250514')

# Execute biomedical task autonomously
agent.go("Your biomedical research question or task")

# Save conversation history and results
agent.save_conversation_history("report.pdf")

Working with Biomni

1. Agent Initialization

The A1 class is the primary interface for biomni:

python
from biomni.agent import A1
from biomni.config import default_config

# Basic initialization
agent = A1(
    path='./data',  # Path to data lake (~11GB downloaded on first use)
    llm='claude-sonnet-4-20250514'  # LLM model selection
)

# Advanced configuration
default_config.llm = "gpt-4"
default_config.timeout_seconds = 1200
default_config.max_iterations = 50

Supported LLM Providers:

  • Anthropic Claude (recommended): claude-sonnet-4-20250514, claude-opus-4-20250514
  • OpenAI: gpt-4, gpt-4-turbo
  • Azure OpenAI: via Azure configuration
  • Google Gemini: gemini-2.0-flash-exp
  • Groq: llama-3.3-70b-versatile
  • AWS Bedrock: Various models via Bedrock API

See references/llm_providers.md for detailed LLM configuration instructions.

2. Task Execution Workflow

Biomni follows an autonomous agent workflow:

python
# Step 1: Initialize agent
agent = A1(path='./data', llm='claude-sonnet-4-20250514')

# Step 2: Execute task with natural language query
result = agent.go("""
Design a CRISPR screen to identify genes regulating autophagy in
HEK293 cells. Prioritize genes based on essentiality and pathway
relevance.
""")

# Step 3: Review generated code and analysis
# Agent autonomously:
# - Decomposes task into sub-steps
# - Retrieves relevant biological knowledge
# - Generates and executes analysis code
# - Interprets results and provides insights

# Step 4: Save results
agent.save_conversation_history("autophagy_screen_report.pdf")
3. Common Task Patterns
CRISPR Screening Design
python
agent.go("""
Design a genome-wide CRISPR knockout screen for identifying genes
affecting [phenotype] in [cell type]. Include:
1. sgRNA library design
2. Gene prioritization criteria
3. Expected hit genes based on pathway analysis
""")
Single-Cell RNA-seq Analysis
python
agent.go("""
Analyze this single-cell RNA-seq dataset:
- Perform quality control and filtering
- Identify cell populations via clustering
- Annotate cell types using marker genes
- Conduct differential expression between conditions
File path: [path/to/data.h5ad]
""")
Drug ADMET Prediction
python
agent.go("""
Predict ADMET properties for these drug candidates:
[SMILES strings or compound IDs]
Focus on:
- Absorption (Caco-2 permeability, HIA)
- Distribution (plasma protein binding, BBB penetration)
- Metabolism (CYP450 interaction)
- Excretion (clearance)
- Toxicity (hERG liability, hepatotoxicity)
""")
GWAS Variant Interpretation
python
agent.go("""
Interpret GWAS results for [trait/disease]:
- Identify genome-wide significant variants
- Map variants to causal genes
- Perform pathway enrichment analysis
- Predict functional consequences
Summary statistics file: [path/to/gwas_summary.txt]
""")

See references/use_cases.md for comprehensive task examples across all biomedical domains.

4. Data Integration

Biomni integrates ~11GB of biomedical knowledge sources:

  • Gene databases - Ensembl, NCBI Gene, UniProt
  • Protein structures - PDB, AlphaFold
  • Clinical datasets - ClinVar, OMIM, HPO
  • Literature indices - PubMed abstracts, biomedical ontologies
  • Pathway databases - KEGG, Reactome, GO

Data is automatically downloaded to the specified path on first use.

5. MCP Server Integration

Extend biomni with external tools via Model Context Protocol:

python
# MCP servers can provide:
# - FDA drug databases
# - Web search for literature
# - Custom biomedical APIs
# - Laboratory equipment interfaces

# Configure MCP servers in .biomni/mcp_config.json
6. Evaluation Framework

Benchmark agent performance on biomedical tasks:

python
from biomni.eval import BiomniEval1

evaluator = BiomniEval1()

# Evaluate on specific task types
score = evaluator.evaluate(
    task_type='crispr_design',
    instance_id='test_001',
    answer=agent_output
)

# Access evaluation dataset
dataset = evaluator.load_dataset()

Best Practices

Show full SKILL.md (241 more words)Show less
Task Formulation
  • Be specific - Include biological context, organism, cell type, conditions
  • Specify outputs - Clearly state desired analysis outputs and formats
  • Provide data paths - Include file paths for datasets to analyze
  • Set constraints - Mention time/computational limits if relevant
Security Considerations

⚠️ Important: Biomni executes LLM-generated code with full system privileges. For production use:

  • Run in isolated environments (Docker, VMs)
  • Avoid exposing sensitive credentials
  • Review generated code before execution in sensitive contexts
  • Use sandboxed execution environments when possible
Performance Optimization
  • Choose appropriate LLMs - Claude Sonnet 4 recommended for balance of speed/quality
  • Set reasonable timeouts - Adjust default_config.timeout_seconds for complex tasks
  • Monitor iterations - Track max_iterations to prevent runaway loops
  • Cache data - Reuse downloaded data lake across sessions
Result Documentation
python
# Always save conversation history for reproducibility
agent.save_conversation_history("results/project_name_YYYYMMDD.pdf")

# Include in reports:
# - Original task description
# - Generated analysis code
# - Results and interpretations
# - Data sources used

Resources

References

Detailed documentation available in the references/ directory:

  • api_reference.md - Complete API documentation for A1 class, configuration, and evaluation
  • llm_providers.md - LLM provider setup (Anthropic, OpenAI, Azure, Google, Groq, AWS)
  • use_cases.md - Comprehensive task examples for all biomedical domains
Scripts

Helper scripts in the scripts/ directory:

  • setup_environment.py - Interactive environment and API key configuration
  • generate_report.py - Enhanced PDF report generation with custom formatting
External Resources

Troubleshooting

Common Issues

Data download fails

python
# Manually trigger data lake download
agent = A1(path='./data', llm='your-llm')
# First .go() call will download data

API key errors

bash
# Verify environment variables
echo $ANTHROPIC_API_KEY
# Or check .env file in working directory

Timeout on complex tasks

python
from biomni.config import default_config
default_config.timeout_seconds = 3600  # 1 hour

Memory issues with large datasets

  • Use streaming for large files
  • Process data in chunks
  • Increase system memory allocation
Getting Help

For issues or questions:

© davila7, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (scripts, references) in cli-tool/components/skills/scientific/biomni of davila7/claude-code-templates.

  • SKILL.md
  • references/api_reference.md
  • references/llm_providers.md
  • references/use_cases.md
  • scripts/generate_report.py
  • scripts/setup_environment.py

Open the folder on GitHubat commit c0ca7da

Used in 8 other repositories

We found 20 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 8 other GitHub owners. This page covers the copy in davila7/claude-code-templates, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Biomni next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Biomni compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Biomni this skilldavila7/claude-code-templates33k8 repos~2.4kAutomated safety check: NotesMIT
Biomedical Analysis Dispatchxjtulyc/MedgeClaw6171 repos~2kAutomated safety check: PassNone
Hcls Build Agentaws-samples/amazon-bedrock-agents-healthcare-lifesciences274—~885Automated safety check: PassMIT-0
TooluniverseAgentTeam-TaichuAI/ScienceClaw671—~1.2kAutomated safety check: PassNone
Tooluniverseynulihao/AgentSkillOS6182 repos~2.5kAutomated safety check: PassNone
Hcls Get Startedaws-samples/amazon-bedrock-agents-healthcare-lifesciences274—~607Automated safety check: PassMIT-0

Similar skills

  • Routes bioinformatics, drug discovery, clinical and multi-omics tasks from a chat interface to Claude Code sessions running K-Dense scientific skills, with a live dashboard per task.

    617 GitHub starsUsed in 1 repo~2k tokens
    Research & ScienceAuto-check passed
  • Hcls Build Agent

    aws-samples/amazon-bedrock-agents-healthcare-lifesciences

    Official

    A skill your agent uses when a developer wants to build a new healthcare or life sciences agent, structure tools and system prompts for an HCLS workflow, or create a Strands agent with…

    274 GitHub stars~885 tokensUpdated 9 days ago
    Research & ScienceAuto-check passed
  • Tooluniverse

    AgentTeam-TaichuAI/ScienceClaw

    Access 1000+ scientific tools through ToolUniverse for drug discovery, protein analysis, genomics, literature search, clinical data, ADMET prediction, molecular docking, and more.

    671 GitHub stars~1.2k tokensUpdated 5 mo ago
    Research & ScienceAuto-check passed
  • Tooluniverse

    ynulihao/AgentSkillOS

    A skill your agent uses when working with scientific research tools and workflows across bioinformatics, cheminformatics, genomics, structural biology, proteomics, and drug discovery.

    618 GitHub starsUsed in 2 repos~2.5k tokens
    Research & ScienceAuto-check passed
  • Hcls Get Started

    aws-samples/amazon-bedrock-agents-healthcare-lifesciences

    Official

    A skill your agent uses when a developer asks how to get started building healthcare or life sciences agents, wants to understand the HCLS Agents Toolkit, or asks what's available in this repository.

    274 GitHub stars~607 tokensUpdated 9 days ago
    Research & ScienceAuto-check passed
  • Medgeclaw Guide

    wentorai/research-plugins

    AI research assistant for biomedicine, RNA-seq, and drug discovery

    298 GitHub starsUsed in 1 repo~2.9k tokens
    Research & ScienceAuto-check passed

More from davila7/claude-code-templates

All 479 skills in this repo
  • Perplexity Web Search

    davila7/claude-code-templates

    Runs web-grounded searches through Perplexity's Sonar models over OpenRouter for current events, recent literature and cited facts beyond the model's training cutoff.

    33k GitHub starsUsed in 11 repos~3.5k tokens
    Auto-check: notes
  • Neuropixels Data Analysis

    davila7/claude-code-templates

    Analyzes Neuropixels recordings from SpikeGLX or Open Ephys through preprocessing, drift correction, Kilosort4 spike sorting, quality metrics and curation.

    33k GitHub starsUsed in 9 repos~2.8k tokens
    Auto-check passed
  • Scientific Venue Templates

    davila7/claude-code-templates

    Supplies LaTeX templates and formatting rules for journals, conferences, posters, and grant proposals, then can check a draft against them.

    33k GitHub starsUsed in 9 repos~5.1k tokens
    Auto-check: notes
  • Brand Voice Content Creator

    davila7/claude-code-templates

    Analyzes a brand's existing writing to lock in a consistent voice, then builds SEO blog posts and platform-specific social content around it.

    33k GitHub starsUsed in 3 repos~1.9k tokens
    Auto-check passed
  • CAPA Officer

    davila7/claude-code-templates

    Guides corrective and preventive action (CAPA) work in a quality management system, from initiation and root cause analysis through effectiveness verification.

    33k GitHub starsUsed in 1 repo~2k tokens
    Auto-check passed
  • Fda Consultant Specialist

    davila7/claude-code-templates

    Senior FDA consultant and specialist for medical device companies including HIPAA compliance and requirement management.

    33k GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check passed

Questions about Biomni

What does Biomni do?

Autonomous biomedical AI agent framework for executing complex research tasks across genomics, drug discovery, molecular biology, and clinical analysis. Biomni is an agent skill from davila7/claude-code-templates. Autonomous biomedical AI agent framework for executing complex research tasks across genomics, drug discovery, molecular biology, and clinical analysis.

When should I use Biomni?

Biomni fits situations like: conducting multi-step biomedical research including CRISPR screening design; single-cell RNA-seq analysis; ADMET prediction; GWAS interpretation.

How do I install Biomni in Claude Code?

Run `npx skills add davila7/claude-code-templates --skill biomni -a claude-code`. Or copy the skill folder (cli-tool/components/skills/scientific/biomni in davila7/claude-code-templates) into .claude/skills/biomni in your project. Claude Code loads it when a task matches its description.

How do I install Biomni in Codex?

Run `npx skills add davila7/claude-code-templates --skill biomni -a codex`. Or copy the skill folder (cli-tool/components/skills/scientific/biomni in davila7/claude-code-templates) into .agents/skills/biomni in your project. Codex loads it when a task matches its description.

Can I use Biomni in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add davila7/claude-code-templates --skill biomni -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/biomni, .gemini/skills/biomni, .github/skills/biomni and .opencode/skills/biomni in your project.

What does Biomni need to run?

Going by SKILL.md and its folder, Biomni needs Python for the scripts in its folder, the command-line tools its instructions call (uv) and credentials named ANTHROPIC_API_KEY. Our summary lists: Python 3; Docker; A credential in ANTHROPIC_API_KEY.

Does Biomni access the network?

SKILL.md names 4 domains. As links in the text: github.com, huggingface.co, biomni.stanford.edu and biorxiv.org. This is read from the text; nothing was executed.

Is Biomni safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Biomni use?

Biomni is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Biomni use?

About 2.4k tokens (SKILL.md is roughly 9.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 11k tokens, read only when the agent opens those files.

What are the alternatives to Biomni?

Skills that share tags, products or a category with Biomni: Biomedical Analysis Dispatch (xjtulyc/MedgeClaw, 617 stars), Hcls Build Agent (aws-samples/amazon-bedrock-agents-healthcare-lifesciences, 274 stars), Tooluniverse (AgentTeam-TaichuAI/ScienceClaw, 671 stars) and Tooluniverse (ynulihao/AgentSkillOS, 618 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Biomni?

davila7 (a GitHub user) maintains it in davila7/claude-code-templates, which has 32,512 GitHub stars. The repository holds 479 skills in this directory. The repository was last updated on October 10, 2026.

Source: davila7/claude-code-templates on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.