clinical-trials
Skill by langchain-samples
Guides an assistant on searching and fetching ClinicalTrials.gov registry records through the ctgovSearch and ctgovFetch tools. Aimed at researchers who need trial data, including trials that never produced a paper.
Install clinical-trials
Built from the published package, never by AI.
git clone --depth 1 https://github.com/langchain-samples/deep-life-sci /tmp/deep-life-sci && mkdir -p ~/.claude/skills && cp -r /tmp/deep-life-sci/deep_life_sci/skills/clinical-trials ~/.claude/skills/clinical-trialsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/langchain-samples/deep-life-sci /tmp/deep-life-sci && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/deep-life-sci/deep_life_sci/skills/clinical-trials ~/.gemini/antigravity-cli/skills/clinical-trialsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill gives an assistant instructions for using the ClinicalTrials.gov registry tools, tools.ctgovSearch and tools.ctgovFetch. It explains how to build search queries with filters such as condition, intervention, status and phase, how to probe counts with retmax set to 0, and how to fetch trial details in batches by NCT number. It also describes field groups for descriptions, eligibility, design, outcomes, results and MeSH terms.
The skill stresses that a registry record is a plan rather than a result, so planned enrollment, projected dates and planned outcomes should be described as planned. It also covers joins to PubMed, linking trials to their papers through NCT numbers and the [si] field. It is written for researchers and analysts who work with clinical trial data.
Written from the project's SKILL.md and checked against it.
What it can do
- tools.ctgovSearchSearches the registry by condition, intervention, title, sponsor, status or an Essie filter expression.
- tools.ctgovFetchFetches up to 200 trial records in one request, with optional field groups added.
- Batch fetchingPasses all NCT ids in one request to respect the registry's rate limit.
- Count probingUses retmax set to 0 to check result counts before fetching full records.
- Trial to paper joinsUses trial_pmids and the PubMed [si] field to link registered trials to publications.
- MeSH mappingReturns NLM MeSH descriptors for trial conditions to use in PubMed [mh] searches.
What you need
- Python, for counting or joining file-backed records through tools.execute
Try asking
- Find phase 3 HIV trials of lenacapavir that have completed.
- List industry-sponsored phase 3 trials in Japan that started after 2020.
- Which registered trials of this drug have published results in PubMed?
Good to know
- The registry allows about one request per second, and no API key raises that limit.
- A search must include at least one filter, or it is rejected.
- Records over 24 KB are returned as file manifests rather than inline data.
- Missing posted results are not evidence that a trial had no effect or no publication.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: deep_life_sci/skills/clinical-trials/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to clinical-trials
All alternatives →Searches arXiv for scientific papers and preprints, extracts their metadata and abstracts, and downloads PDF or HTML full text. Suited to users who need research papers, literature or specific arXiv IDs.
Downloads AlphaFold predicted structures and PAE matrices for a UniProt ID, then reports pLDDT confidence, domain boundaries and disorder. Built for users who already have a UniProt accession.
Queries the QuickGO and Evidence & Conclusion Ontology REST API to map genes to Gene Ontology terms. Built for researchers doing functional annotation and GO hierarchy exploration.
Connects an AI assistant to Peloton to browse fitness classes, check live and archived schedules, and manage workouts. Built for Peloton users who want to plan rides from their assistant.
Queries NCBI Gene through the E-utilities and Datasets API. It helps researchers search genes by symbol or ID, retrieve gene details, and run batch lookups for annotation and functional analysis.
Prepares and launches nf-core/pacsomatic runs for matched tumor-normal PacBio HiFi data starting from unaligned BAM files. It generates samplesheets and pinned launch artifacts, then runs locally or submits to a scheduler.
Compare with literature-search-arxiv, alphafold-database-fetch-and-analyze or quickgo-database
clinical-trials: common questions
Does this skill search PubMed too?
It mentions pubmedSearch and fetchAbstracts for linking trials to papers, but the registry tools are ClinicalTrials.gov only. PubMed search syntax, such as [tiab] and [mesh], does not work with the registry.
Can it return trial results?
Yes, when the results field group is requested. The source says it includes posted measured outcomes, participant flow, baseline characteristics and adverse events.
Why does a search return zero results?
A count of 0 means no matches, so the skill advises checking spelling first. The registry does not support truncation wildcards, and a trailing asterisk returns 0.
How do I install clinical-trials?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is clinical-trials free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is clinical-trials safe to use?
It scores 64 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to clinical-trials?
Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.
