med-researcher-r1-guide

Medical deep research agent with reasoning chain analysis

191 stars

Best use case

med-researcher-r1-guide is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Medical deep research agent with reasoning chain analysis

Teams using med-researcher-r1-guide should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/med-researcher-r1-guide/SKILL.md --create-dirs "https://raw.githubusercontent.com/wentorai/research-plugins/main/skills/domains/biomedical/med-researcher-r1-guide/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/med-researcher-r1-guide/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How med-researcher-r1-guide Compares

Feature / Agentmed-researcher-r1-guideStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Medical deep research agent with reasoning chain analysis

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# MedResearcher-R1 Guide

## Overview

MedResearcher-R1 is a medical deep research agent that combines clinical reasoning chains with iterative literature search to answer complex medical questions. Unlike general research agents, it is specialized for medical evidence — understanding clinical trial designs, PICO frameworks, evidence hierarchies, and medical terminology. Uses reasoning chain analysis (R1) to decompose clinical questions and systematically gather evidence.

## Architecture

```
Clinical Question
      ↓
  R1 Reasoning Chain (decompose into sub-questions)
      ↓
  Medical Search Agent
  ├── PubMed (MeSH terms)
  ├── ClinicalTrials.gov
  ├── Cochrane Library
  └── WHO ICTRP
      ↓
  Evidence Extraction Agent
  ├── PICO extraction
  ├── Study design classification
  ├── Outcome extraction
  └── Risk of bias assessment
      ↓
  Synthesis Agent (evidence grading)
      ↓
  Clinical Answer + Evidence Report
```

## Usage

```python
from med_researcher_r1 import MedResearcherR1

researcher = MedResearcherR1(
    llm_provider="anthropic",
    search_backends=["pubmed", "clinical_trials", "cochrane"],
)

# Complex clinical question
result = researcher.research(
    question="In patients with treatment-resistant depression, "
             "how does psilocybin-assisted therapy compare to "
             "esketamine in terms of remission rates and "
             "long-term outcomes?",
    evidence_level="systematic",  # systematic, rapid, scoping
    max_papers=50,
)

print(result.summary)
print(f"\nEvidence quality: {result.evidence_grade}")
print(f"Papers analyzed: {len(result.papers)}")
```

## Reasoning Chain

```python
# Inspect the R1 reasoning chain
for step in result.reasoning_chain:
    print(f"\nStep {step.number}: {step.type}")
    print(f"  Question: {step.question}")
    print(f"  Strategy: {step.search_strategy}")
    print(f"  Findings: {step.key_finding}")
    print(f"  Next: {step.next_action}")

# Example chain:
# Step 1: DECOMPOSE — Split into psilocybin efficacy,
#          esketamine efficacy, head-to-head comparisons
# Step 2: SEARCH — PubMed: psilocybin depression RCT
# Step 3: EXTRACT — 3 RCTs found, extract PICO + outcomes
# Step 4: SEARCH — PubMed: esketamine depression outcomes
# Step 5: SYNTHESIZE — Compare evidence, note no direct
#          head-to-head trials exist
# Step 6: CONCLUDE — Indirect comparison with caveats
```

## Evidence Grading

```python
# GRADE methodology for evidence quality
for paper in result.papers[:5]:
    print(f"\n{paper.title} ({paper.year})")
    print(f"  Design: {paper.study_design}")
    print(f"  Sample: {paper.sample_size}")
    print(f"  Grade: {paper.evidence_grade}")
    print(f"  Risk of bias: {paper.risk_of_bias}")

# Aggregate evidence
print(f"\nOverall certainty: {result.certainty}")
# HIGH / MODERATE / LOW / VERY LOW
print(f"Recommendation: {result.recommendation}")
```

## Medical Search Configuration

```python
researcher = MedResearcherR1(
    search_config={
        "pubmed": {
            "use_mesh": True,
            "date_range": "2019/01/01:2025/12/31",
            "article_types": [
                "Randomized Controlled Trial",
                "Meta-Analysis",
                "Systematic Review",
            ],
        },
        "clinical_trials": {
            "status": ["Completed", "Active, not recruiting"],
            "phase": ["Phase 3", "Phase 4"],
        },
    },
    reasoning_config={
        "max_chain_length": 10,
        "reflection_enabled": True,
        "uncertainty_explicit": True,
    },
)
```

## Clinical Use Cases

1. **Clinical queries**: Evidence-based answers to medical questions
2. **Drug comparison**: Indirect comparison when no head-to-head data
3. **Guideline review**: Check evidence supporting clinical guidelines
4. **Case analysis**: Literature context for unusual presentations
5. **Grant proposals**: Evidence landscape for research funding

## References

- [MedResearcher-R1 GitHub](https://github.com/AQ-MedAI/MedResearcher-R1)
- [PubMed E-utilities](https://www.ncbi.nlm.nih.gov/books/NBK25501/)
- [GRADE Handbook](https://gdt.gradepro.org/app/handbook/handbook.html)