Generate clinical trial protocols for medical devices or drugs. This skill should be used when users say "Create a clinical trial protocol", "Generate protocol for [device/drug]", "Help me design a clinical study", "Research similar trials for [intervention]", or when developing FDA submission documentation for investigational products.
Generates clinical trial protocols for medical devices or drugs through a structured workflow with research and regulatory analysis.
/plugin marketplace add fergupa/claude_plugins/plugin install bio-research@knowledge-work-pluginsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
LICENSE.txtassets/FDA-Clinical-Protocol-Template.mdreferences/00-initialize-intervention.mdreferences/01-research-protocols.mdreferences/02-protocol-foundation.mdreferences/03-protocol-intervention.mdreferences/04-protocol-operations.mdreferences/05-concatenate-protocol.mdscripts/sample_size_calculator.pyCRITICAL: This orchestrator follows a SIMPLE START approach:
Why this matters:
This skill generates clinical trial protocols for medical devices or drugs using a modular, waypoint-based architecture
Starting with an intervention idea (device or drug), this orchestrated workflow offers two modes:
π¬ Research Only Mode (Steps 0-1): 0. Initialize Intervention - Collect device or drug information
π Full Protocol Mode (Steps 0-5): 0. Initialize Intervention - Collect device or drug information
All analysis data is stored in waypoints/ directory as JSON/markdown files:
waypoints/
βββ intervention_metadata.json # Intervention info, status, initial context
βββ 01_clinical_research_summary.json # Similar trials, FDA guidance, recommendations
βββ 02_protocol_foundation.md # Protocol sections 1-6 (Step 2)
βββ 03_protocol_intervention.md # Protocol sections 7-8 (Step 3)
βββ 04_protocol_operations.md # Protocol sections 9-12 (Step 4)
βββ 02_protocol_draft.md # Complete protocol (concatenated in Step 4)
βββ 02_protocol_metadata.json # Protocol metadata
βββ 02_sample_size_calculation.json # Statistical sample size calculation
Rich Initial Context Support:
Users can provide substantial documentation, technical specifications, or research data when initializing the intervention (Step 0). This is preserved in intervention_metadata.json under the initial_context field. Later steps reference this context for more informed protocol development.
Each step is an independent skill in references/ directory:
references/
βββ 00-initialize-intervention.md # Collect device or drug information
βββ 01-research-protocols.md # Clinical trials research and FDA guidance
βββ 02-protocol-foundation.md # Protocol sections 1-6 (foundation, design, population)
βββ 03-protocol-intervention.md # Protocol sections 7-8 (intervention details)
βββ 04-protocol-operations.md # Protocol sections 9-12 (assessments, statistics, operations)
βββ 05-generate-document.md # NIH Protocol generation
scripts/
βββ sample_size_calculator.py # Statistical power analysis (validated)
Installation:
.mcpb file into Claude DesktopAvailable Tools:
search_clinical_trials - Search by:
condition - Disease or condition (e.g., "pancreatic cancer") intervention - Drug, device, or treatment (e.g., "pembrolizumab", "CAR-T") sponsor - Sponsor or collaborator name (e.g., "Pfizer", "NIH") location - City, state, or country (e.g., "California", "Boston") status - "recruiting" (default), "active", "completed", "all" phase - Trial phase: "1", "2", "3", "4", "early_phase1" max_results - Default 25, max 100
get_trial_details - Get comprehensive details for a specific trial using its nct_id (e.g., "NCT04267848"). Returns eligibility criteria, outcomes, study design, and contact information.
Verification: Step 1 will automatically test MCP connectivity at startup.
Purpose: FDA regulatory pathway research via explicit database URLs
Sources:
Template Files: Any .md files in the assets/ directory
Purpose: Reference template for protocol structure and content guidance. The system automatically detects available templates and uses them dynamically.
Installation:
pip install -r requirements.txt
Dependencies:
Purpose: Accurate statistical sample size calculations for clinical protocols
Simply invoke the skill and select your desired mode:
π¬ Research Only Mode:
π Full Protocol Mode:
Resume Capability: If interrupted, simply restart the skill and it will automatically resume from your last completed step.
When skill is invoked, display the following message:
𧬠CLINICAL TRIAL PROTOCOL
Welcome! This skill generates clinical trial protocols for medical devices or drugs.
[If waypoints/intervention_metadata.json exists:]
β Found existing protocol in progress: [Intervention Name]
Type: [Device/Drug]
Completed: [List of completed steps]
Next: [Next step to execute]
π SELECT MODE:
1. π¬ Research Only - Run clinical research analysis (Steps 0-1)
β’ Collect intervention information
β’ Research similar clinical trials
β’ Find FDA guidance and regulatory pathways
β’ Generate comprehensive research summary as .md artifact
2. π Full Protocol - Generate complete clinical trial protocol (Steps 0-5)
β’ Everything in Research Only, plus:
β’ Generate all protocol sections
β’ Create professional protocol document
3. β Exit
Please select an option (1, 2, or 3):
π STOP and WAIT for user selection (1, 2, or 3)
execution_mode = "research_only" and proceed to Research Only Workflow Logicexecution_mode = "full_protocol" and proceed to Full Workflow LogicThis workflow executes only Steps 0 and 1, then generates a formatted research summary artifact.
Step 1: Check for Existing Waypoints
waypoints/intervention_metadata.json exists: Load metadata, check if steps 0 and 1 are already completeStep 2: Execute Research Steps (0 and 1)
For each step (0, 1):
Check completion status: If step already completed in metadata, skip with "β Step [X] already complete"
Execute step:
references/00-initialize-intervention.md (collect intervention info)references/01-research-protocols.md (clinical research and FDA guidance)Handle errors: If step fails, ask user to retry or exit. Save current state for resume capability.
Step 3: Generate Research Summary Artifact
After Step 1 completes successfully:
Read waypoint files:
waypoints/intervention_metadata.json (intervention details)waypoints/01_clinical_research_summary.json (research findings)Create formatted markdown summary: Generate a comprehensive, well-formatted research summary as a markdown artifact with the following structure:
# Clinical Research Summary: [Intervention Name]
## Intervention Overview
- **Type:** [Device/Drug]
- **Indication:** [Target condition/disease]
- **Description:** [Brief intervention description]
- **Mechanism of Action:** [How it works]
## Similar Clinical Trials
[List top 5-10 similar trials with NCT ID, title, phase, status, key findings]
## FDA Regulatory Pathway
- **Recommended Pathway:** [510(k), PMA, De Novo, IND, NDA, BLA, etc.]
- **Regulatory Basis:** [Rationale for pathway selection]
- **Key Requirements:** [Major regulatory considerations]
## FDA Guidance Documents
[List relevant FDA guidance documents with links and key excerpts]
## Study Design Recommendations
- **Suggested Study Type:** [RCT, single-arm, etc.]
- **Phase Recommendation:** [Phase 1, 2, 3, etc.]
- **Primary Endpoint Suggestions:** [Based on similar trials]
- **Sample Size Considerations:** [Preliminary thoughts]
## Key Insights and Recommendations
[Synthesized recommendations for protocol development]
## Next Steps
[If user wants to proceed with full protocol development]
---
*Generated by Clinical Trial Protocol Skill*
*Date: [Current date]*
Save artifact: Write the formatted summary to waypoints/research_summary.md
Display completion message:
β
RESEARCH COMPLETE
Research Summary Generated: waypoints/research_summary.md
π Key Findings:
β’ Similar Trials Found: [X trials]
β’ Recommended Pathway: [Pathway name]
β’ FDA Guidance Documents: [X documents identified]
β’ Study Design: [Recommended design]
π The research summary has been saved as a formatted markdown artifact.
Would you like to:
1. Continue with full protocol generation (steps 2-5)
2. Exit and review research summary
Option 1 Logic (Continue to Full Protocol):
execution_mode = "full_protocol"Option 2 Logic (Exit):
Step 1: Check for Existing Waypoints
waypoints/intervention_metadata.json exists: Load metadata, check completed_steps array, resume from next incomplete stepStep 2: Execute Steps in Order
For each step (0, 1, 2, 3, 4, 5):
Check completion status: If step already completed in metadata, skip with "β Step [X] already complete"
Execute step: Display "βΆ Executing Step [X]...", read and follow the corresponding subskill file instructions, wait for completion, display "β Step [X] complete"
references/00-initialize-intervention.md (read when Step 0 executes)references/01-research-protocols.md (read when Step 1 executes)references/02-protocol-foundation.md (read when Step 2 executes - sections 1-6)references/03-protocol-intervention.md (read when Step 3 executes - sections 7-8)references/04-protocol-operations.md (read when Step 4 executes - sections 9-12)references/05-concatenate-protocol.md (read when Step 5 executes - final concatenation)Handle errors: If step fails, ask user to retry or exit. Save current state for resume capability.
Display progress: "Progress: [X/6] steps complete", show estimated remaining time
Step 4 Completion Pause: After Step 4 completes, pause and display the Protocol Completion Menu (see below). Wait for user selection before proceeding.
Step 2.5: Protocol Completion Menu
After Step 4 completes successfully, display the EXACT menu below (do not improvise or create alternative options):
β
PROTOCOL COMPLETE: Protocol Draft Generated
Protocol Details:
β’ Study Design: [Design from metadata]
β’ Sample Size: [N subjects from metadata]
β’ Primary Endpoint: [Endpoint from metadata]
β’ Study Duration: [Duration from metadata]
Protocol file: waypoints/02_protocol_draft.md
File size: [Size in KB]
π WHAT WOULD YOU LIKE TO DO NEXT?
1. π Review Protocol in Artifact - click on the .md file above
2. π Concatenate Final Protocol (Step 5)
3. βΈοΈ Exit and Review Later
Option 1 Logic (Review in Artifact): Pause, let user open the section files, wait for further instruction
Option 2 Logic (Concatenate Protocol):
references/05-concatenate-protocol.mdOption 3 Logic (Exit):
Step 3: Final Summary
Display completion message with:
JSON Waypoints (Steps 0, 1):
Markdown Waypoints (Steps 2, 3, 4):
02_protocol_foundation.md (Sections 1-6)03_protocol_intervention.md (Sections 7-8)04_protocol_operations.md (Sections 9-12)02_protocol_draft.md (concatenated complete protocol)Each step implements aggressive summarization:
Each subskill is designed to:
β οΈ IMPORTANT: This protocol generation tool provides preliminary clinical study protocol based on NIH/FDA guidelines and similar trials. It does NOT constitute:
REQUIRED before proceeding with clinical study:
PROFESSIONAL CONSULTATION STRONGLY RECOMMENDED
Clinical trial protocols are complex, high-stakes documents requiring expertise across multiple disciplines. Professional consultation with clinical trial experts, biostatisticians, and regulatory affairs specialists is essential before proceeding with clinical study planning.
When this skill is invoked:
Display the welcome message with mode selection (shown in "Startup: Welcome and Mode Selection" section)
Wait for user mode selection (1: Research Only, 2: Full Protocol, 3: Exit)
Execute based on selected mode:
For each step execution (LAZY LOADING - On-Demand Only):
references/01-research-protocols.md and follow its instructionsResearch summary artifact generation (Research Only Mode):
waypoints/research_summary.mdHandle errors gracefully:
Track progress:
waypoints/intervention_metadata.json after each stepFinal output:
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.