classify_trial — Claude Code prompt: what it does, how to install
The classify_trial Claude Code prompt classifies clinical trial records for a specified indication. It takes one registry entry and returns data in a JSON schema.
no license ★ 654 updated 2026-11-09
/plugin marketplace add anthropics/life-sciences
/plugin install clinical-trial-forecast@life-sciencesWhat classify_trial does
The prompt turns a single trial record into a structured classification. It identifies the trial type, interventions, population and design, then assesses the record against a supplied endpoint family and reference population. Mechanism labels come from a provided vocabulary, and the result follows a JSON schema.
The template takes an indication and its aliases, mechanism classes, analog features, endpoint details, a reference population and the registry record. It converts stated months or days to weeks for duration and endpoint timing. It must not fill gaps with invented facts; unclear details can be represented as null or marked “unclear”.
What it helps with
- classify a trial record for a specified indication
- extract investigational and comparator products
- compare enrolled participants with a reference population
- convert trial duration and endpoint timing to weeks
Example prompts for the agent
- Classify this trial record for the indication “{{indication}}” and fill the JSON schema.
- Extract the interventions, population and endpoints from this ClinicalTrials.gov entry.
- Assess how the enrolled population matches the reference group and write a one-line trial summary.
How to install classify_trial
1Plugin marketplace
/plugin marketplace add anthropics/life-sciences/plugin install clinical-trial-forecast@life-sciences2Manually: put the files in place
.claude/commands/classify_trial.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about classify_trial
How do I install classify_trial in Claude Code?
Run /plugin marketplace add anthropics/life-sciences, then /plugin install clinical-trial-forecast@life-sciences. The command file is .claude/commands/classify_trial.md.
What does classify_trial do?
It classifies one clinical trial record into a JSON schema, extracting details about interventions, population and design and evaluating the specified endpoint family.
What does classify_trial need as input?
It needs one registry record plus the template values: an indication and aliases, mechanism classes, analog features, endpoint details and a reference population.