tooluniverse-clinical-trial-matching
AI-driven patient-to-trial matching for precision medicine and oncology. Given a patient profile (disease, molecular alterations, stage, prior treatments), discovers and ranks clinical trials from ClinicalTrials.gov using multi-dimensional matching across molecular eligibility, clinical criteria, drug-biomarker alignment, evidence strength, and geographic feasibility. Produces a quantitative Trial Match Score (0-100) per trial with tiered recommendations and a comprehensive markdown report. Use when oncologists, molecular tumor boards, or patients ask about clinical trial options for specific cancer types, biomarker profiles, or post-progression scenarios.
Best use case
tooluniverse-clinical-trial-matching is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
AI-driven patient-to-trial matching for precision medicine and oncology. Given a patient profile (disease, molecular alterations, stage, prior treatments), discovers and ranks clinical trials from ClinicalTrials.gov using multi-dimensional matching across molecular eligibility, clinical criteria, drug-biomarker alignment, evidence strength, and geographic feasibility. Produces a quantitative Trial Match Score (0-100) per trial with tiered recommendations and a comprehensive markdown report. Use when oncologists, molecular tumor boards, or patients ask about clinical trial options for specific cancer types, biomarker profiles, or post-progression scenarios.
Teams using tooluniverse-clinical-trial-matching 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
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/tooluniverse-clinical-trial-matching/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How tooluniverse-clinical-trial-matching Compares
| Feature / Agent | tooluniverse-clinical-trial-matching | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
AI-driven patient-to-trial matching for precision medicine and oncology. Given a patient profile (disease, molecular alterations, stage, prior treatments), discovers and ranks clinical trials from ClinicalTrials.gov using multi-dimensional matching across molecular eligibility, clinical criteria, drug-biomarker alignment, evidence strength, and geographic feasibility. Produces a quantitative Trial Match Score (0-100) per trial with tiered recommendations and a comprehensive markdown report. Use when oncologists, molecular tumor boards, or patients ask about clinical trial options for specific cancer types, biomarker profiles, or post-progression scenarios.
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.
SKILL.md Source
# Clinical Trial Matching for Precision Medicine Transform patient molecular profiles and clinical characteristics into prioritized clinical trial recommendations. Searches ClinicalTrials.gov and cross-references with molecular databases (CIViC, OpenTargets, ChEMBL, FDA) to produce evidence-graded, scored trial matches. **KEY PRINCIPLES**: 1. **Report-first approach** - Create report file FIRST, then populate progressively 2. **Patient-centric** - Every recommendation considers the individual patient's profile 3. **Molecular-first matching** - Prioritize trials targeting patient's specific biomarkers ## Molecular Matching Priority Match patients to trials by molecular profile FIRST (specific mutations), then by disease stage, then by prior treatments. A patient with EGFR L858R should match to EGFR-targeted trials regardless of other factors. 4. **Evidence-graded** - Every recommendation has an evidence tier (T1-T4) 5. **Quantitative scoring** - Trial Match Score (0-100) for every trial 6. **Eligibility-aware** - Parse and evaluate inclusion/exclusion criteria 7. **Actionable output** - Clear next steps, contact info, enrollment status 8. **Source-referenced** - Every statement cites the tool/database source 9. **Completeness checklist** - Mandatory section showing analysis coverage 10. **English-first queries** - Always use English terms in tool calls. Respond in user's language ## LOOK UP, DON'T GUESS When uncertain about any scientific fact, SEARCH databases first rather than reasoning from memory. A database-verified answer is always more reliable than a guess. --- ## COMPUTE, DON'T DESCRIBE When analysis requires computation (statistics, data processing, scoring, enrichment), write and run Python code via Bash. Don't describe what you would do — execute it and report actual results. Use ToolUniverse tools to retrieve data, then Python (pandas, scipy, statsmodels, matplotlib) to analyze it. ## When to Use Apply when user asks: - "What clinical trials are available for my NSCLC with EGFR L858R?" - "Patient has BRAF V600E melanoma, failed ipilimumab - what trials?" - "Find basket trials for NTRK fusion" - "Breast cancer with HER2 amplification, post-CDK4/6 inhibitor trials" - "KRAS G12C colorectal cancer clinical trials" - "Immunotherapy trials for TMB-high solid tumors" - "Clinical trials near Boston for lung cancer" - "What are my options after failing osimertinib for EGFR+ NSCLC?" **NOT for** (use other skills instead): - Single variant interpretation without trial focus -> Use `tooluniverse-cancer-variant-interpretation` - Drug safety profiling -> Use `tooluniverse-adverse-event-detection` - Target validation -> Use `tooluniverse-drug-target-validation` - General disease research -> Use `tooluniverse-disease-research` --- ## Input Parsing ### Required Input - **Disease/cancer type**: Free-text disease name (e.g., "non-small cell lung cancer", "melanoma") ### Strongly Recommended - **Molecular alterations**: One or more biomarkers (e.g., "EGFR L858R", "KRAS G12C", "PD-L1 50%", "TMB-high") - **Stage/grade**: Disease stage (e.g., "Stage IV", "metastatic", "locally advanced") - **Prior treatments**: Previous therapies and outcomes (e.g., "failed platinum chemotherapy", "progressed on osimertinib") ### Optional - **Performance status**: ECOG or Karnofsky score - **Geographic location**: City/state for proximity filtering - **Trial phase preference**: I, II, III, IV, or "any" - **Intervention type**: drug, biological, device, etc. - **Recruiting status preference**: recruiting, not yet recruiting, active For biomarker parsing rules and gene symbol normalization, see [MATCHING_ALGORITHMS.md](./MATCHING_ALGORITHMS.md). --- ## Workflow Overview ``` Input: Patient profile (disease + biomarkers + stage + prior treatments) Phase 1: Patient Profile Standardization - Resolve disease to EFO/ontology IDs (OpenTargets, OLS) - Parse molecular alterations to gene + variant - Resolve gene symbols to Ensembl/Entrez IDs (MyGene) - Classify biomarker actionability (FDA-approved vs investigational) Phase 2: Broad Trial Discovery - Disease-based trial search (ClinicalTrials.gov) - Biomarker-specific trial search - Intervention-based search (for known drugs targeting patient's biomarkers) - Deduplicate and collect NCT IDs Phase 3: Trial Characterization (batch, groups of 10) - Eligibility criteria, conditions/interventions, locations, status, descriptions Phase 4: Molecular Eligibility Matching - Parse eligibility text for biomarker requirements - Match patient's molecular profile to trial requirements - Score molecular eligibility (0-40 points) Phase 5: Drug-Biomarker Alignment - Identify trial intervention drugs and mechanisms (OpenTargets, ChEMBL) - FDA approval status for biomarker-drug combinations - Classify drugs (targeted therapy, immunotherapy, chemotherapy) Phase 6: Evidence Assessment - FDA-approved biomarker-drug combinations - Clinical trial results (PubMed), CIViC evidence, PharmGKB - Evidence tier classification (T1-T4) Phase 7: Geographic & Feasibility Analysis - Trial site locations, enrollment status, proximity scoring Phase 8: Alternative Options - Basket trials, expanded access, related studies Phase 9: Scoring & Ranking (0-100 composite score) - Tier classification: Optimal (80-100) / Good (60-79) / Possible (40-59) / Exploratory (0-39) Phase 10: Report Synthesis - Executive summary, ranked trial list, evidence grading, completeness checklist ``` --- ## Critical Tool Parameters ### Clinical Trial Search Tools | Tool | Key Parameters | Notes | |------|---------------|-------| | `search_clinical_trials` | `query_term` (REQ), `condition`, `intervention`, `pageSize` | Main search | | `search_clinical_trials` | `action="search_studies"` (REQ), `condition`, `intervention`, `limit` | Alternative search | | `get_clinical_trial_descriptions` | `action="get_study_details"` (REQ), `nct_id` (REQ) | Full trial details | ### Batch Trial Detail Tools (all take `nct_ids` array) | Tool | Second Required Param | Returns | |------|----------------------|---------| | `get_clinical_trial_eligibility_criteria` | `eligibility_criteria="all"` | Eligibility text | | `get_clinical_trial_locations` | `location="all"` | Site locations | | `get_clinical_trial_conditions_and_interventions` | `condition_and_intervention="all"` | Arms/interventions | | `get_clinical_trial_status_and_dates` | `status_and_date="all"` | Status/dates | | `get_clinical_trial_descriptions` | `description_type="brief"` or `"full"` | Titles/summaries | | `get_clinical_trial_outcome_measures` | `outcome_measures="all"` | Outcomes | ### Gene/Disease Resolution | Tool | Key Parameters | |------|---------------| | `MyGene_query_genes` | `query`, `species` | | `OpenTargets_get_disease_id_description_by_name` | `diseaseName` | | `OpenTargets_get_target_id_description_by_name` | `targetName` | | `ols_search_efo_terms` | `query`, `limit` | ### Drug Information | Tool | Key Parameters | Notes | |------|---------------|-------| | `OpenTargets_get_drug_id_description_by_name` | `drugName` | Resolve drug to ChEMBL ID | | `OpenTargets_get_drug_mechanisms_of_action_by_chemblId` | `chemblId` | Drug MoA and targets | | `OpenTargets_get_associated_drugs_by_target_ensemblID` | `ensemblId`, `size` | Drugs for a target | | `drugbank_get_targets_by_drug_name_or_drugbank_id` | `query`, `case_sensitive`, `exact_match`, `limit` (ALL REQ) | Drug targets | | `fda_pharmacogenomic_biomarkers` | (none) | FDA biomarker-drug list | | `FDA_get_indications_by_drug_name` | `drug_name`, `limit` | FDA indications | ### Evidence Tools | Tool | Key Parameters | |------|---------------| | `PubMed_search_articles` | `query`, `max_results` | | `civic_get_variants_by_gene` | `gene_id` (CIViC int ID), `limit` | | `PharmGKB_search_genes` | `query` | ### Known CIViC Gene IDs EGFR=19, BRAF=5, ALK=1, ABL1=4, KRAS=30, TP53=45, ERBB2=20, NTRK1=197, NTRK2=560, NTRK3=561, PIK3CA=37, MET=52, ROS1=118, RET=122, BRCA1=2370, BRCA2=2371 ### Critical Parameter Notes 1. **DrugBank tools**: ALL 4 parameters (`query`, `case_sensitive`, `exact_match`, `limit`) are REQUIRED 2. **`search_clinical_trials`**: `query_term` is REQUIRED even for disease-only searches 3. **`search_clinical_trials`**: `action` must be exactly `"search_studies"` 4. **CIViC `civic_search_variants`**: Does NOT filter by query - returns alphabetically 5. **CIViC `civic_get_variants_by_gene`**: Takes CIViC gene ID (integer), NOT gene symbol 6. **Batch clinical trial tools**: Accept arrays of NCT IDs, process in batches of 10 --- ## Scoring Summary **Trial Match Score (0-100)**: - Molecular Match: 0-40 pts (exact variant=40, gene-level=30, pathway=20, none=10, excluded=0) - Clinical Eligibility: 0-25 pts (all met=25, most=18, some=10, ineligible=0) - Evidence Strength: 0-20 pts (FDA-approved=20, Phase III=15, Phase II=10, Phase I=5) - Trial Phase: 0-10 pts (III=10, II=8, I/II=6, I=4) - Geographic: 0-5 pts (local=5, same country=3, international=1) **Recommendation Tiers**: Optimal (80-100), Good (60-79), Possible (40-59), Exploratory (0-39) **Evidence Tiers**: T1 (FDA/guideline), T2 (Phase III), T3 (Phase I/II), T4 (computational) For detailed scoring logic, see [SCORING_CRITERIA.md](./SCORING_CRITERIA.md). --- ## Parallelization Strategy **Group 1** (Phase 1 - simultaneous): - `MyGene_query_genes` per gene, `OpenTargets` disease search, `ols_search_efo_terms`, `fda_pharmacogenomic_biomarkers` **Group 2** (Phase 2 - simultaneous): - `search_clinical_trials` by disease, biomarker, and intervention; `search_clinical_trials` alternative **Group 3** (Phase 3 - simultaneous): - All batch detail tools (eligibility, interventions, locations, status, descriptions) **Group 4** (Phases 5-6 - per drug): - Drug resolution, MoA, FDA indications, PubMed evidence --- ## Error Handling 1. Wrap every tool call in try/except 2. Check for empty results and string error responses 3. Use fallback tools when primary fails (e.g., OLS if OpenTargets fails) 4. Document failures in completeness checklist 5. Never let one failure block the entire analysis --- ## Reference Files | File | Contents | |------|----------| | [TOOLS_REFERENCE.md](./TOOLS_REFERENCE.md) | Full tool inventory with parameters and response structures | | [MATCHING_ALGORITHMS.md](./MATCHING_ALGORITHMS.md) | Patient profile standardization, biomarker parsing, molecular eligibility matching, drug-biomarker alignment code | | [SCORING_CRITERIA.md](./SCORING_CRITERIA.md) | Detailed scoring tables, molecular match logic, drug-biomarker alignment scoring | | [REPORT_TEMPLATE.md](./REPORT_TEMPLATE.md) | Full markdown report template with all sections | | [TRIAL_SEARCH_PATTERNS.md](./TRIAL_SEARCH_PATTERNS.md) | Search functions, batch retrieval, parallelization, common use patterns, edge cases | | [EXAMPLES.md](./EXAMPLES.md) | Worked examples for different matching scenarios | | [QUICK_START.md](./QUICK_START.md) | Quick-start guide for common workflows |
Related Skills
tooluniverse
Router skill for ToolUniverse tasks. First checks if specialized tooluniverse skills (105+ skills covering disease/drug/target research, gene-disease associations, clinical decision support, genomics, epigenomics, proteomics, comparative genomics, chemical safety, toxicology, systems biology, and more) can solve the problem, then falls back to general strategies for using 2300+ scientific tools. Covers tool discovery, multi-hop queries, comprehensive research workflows, disambiguation, evidence grading, and report generation. Use when users need to research any scientific topic, find biological data, or explore drug/target/disease relationships. ALSO USE for any biology, medicine, chemistry, pharmacology, or life science question — even simple factoid questions like "how many X in protein Y", "what drug interacts with Z", "what gene causes disease W", or "translate this sequence". These questions benefit from database lookups (UniProt, PubMed, ChEMBL, ClinVar, GWAS Catalog, etc.) rather than answering from memory alone. When in doubt about a scientific fact, USE THIS SKILL to verify against real databases.
tooluniverse-variant-to-mechanism
End-to-end variant-to-mechanism analysis: given a genetic variant (rsID or coordinates), trace its functional impact from regulatory context (GWAS, eQTL, RegulomeDB, ENCODE) through target gene identification (GTEx, OpenTargets L2G) to downstream pathway and disease biology (STRING, Reactome, GO enrichment, disease associations). Produces an evidence-graded mechanistic narrative linking genotype to phenotype. Use when asked "how does this variant cause disease?", "what is the mechanism of rs7903146?", "trace variant to pathway", or "connect this GWAS hit to biology".
tooluniverse-variant-interpretation
Systematic clinical variant interpretation from raw variant calls to ACMG-classified recommendations with structural impact analysis. Aggregates evidence from ClinVar, gnomAD, CIViC, UniProt, and PDB across ACMG criteria. Produces pathogenicity scores (0-100), clinical recommendations, and treatment implications. Use when interpreting genetic variants, classifying variants of uncertain significance (VUS), performing ACMG variant classification, or translating variant calls to clinical actionability.
tooluniverse-variant-functional-annotation
Comprehensive functional annotation of protein variants — pathogenicity, population frequency, structural context, and clinical significance. Integrates ProtVar (map_variant, get_function, get_population) for protein-level mapping and structural context, ClinVar for clinical classifications, gnomAD for population frequency with ancestry data, CADD for deleteriousness scores, and ClinGen for gene-disease validity. Produces a structured variant annotation report with evidence grading. Use when asked about protein variant impact, missense variant pathogenicity, ProtVar annotation, variant functional context, or combining population and structural evidence for a variant.
tooluniverse-variant-analysis
Production-ready VCF processing, variant annotation, mutation analysis, and structural variant (SV/CNV) interpretation for bioinformatics questions. Parses VCF files (streaming, large files), classifies mutation types (missense, nonsense, synonymous, frameshift, splice, intronic, intergenic) and structural variants (deletions, duplications, inversions, translocations), applies VAF/depth/quality/consequence filters, annotates with ClinVar/dbSNP/gnomAD/CADD via ToolUniverse, interprets SV/CNV clinical significance using ClinGen dosage sensitivity scores, computes variant statistics, and generates reports. Solves questions like "What fraction of variants with VAF < 0.3 are missense?", "How many non-reference variants remain after filtering intronic/intergenic?", "What is the pathogenicity of this deletion affecting BRCA1?", or "Which dosage-sensitive genes overlap this CNV?". Use when processing VCF files, annotating variants, filtering by VAF/depth/consequence, classifying mutations, interpreting structural variants, assessing CNV pathogenicity, comparing cohorts, or answering variant analysis questions.
tooluniverse-vaccine-design
Design and evaluate vaccine candidates using computational immunology tools. Covers epitope prediction (MHC-I/II binding via IEDB), population coverage analysis, antigen selection, adjuvant matching, and immunogenicity assessment. Integrates IEDB for epitope prediction, UniProt for antigen sequences, PDB/AlphaFold for structural epitopes, BVBRC for pathogen proteomes, and literature for clinical precedent. Use when asked about vaccine design, epitope prediction, immunogenicity, MHC binding, T-cell epitopes, B-cell epitopes, or population coverage for vaccine candidates.
tooluniverse-toxicology
Assess chemical and drug toxicity via adverse outcome pathways, real-world adverse event signals, and toxicogenomic evidence. Integrates AOPWiki (AOPWiki_list_aops, AOPWiki_get_aop) for mechanism- level pathway tracing, FAERS for post-market adverse event quantification, OpenFDA for label mining, and CTD for chemical-gene-disease evidence. Produces structured toxicity reports with evidence grading (T1-T4). Use when asked about toxicity mechanisms, adverse outcome pathways, AOP mapping, FAERS signal detection, or chemical-disease relationships for drugs or environmental chemicals.
tooluniverse-target-research
Gather comprehensive biological target intelligence from 9 parallel research paths covering protein info, structure, interactions, pathways, expression, variants, drug interactions, and literature. Features collision-aware searches, evidence grading (T1-T4), explicit Open Targets coverage, and mandatory completeness auditing. Use when users ask about drug targets, proteins, genes, or need target validation, druggability assessment, or comprehensive target profiling.
tooluniverse-systems-biology
Comprehensive systems biology and pathway analysis using multiple pathway databases (Reactome, KEGG, WikiPathways, Pathway Commons, BioModels). Performs pathway enrichment, protein-pathway mapping, keyword searches, and systems-level analysis. Use when analyzing gene sets, exploring biological pathways, or investigating systems-level biology.
tooluniverse-structural-variant-analysis
Comprehensive structural variant (SV) analysis skill for clinical genomics. Classifies SVs (deletions, duplications, inversions, translocations), assesses pathogenicity using ACMG-adapted criteria, evaluates gene disruption and dosage sensitivity, and provides clinical interpretation with evidence grading. Use when analyzing CNVs, large deletions/duplications, chromosomal rearrangements, or any structural variants requiring clinical interpretation.
tooluniverse-structural-proteomics
Integrate structural biology data with proteomics for drug target validation. Retrieves protein structures from PDB (RCSB, PDBe), AlphaFold predictions, antibody structures (SAbDab), GPCR data (GPCRdb), binding pocket analysis (ProteinsPlus), and ligand interactions (BindingDB). Use when asked to find structures for a drug target, identify binding site ligands, cross-validate drug binding with structural data, assess structural druggability, or compare experimental vs predicted structures.
tooluniverse-stem-cell-organoid
Research stem cells, iPSCs, organoids, and cell differentiation using ToolUniverse tools. Covers pluripotency marker identification, differentiation pathway analysis, organoid model characterization, cell type annotation, and disease modeling. Integrates CellxGene/HCA for single-cell atlas data, CellMarker for cell type markers, GEO for stem cell datasets, and pathway tools for differentiation signaling. Use when asked about stem cells, iPSCs, organoids, cell reprogramming, pluripotency, differentiation protocols, or 3D culture models.