G CLI Agent ClinicalTrialMatching — Data skill for Claude Code
🧬 Agentic Clinical Trial Match — An AI MVP bridging legacy health data & research protocols.
How to install G CLI Agent ClinicalTrialMatching
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open saudaziz/G-CLI-Agent-ClinicalTrialMatching and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What G CLI Agent ClinicalTrialMatching does
🧬 Agentic Clinical Trial Match — An AI MVP bridging legacy health data & research protocols. Uses LangGraph for multi-agent flow, LlamaIndex for hybrid RAG, and MCP for secure database simulation. Supports local-first workflows via Ollama (Gemma4) or cloud reasoning via Claude 3.5 Sonnet. Precision matching for modern research.
Alternatives in Data
- Private GPT — Complete API layer for private AI applications on local models: RAG, skills, tools, MCP, text-to-sql, and more 57.5k ★
- OpenViking — Self-evolving Context Database for AI Agents 33.3k ★
- Sentry — Inspect Sentry issues, summarize production errors, and pull health data 14.6k ★
README
Agentic Clinical Trial Matching System
An AI-powered MVP that bridges legacy healthcare data and modern research protocols using **LangGraph**, **LlamaIndex**, and the **Model Context Protocol (MCP)**.
Scenario: The Clinical Recruitment Bottleneck
A pharmaceutical research organization manages hundreds of active clinical trials. Currently, specialized medical coordinators manually review thousands of patient electronic health records (EHR) to determine if they meet strict "Inclusion/Exclusion" criteria buried in 200-page Clinical Trial Protocols (PDFs).
The patient data resides in a legacy SQL-based Hospital Information System (HIS) that lacks modern APIs, creating a critical bottleneck in **Healthcare, Pharmaceuticals, and Biotechnology**. Delayed recruitment is the #1 reason trials fail, costing millions per day in lost patent life.
**Similar Scenarios:** Veteran affairs benefit adjudication, complex insurance underwriting, and legal discovery.
The Agentic Design
Agent Roles
- The Researcher (Medical Analyst): Uses RAG to parse the Trial Protocol PDF and an MCP Server to securely query the legacy patient database for specific lab results and ICD-10 codes.
- The Orchestrator (Clinical Lead): Receives the trial ID, sets recruitment goals, and manages the logic flow between data extraction and eligibility.
- The Executor (Regulatory Reporter): Compiles a "Match Justification Report" citing specific protocol pages and patient record timestamps.
The Math of Efficiency
Given $P = 10,000$ patients in a database:
- Human Manual Review: $H_{time} = 30 \text{ mins/patient}$ → 5,000 hours.
- Agentic Review: $A_{time} = 20 \text{ seconds/patient}$ → ~55 hours.
- Efficiency Ratio ($C_e$): Roughly 150:1 compared to professional human rates vs. token costs.
Technical Stack
- Languages: TypeScript (MCP Server), Python (Agent Logic).
- Orchestration: LangGraph (Stateful multi-agent workflows).
- **RAG Fra
Related Skills
Premarket AI
AI pre-market news platform that separates real market news from fake. It migrates a legacy C++11/PostgreSQL/P
Docwise Agentic
Full agentic RAG pipeline: adaptive chunking → Qdrant hybrid search (semantic + BM25 + RRF) → LangGraph ReAct
Hms Calibrate
Calibrate an HEC-HMS basin model by adjusting parameters to match observed flow data.
Phi Vet
Hard pre-commit gate scanning files for PHI (Protected Health Information) leakage in medical-data research re
Brightspring Referral Agent
An agentic pipeline that reads a home-health, hospice, or behavioral-health referral document, checks it again
HyperMnesia
Self-hosted long-term memory for AI coding agents: Postgres+pgvector doc-RAG (component/constraint map + hybri
Related Agents
AI LLM Engineer
Use this agent when the user types /ai or asks for ai/llm engineer work — e.g., build a RAG pipeline over our
ML Developer
Machine learning and AI integration specialist. Use for Anthropic SDK, LangChain, LlamaIndex, embedding, vecto
Clinical Trials Reviewer
Clinical-trial platform pre-implementation reviewer. Specialises in ICH-GCP E6(R3), 21 CFR Part 11 (electronic