Clinical trials analytics
Clinical trials analytics skill. Trial design comparison, enrollment simulation, interim analysis, survival analysis, and adverse event signal detection from ClinicalTrials.gov data.
Use This Skill When
- Trial design comparison.
- Enrollment simulation.
- Interim analysis.
- Survival analysis.
- Adverse event signal detection from ClinicalTrials.gov data.
Required Inputs
- Research objective, decision target, or hypothesis.
- Available data, source constraints, and domain assumptions.
- Required outputs, success metrics, and deadline or reproducibility constraints.
Workflow
- Confirm scope, assumptions, and the exact artifact set to save.
- Apply the narrowest domain method that answers the request with defensible evidence.
- Save code, tables, figures, and intermediate outputs to files instead of chat-only output.
- State limitations, uncertainty, and any validation or sensitivity checks performed.
- Append skill selection, handoff I/O, and file writes to
logs/process-log.jsonl.
Deliverables
report.md: concise method, results, interpretation, and file inventory in the user's language.
results/: structured outputs, metrics, model artifacts, or extracted findings.
figures/: English-only charts, diagrams, or panels when visual output is needed.
data/: processed or derived datasets when transformation occurs.
Available Tools (MCP)
External tools available via ToolUniverse MCP server.
Falls back to Python requests + public REST APIs when MCP is unavailable.
| Source |
Tool |
Description |
| ClinicalTrials.gov |
ClinicalTrials_search |
ClinicalTrials.gov API |
| ClinicalTrials.gov |
ClinicalTrials_get_study |
ClinicalTrials.gov API |
Quality Gates
If any gate fails: identify the specific failing check, fix the issue, and re-validate before proceeding.
Gotchas
- Patient data must be de-identified before analysis. Check for quasi-identifiers (age + zip + diagnosis)
- Clinical endpoints must distinguish primary from secondary outcomes. Multiple primaries require alpha correction
- Drug interaction databases have incomplete coverage. Cross-reference at least two databases for safety checks
Validation Loop
- Execute analysis and generate outputs
- Check:
- Method selection matches the research question and stated assumptions
- All outputs are saved to files (no chat-only results)
- Limitations and uncertainty are explicitly stated
logs/process-log.jsonl is updated with execution trace
- If any check fails:
- Identify the failing gate
- Fix the specific issue
- Re-run validation
- Proceed only after all gates pass
1---2name: co-scientist-clinical-trials-analytics3description: Clinical trials analytics skill. Trial design comparison, enrollment simulation, interim analysis, survival analysis, and adverse event signal detection from ClinicalTrials.gov data. Use when working with trial design comparison, enrollment simulation, interim analysis.4---56# Clinical trials analytics78Clinical trials analytics skill. Trial design comparison, enrollment simulation, interim analysis, survival analysis, and adverse event signal detection from ClinicalTrials.gov data.910## Use This Skill When1112- Trial design comparison.13- Enrollment simulation.14- Interim analysis.15- Survival analysis.16- Adverse event signal detection from ClinicalTrials.gov data.1718## Required Inputs1920- Research objective, decision target, or hypothesis.21- Available data, source constraints, and domain assumptions.22- Required outputs, success metrics, and deadline or reproducibility constraints.2324## Workflow25261. Confirm scope, assumptions, and the exact artifact set to save.272. Apply the narrowest domain method that answers the request with defensible evidence.283. Save code, tables, figures, and intermediate outputs to files instead of chat-only output.294. State limitations, uncertainty, and any validation or sensitivity checks performed.305. Append skill selection, handoff I/O, and file writes to `logs/process-log.jsonl`.3132## Deliverables3334- `report.md`: concise method, results, interpretation, and file inventory in the user's language.35- `results/`: structured outputs, metrics, model artifacts, or extracted findings.36- `figures/`: English-only charts, diagrams, or panels when visual output is needed.37- `data/`: processed or derived datasets when transformation occurs.3839## Available Tools (MCP)4041> External tools available via [ToolUniverse](https://github.com/mims-harvard/ToolUniverse) MCP server.42> Falls back to Python `requests` + public REST APIs when MCP is unavailable.4344| Source | Tool | Description |45|--------|------|-------------|46| ClinicalTrials.gov | `ClinicalTrials_search` | ClinicalTrials.gov API |47| ClinicalTrials.gov | `ClinicalTrials_get_study` | ClinicalTrials.gov API |4849## Quality Gates5051- [ ] The selected method matches the scientific question and stated assumptions.52- [ ] Outputs are reproducible, saved to files, and traceable from inputs to conclusions.53- [ ] Missing data, uncertainty, bias, and hard limits are made explicit.54- [ ] `report.md` and `logs/process-log.jsonl` reference the generated artifacts.55- [ ] No essential result remains chat-only.5657If any gate fails: identify the specific failing check, fix the issue, and re-validate before proceeding.5859## Gotchas6061- Patient data must be de-identified before analysis. Check for quasi-identifiers (age + zip + diagnosis)62- Clinical endpoints must distinguish primary from secondary outcomes. Multiple primaries require alpha correction63- Drug interaction databases have incomplete coverage. Cross-reference at least two databases for safety checks6465## Validation Loop66671. Execute analysis and generate outputs682. Check:69 - Method selection matches the research question and stated assumptions70 - All outputs are saved to files (no chat-only results)71 - Limitations and uncertainty are explicitly stated72 - `logs/process-log.jsonl` is updated with execution trace733. If any check fails:74 - Identify the failing gate75 - Fix the specific issue76 - Re-run validation774. Proceed only after all gates pass