Skip to content
Back to skills

Clinicaltrials Study Search

ASecurity

Use this skill to search the current ClinicalTrials.gov v2 API for condition or keyword matches when you need official clinical-study metadata. Do not use it for legacy API URLs or offline work.

  • 38 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
ai-agentspythongoapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add ma-compbio-lab/SkillFoundry --skill clinicaltrials-study-search --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Clinicaltrials Study Search?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Clinicaltrials Study Search
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ma-compbio-lab-clinicaltrials-study-search/badge)](https://www.skillsdirectory.com/skills/ma-compbio-lab-clinicaltrials-study-search)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: clinicaltrials-study-search
description: Use this skill to search the current ClinicalTrials.gov v2 API for condition or keyword matches when you need official clinical-study metadata. Do not use it for legacy API URLs or offline work.
---

## Purpose
Query the current ClinicalTrials.gov v2 API and save structured study metadata for a condition or free-text term.

## When to use
- You need official clinical study metadata.
- You want a lightweight search path for cohort or intervention discovery.

## When not to use
- You need patient-level data.
- You are working against deprecated ClinicalTrials.gov API examples.

## Inputs
- A condition query or a general term query
- Optional page size and output path

## Outputs
- JSON payload containing `studies`

## Requirements
- Python 3.13+
- Network access to `clinicaltrials.gov`

## Procedure
1. Run `python3 skills/clinical-biomedical-data-science/clinicaltrials-study-search/scripts/search_clinicaltrials.py --condition melanoma --page-size 3 --out skills/clinical-biomedical-data-science/clinicaltrials-study-search/assets/melanoma_studies.json`.
2. Inspect the first `protocolSection.identificationModule` block.
3. Use the result list for follow-up triage or cohort narrowing.

## Validation
- Command exits successfully.
- Output contains `studies`.
- A common query returns at least one study.

## Failure modes and fixes
- 404 or legacy errors: use `api/v2` endpoints only.
- No results: switch between `--condition` and `--term`.

## Safety and limits
- Public study metadata only.
- This skill does not provide patient-level or operational medical guidance.

## Examples
- `python3 .../search_clinicaltrials.py --term melanoma --page-size 2`

## Provenance
- ClinicalTrials.gov API overview: https://clinicaltrials.gov/data-api/about-api

## Related skills
- `ncbi-pubmed-search`

Files in this skill

  • SKILL.md1.8 KB
  • assets/README.md75 B
  • assets/melanoma_studies.json92.7 KB
  • assets/melanoma_trials.json92.7 KB
  • examples/README.md282 B
  • metadata.yaml878 B
  • refs.md95 B
  • scripts/search_clinicaltrials.py1.7 KB
  • tests/README.md253 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.