Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 64
  • 42 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-trials

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install clinical-trials in Claude Code

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

A

No 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 →

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.

clinical-trials Install

Add to stack

Loading.