---
name: clinical-trial-matcher
description: "---name: clinical-trial-matcher description: Matches patient profiles to open clinical trials using vector similarity and inclusion/exclusion criteria. Use when a user provides patient data and asks for relevant trials."
---

<!--
# COPYRIGHT NOTICE
# This file is part of the "Universal Biomedical Skills" project.
# Copyright (c) 2026 MD BABU MIA, PhD <md.babu.mia@mssm.edu>
# All Rights Reserved.
#
# This code is proprietary and confidential.
# Unauthorized copying of this file, via any medium is strictly prohibited.
#
# Provenance: Authenticated by MD BABU MIA

-->

---
name: 'clinical-trial-matcher'
description: 'Matches patient profiles to open clinical trials using vector similarity and inclusion/exclusion criteria. Use when a user provides patient data and asks for relevant trials.'
measurable_outcome: Execute skill workflow successfully with valid output within 15 minutes.
allowed-tools:
  - read_file
  - run_shell_command
---

# Clinical Trial Matcher

This skill matches a patient's clinical profile against a database of active clinical trials (ClinicalTrials.gov).

## When to use this skill
- When the user provides a patient case summary, medical history, or specific diagnosis.
- When the user explicitly asks to "find trials" or "recruit patients".
- When evaluating eligibility criteria for a specific trial.

## How to use it
1.  **Extract Patient Data:** Identify key demographics (age, sex), primary diagnosis, stage of disease, and prior lines of therapy from the user's input.
2.  **Search Vector Database:**
    -   Generate an embedding for the patient summary.
    -   Query the `trials_vector_db` for top 20 semantic matches.
3.  **Filter by Logic:**
    -   Apply hard filters: `status=Recruiting`, `phase!=Terminated`.
    -   Check inclusion/exclusion criteria (e.g., "Must have EGFR mutation", "No prior immunotherapy").
4.  **Format Output:**
    -   Present matches in a structured list: Trial ID (`NCT number`), Title, Phase, and "Why it fits" (matching logic).
    -   Highlight any potential exclusion criteria that need verification.


<!-- AUTHOR_SIGNATURE: 9a7f3c2e-MD-BABU-MIA-2026-MSSM-SECURE -->

---
Source attribution: mdbabumiamssm
Original project: https://github.com/mdbabumiamssm/LLMs-Universal-Life-Science-and-Clinical-Skills-/blob/ef3c40b235ba23083e67263a921759784f0dd251/Skills/External_Collections/Antigravity_Skills/clinical-trial-matcher/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Dave AI.

## Upstream license notice

MIT License

Copyright (c) 2025 MD BABU MIA , PHD

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Dave AI resource metadata

Creator / publisher: mdbabumiamssm
Original project: https://github.com/mdbabumiamssm/LLMs-Universal-Life-Science-and-Clinical-Skills-/blob/ef3c40b235ba23083e67263a921759784f0dd251/Skills/External_Collections/Antigravity_Skills/clinical-trial-matcher/SKILL.md
Attribution basis: Recovered original package and original project license at a pinned revision

Fields of work: Healthcare & Life Sciences
Roles: Clinical Research, Health Informatics, Medical Writer
Specialties: Specialty not specified
Tools: Clinicaltrials.Gov
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: 58996356b1064f4c0b7ec514fabc998b6aff80de9bd2adea97c324824053318c
Metadata reviewed: 2026-10-27
This metadata supersedes earlier Dave AI catalog attribution. Original instruction and supporting files are preserved.
