biomni▌
davila7/claude-code-templates · updated Apr 16, 2026
MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.
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.
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:
- Multi-step biological reasoning - Autonomous task decomposition and planning for complex biomedical queries
- Code generation and execution - Dynamic analysis pipeline creation for data processing
- Knowledge retrieval - Access to ~11GB of integrated biomedical databases and literature
- 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:
uv pip install biomni --upgrade
Configure API keys (store in .env file or environment variables):
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
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:
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:
# 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
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
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
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
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:
# 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:
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
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_secondsfor complex tasks - Monitor iterations - Track
max_iterationsto prevent runaway loops - Cache data - Reuse downloaded data lake across sessions
Result Documentation
# 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 evaluationllm_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 configurationgenerate_report.py- Enhanced PDF report generation with custom formatting
External Resources
- GitHub: https://github.com/snap-stanford/biomni
- Web Platform: https://biomni.stanford.edu
- Paper: https://www.biorxiv.org/content/10.1101/2025.05.30.656746v1
- Model: https://huggingface.co/biomni/Biomni-R0-32B-Preview
- Evaluation Dataset: https://huggingface.co/datasets/biomni/Eval1
Troubleshooting
Common Issues
Data download fails
# Manually trigger data lake download
agent = A1(path='./data', llm='your-llm')
# First .go() call will download data
API key errors
# Verify environment variables
echo $ANTHROPIC_API_KEY
# Or check .env file in working directory
Timeout on complex tasks
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:
- GitHub Issues: https://github.com/snap-stanford/biomni/issues
- Documentation: Check
references/files for detailed guidance - Community: Stanford SNAP lab and biomni contributors
How to use biomni on Cursor
AI-first code editor with Composer
Prerequisites
Before installing skills in Cursor, ensure your development environment meets these requirements:
- ›Cursor installed and configured on your development machine
- ›Node.js version 16.0+ with npm package manager (verify with
node --version) - ›Active project directory or workspace where you want to add biomni
Execute installation command
Execute the skills CLI command in your project's root directory to begin installation:
The skills CLI fetches biomni from GitHub repository davila7/claude-code-templates and configures it for Cursor.
Select Cursor when prompted
The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:
Verify installation
Confirm successful installation by checking the skill directory location:
Reload or restart Cursor to activate biomni. Access the skill through slash commands (e.g., /biomni) or your agent's skill management interface.
Security & Verification Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.
List & Monetize Your Skill
Submit your Claude Code skill and start earning
Use Cases▌
User Story & Requirements Generation
Create detailed user stories, acceptance criteria, and feature specs
Example
Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios
Reduce spec writing time by 50%, ensure comprehensive coverage
Competitive Analysis
Research competitors, compare features, identify gaps
Example
Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities
Complete competitive research in 2 hours instead of 2 days
Roadmap Prioritization
Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs
Example
Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale
Make data-driven prioritization decisions faster
Stakeholder Communication
Draft PRDs, status updates, and stakeholder presentations
Example
Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement
Save 3-5 hours/week on communication overhead
Implementation Guide▌
Prerequisites
- ›Claude Desktop or compatible AI client
- ›Access to product documentation and roadmap tools (Jira, Notion, etc.)
- ›Understanding of product management frameworks (RICE, Jobs-to-be-Done, etc.)
- ›Stakeholder contact information and communication channels
Time Estimate
30-60 minutes to see productivity improvements
Installation Steps
- 1.Install product management skill
- 2.Start with user story generation for known feature
- 3.Progress to competitive analysis: research 2-3 competitors
- 4.Use for roadmap prioritization: apply RICE/ICE scoring
- 5.Draft stakeholder communications and refine based on feedback
- 6.Build template library for recurring PM tasks
- 7.Share effective prompts with product team
Common Pitfalls
- ⚠Not validating competitive research—verify facts before sharing
- ⚠Accepting user stories without involving engineering team
- ⚠Over-relying on frameworks without qualitative judgment
- ⚠Not customizing outputs to company culture and communication style
- ⚠Skipping stakeholder validation of generated requirements
Best Practices▌
✓ Do
- +Validate research and competitive analysis with real data
- +Collaborate with engineering when generating technical requirements
- +Customize frameworks and templates to your company context
- +Use skill for first drafts, refine with stakeholder input
- +Document successful prompt patterns for PM tasks
- +Combine AI efficiency with human judgment and intuition
✗ Don't
- −Don't publish competitive analysis without fact-checking
- −Don't finalize user stories without engineering review
- −Don't make prioritization decisions solely on AI scoring
- −Don't skip customer validation of generated requirements
- −Don't ignore company-specific context and culture
💡 Pro Tips
- ★Provide context: company goals, constraints, customer feedback
- ★Ask for alternatives: 'Show 3 ways to prioritize this roadmap'
- ★Request stakeholder-specific formatting: 'Executive summary vs. engineering spec'
- ★Use skill for 70% generation + 30% customization to company needs
When to Use This▌
✓ Use When
Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.
✗ Avoid When
Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.
Learning Path▌
- 1Basic: user stories, feature specs, status updates
- 2Intermediate: competitive analysis, prioritization frameworks, PRDs
- 3Advanced: product strategy, go-to-market planning, OKR setting
- 4Expert: product vision, market positioning, business model innovation
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.8★★★★★40 reviews- ★★★★★Aarav Iyer· Dec 28, 2024
Registry listing for biomni matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Noah Gupta· Dec 24, 2024
Keeps context tight: biomni is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Yash Thakker· Nov 19, 2024
biomni fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Charlotte Shah· Nov 19, 2024
biomni reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Harper Wang· Nov 15, 2024
biomni is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Dhruvi Jain· Oct 10, 2024
biomni has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Li Perez· Oct 10, 2024
We added biomni from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Harper Gupta· Oct 6, 2024
Solid pick for teams standardizing on skills: biomni is focused, and the summary matches what you get after install.
- ★★★★★Piyush G· Sep 25, 2024
Keeps context tight: biomni is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Olivia Menon· Sep 21, 2024
biomni is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
showing 1-10 of 40