Agent skill

Clinicaltrials DB

by aipoch in aipoch/medical-research-skills

Query the ClinicalTrials.gov API v2 to search for clinical trials, retrieve detailed study protocols, and analyze recruitment status; use when you need to find trials by condition/drug, export…

MITAuto-check passedBusiness, Finance & HR

Install Clinicaltrials DB

skills CLI
$ npx skills add aipoch/medical-research-skills --skill clinicaltrials-db -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aipoch/medical-research-skills clinicaltrials-db --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/'scientific-skills/Evidence Insight/clinicaltrials-db' .claude/skills/clinicaltrials-db && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
clinicaltrials-db
GitHub stars
1.9k
Token cost
~762 tokens
SKILL.md length
228 words
Files
4 (incl. scripts, references)
Skills in repo
578
Repo updated
First seen
Licence
MIT

At a glance

Query the ClinicalTrials.gov API v2 to search for clinical trials, retrieve detailed study protocols, and analyze recruitment status; use when you need to find trials by condition/drug, export…

  • You need to find trials by condition/drug
  • SKILL.md covers When to Use, Key Features, Dependencies and Example Usage, plus 1 more section
  • Runs Python scripts from its folder
  • Verify study details by NCT ID

What it does

Clinicaltrials DB is an agent skill from aipoch/medical-research-skills. Query the ClinicalTrials.gov API v2 to search for clinical trials, retrieve detailed study protocols, and analyze recruitment status; use when you need to find trials by condition/drug, export results, or verify study details by NCT ID.

Its SKILL.md is about 760 tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including scripts and reference files (for example `clinicaltrials-db_audit_result_v1.json`, `references/api_reference.md` and `scripts/query_clinicaltrials.py`).

It sits in Business, Finance & HR, covering Recruiting and HR and Clinical and healthcare research. The repository describes itself as: Hundreds of agent skills for medical research, including protocol design, data analysis, evidence insights, and academic writing. The licence is MIT.

When your agent uses it

  • You need to find trials by condition/drug
  • Verify study details by NCT ID

Example prompts

  • “/clinicaltrials-db”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 686e09d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Clinicaltrials DB loads about 762 tokens when it runs, and up to ~964 if it reads all its reference files. Until then it costs about 64 tokens; SKILL.md has 228 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~64
When it runs · the whole SKILL.md, loaded when a task matches
~762
With references · SKILL.md plus every file in references/, read only if the agent opens them
~964

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from aipoch/medical-research-skills at commit 686e09d, republished under its MIT licence (© aipoch). 228 words, ~762 tokens.

Download SKILL.mdSave it as .claude/skills/clinicaltrials-db/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
clinicaltrials-db
description
Query the ClinicalTrials.gov API v2 to search for clinical trials, retrieve detailed study protocols, and analyze recruitment status; use when you need to find trials by condition/drug, export results, or verify study details by NCT ID.
license
MIT
author
AIPOCH

Source: https://github.com/aipoch/medical-research-skills

When to Use

  • You need to find clinical trials for a specific condition (e.g., “cancer”) and filter by recruitment status (e.g., Recruiting).
  • You want to locate trials involving a particular intervention (drug/biologic/device) and quickly review matching studies.
  • You need to retrieve full study protocol details (including eligibility criteria) for a known NCT identifier.
  • You want to export or programmatically process trial metadata for downstream analysis or reporting.
  • You need to validate study status and key fields (phase, locations, sponsor) from the authoritative ClinicalTrials.gov source.

Key Features

  • Search studies via ClinicalTrials.gov API v2 using common filters (condition, intervention, recruitment status, result limits).
  • Retrieve detailed study information by NCT ID, including protocol and eligibility criteria.
  • Simple Python interface for integrating trial search and retrieval into scripts and pipelines.
  • Reference documentation for advanced query parameters and field definitions (see references/api_reference.md).

Dependencies

  • Python 3.9+
  • requests >= 2.28

Example Usage

python
from scripts.query_clinicaltrials import search_studies, get_study_details

def main():
    # 1) Search studies (example: recruiting cancer studies)
    results = search_studies(
        condition="cancer",
        status="RECRUITING",
        limit=10,
    )

    print("Search results:")
    for i, item in enumerate(results, start=1):
        # The exact keys depend on the API fields returned by the implementation.
        # Print the raw item to keep this example runnable across field selections.
        print(f"\n[{i}] {item}")

    # 2) Get study details by NCT ID
    nct_id = "NCT01234567"
    study = get_study_details(nct_id)

    print(f"\n\nStudy details for {nct_id}:")
    print(study)

if __name__ == "__main__":
    main()

Implementation Details

  • API Backend: Uses ClinicalTrials.gov API v2 endpoints to query study records and fetch study details.
  • Search Parameters:
    • condition: Condition/disease term used to match relevant studies.
    • status: Recruitment status filter (e.g., RECRUITING).
    • limit: Maximum number of records to return.
  • Study Detail Retrieval:
    • get_study_details(nct_id) fetches the full record for a single study identified by its NCT ID and returns the protocol-level information (including eligibility criteria when available).
  • Advanced Queries / Field Definitions:
    • For additional query parameters, response fields, and definitions, refer to references/api_reference.md.

© aipoch, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (scripts, references) in scientific-skills/Evidence Insight/clinicaltrials-db of aipoch/medical-research-skills.

  • SKILL.md
  • clinicaltrials-db_audit_result_v1.json
  • references/api_reference.md
  • scripts/query_clinicaltrials.py

Open the folder on GitHubat commit 686e09d

Compare with similar skills

Clinicaltrials DB next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Clinicaltrials DB compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Clinicaltrials DB this skillaipoch/medical-research-skills1.9k—~762Automated safety check: PassMIT
Searching Clinicaltrialsmaziyarpanahi/openmed5.5k—~2kAutomated safety check: PassApache-2.0
Ct Status Diffagentii-ai/agentii-investment-intelligence207—~1.8kAutomated safety check: PassApache-2.0
Clinical Trials Databasegoogle-deepmind/science-skills3.2k2 repos~3.2kAutomated safety check: PassApache-2.0
Pp Clinical Trialsmvanhorn/printing-press-library2.1k—~4.6kAutomated safety check: NotesApache-2.0
Hrm Rebuttalbrycewang-stanford/Awesome-Journal-Skills1.2k—~1.4kAutomated safety check: PassMIT

Similar skills

  • Searching Clinicaltrials

    maziyarpanahi/openmed

    Searches ClinicalTrials.gov for studies by condition, intervention, and recruitment status using the modern v2 REST API with cursor (pageToken) pagination.

    5.5k GitHub stars~2k tokensUpdated yesterday
    Business, Finance & HRAuto-check passed
  • Ct Status Diff

    agentii-ai/agentii-investment-intelligence

    Weekly clinical-trial status diff — the 11-category change report over the stored weekly snapshots (spec 055 FR-B03).

    207 GitHub stars~1.8k tokensUpdated 11 days ago
    Business, Finance & HRAuto-check passed
  • Clinical Trials Database

    google-deepmind/science-skills

    Query ClinicalTrials.gov via APIv2. An agent skill from google-deepmind/science-skills.

    3.2k GitHub starsUsed in 2 repos~3.2k tokens
    Research & ScienceAuto-check passed
  • Pp Clinical Trials

    mvanhorn/printing-press-library

    A multi-source clinical-trials intelligence system — aggregates, normalizes, and analyzes trials across ClinicalTrials.gov, EU CTIS, and biomedical sources, with an offline SQLite engine no…

    2.1k GitHub stars~4.6k tokensUpdated yesterday
    Research & ScienceAuto-check: notes
  • Hrm Rebuttal

    brycewang-stanford/Awesome-Journal-Skills

    A skill your agent uses when drafting the revision and response letter after a Human Resource Management (Wiley "HRM") revise-and-resubmit — structuring point-by-point responses to the action editor…

    1.2k GitHub stars~1.4k tokensUpdated 13 days ago
    Business, Finance & HRAuto-check passed
  • Hrm Topic Selection

    brycewang-stanford/Awesome-Journal-Skills

    A skill your agent uses when scoping or stress-testing the research question for a Human Resource Management (Wiley "HRM") manuscript — confirming an HR-system/practice phenomenon with both a…

    1.2k GitHub stars~1.1k tokensUpdated 13 days ago
    Business, Finance & HRAuto-check passed

More from aipoch/medical-research-skills

All 578 skills in this repo
  • Academic Poster Generator

    aipoch/medical-research-skills

    Complete workflow for generating academic research posters from PDF literature; use when you need to extract paper content from PDFs and produce a LaTeX-based poster…

    1.9k GitHub stars~2.2k tokensUpdated 23 days ago
    Auto-check passed
  • Diagnostic Study Quality Assessment Quadas

    aipoch/medical-research-skills

    Analyzes clinical diagnostic accuracy studies for bias using the QUADAS-2 tool.

    1.9k GitHub stars~1.4k tokensUpdated 23 days ago
    Auto-check passed
  • Exploratory Data Analysis

    aipoch/medical-research-skills

    Perform comprehensive exploratory data analysis on scientific data files across 200+ file formats.

    1.9k GitHub stars~3.7k tokensUpdated 23 days ago
    Auto-check passed
  • Iso Certification

    aipoch/medical-research-skills

    A toolkit for preparing ISO 13485:2016 certification documentation for medical device QMS.

    1.9k GitHub stars~1.8k tokensUpdated 23 days ago
    Auto-check passed
  • Journal Skills

    aipoch/medical-research-skills

    Recommends target journals for manuscript submission by analyzing the paper topic/abstract and the journal distribution of similar PubMed literature; use when users ask for journal…

    1.9k GitHub stars~1.7k tokensUpdated 23 days ago
    Auto-check passed
  • Latex Posters

    aipoch/medical-research-skills

    Creates academic-poster writing packages for LaTeX using beamerposter, tikzposter, or baposter.

    1.9k GitHub stars~1.3k tokensUpdated 23 days ago
    Auto-check passed

Questions about Clinicaltrials DB

What does Clinicaltrials DB do?

Query the ClinicalTrials.gov API v2 to search for clinical trials, retrieve detailed study protocols, and analyze recruitment status; use when you need to find trials by condition/drug, export…. Clinicaltrials DB is an agent skill from aipoch/medical-research-skills.gov API v2 to search for clinical trials, retrieve detailed study protocols, and analyze recruitment status; use when you need to find trials by condition/drug, export results, or verify study details by NCT ID.

When should I use Clinicaltrials DB?

Clinicaltrials DB fits situations like: you need to find trials by condition/drug; verify study details by NCT ID.

How do I install Clinicaltrials DB in Claude Code?

Run `npx skills add aipoch/medical-research-skills --skill clinicaltrials-db -a claude-code`. Or copy the skill folder (scientific-skills/Evidence Insight/clinicaltrials-db in aipoch/medical-research-skills) into .claude/skills/clinicaltrials-db in your project. Claude Code loads it when a task matches its description.

How do I install Clinicaltrials DB in Codex?

Run `npx skills add aipoch/medical-research-skills --skill clinicaltrials-db -a codex`. Or copy the skill folder (scientific-skills/Evidence Insight/clinicaltrials-db in aipoch/medical-research-skills) into .agents/skills/clinicaltrials-db in your project. Codex loads it when a task matches its description.

Can I use Clinicaltrials DB in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aipoch/medical-research-skills --skill clinicaltrials-db -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/clinicaltrials-db, .gemini/skills/clinicaltrials-db, .github/skills/clinicaltrials-db and .opencode/skills/clinicaltrials-db in your project.

What does Clinicaltrials DB need to run?

Going by SKILL.md and its folder, Clinicaltrials DB needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Clinicaltrials DB access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Clinicaltrials DB safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Clinicaltrials DB use?

Clinicaltrials DB is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Clinicaltrials DB use?

About 762 tokens (SKILL.md is roughly 3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 202 tokens, read only when the agent opens those files.

What are the alternatives to Clinicaltrials DB?

Skills that share tags, products or a category with Clinicaltrials DB: Searching Clinicaltrials (maziyarpanahi/openmed, 5.5k stars), Ct Status Diff (agentii-ai/agentii-investment-intelligence, 207 stars), Clinical Trials Database (google-deepmind/science-skills, 3.2k stars) and Pp Clinical Trials (mvanhorn/printing-press-library, 2.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Clinicaltrials DB?

aipoch (a GitHub organization) maintains it in aipoch/medical-research-skills, which has 1,937 GitHub stars. The repository holds 578 skills in this directory. The repository was last updated on September 17, 2026.

Source: aipoch/medical-research-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.