Clinicaltrials logo

Clinicaltrials

Organization
K-Dense-AI
clinicaltrials

Search the ClinicalTrials.gov registry through its version 2 REST API for interventional and observational studies, their phases, enrolment, endpoints, sponsors, and posted results. Use this skill to survey who is developing what against an indication, date a competitor's programme, read primary and secondary outcome measures, find eligibility criteria, and distinguish a study that completed from one that was terminated or withdrawn. Also trigger on ClinicalTrials.gov, NCT number, trial registry, study phase, enrolment, primary outcome measure, recruiting status, trial sponsor, or competitive landscape.

Overview

PublisherK-Dense-AI
Repositorydrug-discovery-agent-skills
Skill nameclinicaltrials
Stars
51
Forks
5
Bundled files
7
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 7 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by K-Dense-AI on GitHub. Read the source before you install it.

Installation

Install the Clinicaltrials AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/K-Dense-AI/drug-discovery-agent-skills/tree/main/skills/clinicaltrials
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/K-Dense-AI/drug-discovery-agent-skills.git /tmp/drug-discovery-agent-skills
mkdir -p .claude/skills
cp -r /tmp/drug-discovery-agent-skills/skills/clinicaltrials .claude/skills/clinicaltrials
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Clinicaltrials in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Clinicaltrials on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Clinicaltrials is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

ClinicalTrials.gov

The world's largest trial registry: roughly 560 000 studies, sponsor-submitted, going back to 2000. It answers the question that no bench assay can — has anyone already tried this in people, and what happened to them when they did. For a target or an indication it is the cheapest competitive and feasibility intelligence available.

Base URL: https://clinicaltrials.gov/api/v2 — REST, no key. Docs: data-api · search areas Checked against: the live v2 API, August 2026. The classic API was retired in June 2024.

Read references/api-reference.md before writing a query by hand, references/study-structure.md before reaching for a field, and references/reading-a-registry.md before drawing a conclusion from anything you find — that one is judgement, not syntax.

The three scripts

ScriptAnswers
ct_search.pyWhat is registered against this condition or drug, and how much of it?
ct_study.pyWhat exactly did this one study set out to do?
ct_landscape.pyWho else is in this indication, and what stops trials here?

COMPLETED does not mean it worked

This is the single thing to get right. overallStatus: COMPLETED means the study finished running. It says nothing about whether the intervention succeeded — a trial that comprehensively missed its primary endpoint completes normally.

Three separate facts, routinely conflated:

Means
overallStatus: COMPLETEDthe study finished
hasResults: trueresults were posted to the registry
whether the endpoint was metnot recorded in the registry at all

hasResults is a top-level sibling of protocolSection, not part of the status module, and it is the easiest useful field to miss. ct_study.py show prints a warning when a study completed without posting results.

Searching

bash
python skills/clinicaltrials/scripts/ct_search.py search \
    --condition "non-small cell lung cancer" --phase PHASE3 --limit 3
# 1019 studies match
nct_id       status      phase   enrollment  sponsor                    start       has_results
NCT06357533  RECRUITING  PHASE3  675         AstraZeneca                2024-04-11  false
NCT05278052  RECRUITING  PHASE3  190         Tata Memorial Hospital     2020-04-20  false
NCT00268684  UNKNOWN     PHASE3  381         Tel-Aviv Sourasky          2005-05     false

UNKNOWN is not an error: it is what the registry assigns when the sponsor has stopped verifying the record. On a 2005 study, read it as "probably abandoned".

count --by phase and count --by status give the shape of a field without walking it. Note that phase counts overlap — a phase 2/3 study carries ["PHASE2","PHASE3"] and is returned by a filter for either — so they do not sum to the total.

One study in detail

bash
python skills/clinicaltrials/scripts/ct_study.py show NCT02142738
python skills/clinicaltrials/scripts/ct_study.py outcomes NCT02142738
nct_id             NCT02142738
status             COMPLETED
phase              PHASE3
allocation         RANDOMIZED
enrollment         305 (ACTUAL)
sponsor            Merck Sharp & Dohme LLC
start              2014-08-25
has_results        True

outcomes separates the primary endpoint — what the study was powered for — from the secondaries. A positive secondary in a study that missed its primary is hypothesis-generating, not evidence, and the registry will not make that distinction for you.

eligibility splits the criteria blob back into inclusion and exclusion. There is no structured form in the registry; it is one newline-delimited string with headings inside it.

Landscape and attrition

bash
python skills/clinicaltrials/scripts/ct_landscape.py attrition \
    --condition "pancreatic cancer" --phase PHASE3 --limit 120
phase   studies  completed  recruiting  terminated  withdrawn  stopped_pct
PHASE3  120      43         25          16          5          18.3

# 21 stated reasons for stopping
  - Preliminary data showed no survival benefit in the GV1001 group compared to gemcitabine.
  - recruitment prematurely stopped due to a lack of eligible patients.

whyStopped is the richest field in the registry and the reason attrition prints reasons rather than counting them. Those two examples are completely different facts: the first is a real negative result about the biology, often the only public record of it; the second says nothing about the drug and everything about whether you can recruit for your own trial.

sponsors reports total enrolment and highest phase alongside the study count, because counting registrations measures activity, not investment — twenty investigator-initiated phase 1s are not two 800-patient phase 3s.

Four ways this registry misleads quietly

  1. Nobody verifies any of it. Sponsors submit and update at their own pace. A record is evidence of stated intent, not of what happened.
  2. Drug names are free text with no identifier. MK-3475, pembrolizumab, and Keytruda do not group together. Resolve names with chembl first and search each synonym.
  3. Missing results usually mean nothing. FDAAA compliance is well below 100% and does not reach phase 1, most non-US studies, or products never filed with the FDA.
  4. ESTIMATED enrolment is a plan. Everything is estimated at registration; the gap between it and the final ACTUAL is itself a feasibility finding.

When to stop using this API

The registry has no aggregation endpoint, so every breakdown here walks studies one page at a time. For corpus-wide analysis, use the bulk download rather than the API. For European trials, many of which never appear here, use the EU CTR; the WHO ICTRP federates the national registries.

Composing with the rest of the bundle

  • open-targets → here: is anyone already running trials against this target?
  • chembl → here: resolve a compound's synonyms before searching free-text intervention names.
  • openfda → alongside: the registry is what was attempted, openFDA is what was approved.
  • depmap → here: a genetic dependency, checked against whether the clinic has tried it.
  • pkpd-translation → after: a registered dose and schedule as a translation anchor.

Reporting results honestly

Give the query, the number of studies actually walked rather than the number matched, and the date. Say "N studies are registered", never "N studies show". Quote whyStopped verbatim instead of paraphrasing it into a cause. If asked whether a trial succeeded, say the registry does not record that.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Clinicaltrials AI skill do?

Search the ClinicalTrials.gov registry through its version 2 REST API for interventional and observational studies, their phases, enrolment, endpoints, sponsors, and posted results. Use this skill to survey who is developing what against an indication, date a competitor's programme, read primary and secondary outcome measures, find eligibility criteria, and distinguish a study that completed from one that was terminated or withdrawn. Also trigger on ClinicalTrials.gov, NCT number, trial registry, study phase, enrolment, primary outcome measure, recruiting status, trial sponsor, or competiti...

Why use Clinicaltrials on TypingMind?

Because you install it once and use it with any model. Clinicaltrials is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Clinicaltrials in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/K-Dense-AI/drug-discovery-agent-skills/tree/main/skills/clinicaltrials. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Clinicaltrials?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Clinicaltrials?

As many as you like. As long as a model supports skills, you can use Clinicaltrials with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Clinicaltrials AI skill free?

Yes. It is published on GitHub by K-Dense-AI under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇