clinical-trial-protocol-skill
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.
What this skill does
# Clinical Trial Protocol Skill ## โ ๏ธ EXECUTION CONTROL - READ THIS FIRST **CRITICAL: This orchestrator follows a SIMPLE START approach:** 1. **Display the welcome message FIRST** (shown in "Startup: Welcome and Confirmation" section below) 2. **Ask user to confirm they're ready to proceed** - Wait for confirmation (yes/no) 3. **Jump directly into Full Workflow Logic** - Automatically run subskills sequentially 4. **Do NOT pre-read subskill files** - Subskills are loaded on-demand only when their step executes **Why this matters:** - Pre-reading all subskills wastes context and memory - Subskills should only load when actually needed during execution - Workflow automatically handles resuming from existing waypoints ## Overview This skill generates clinical trial protocols for **medical devices or drugs** using a **modular, waypoint-based architecture** ## What This Skill Does 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 1. **Research Similar Protocols** - Find similar trials, FDA guidance, and published protocols - **Deliverable:** Comprehensive research summary as formatted .md artifact **๐ Full Protocol Mode (Steps 0-5):** 0. **Initialize Intervention** - Collect device or drug information 1. **Research Similar Protocols** - Find similar trials, FDA guidance, and published protocols 2. **Protocol Foundation** - Generate protocol sections 1-6 (foundation, design, population) 3. **Protocol Intervention** - Generate protocol sections 7-8 (intervention details) 4. **Protocol Operations** - Generate protocol sections 9-12 (assessments, statistics, operations) 5. **Generate Protocol** - Create professional file ready for stakeholder review ## Architecture ### Waypoint-Based Design 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. ### Modular Subskill Steps 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 ``` ### Utility Scripts ``` scripts/ โโโ sample_size_calculator.py # Statistical power analysis (validated) ``` ## Prerequisites ### 1. clinical trials MCP Server (Required) **Installation:** - Install via drag-and-drop `.mcpb` file into Claude Desktop - Or configure manually in Claude Desktop settings **Available 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. ### 2. FDA Database Access (Built-in) **Purpose:** FDA regulatory pathway research via explicit database URLs **Sources:** - Step 1: FDA device/drug databases (510(k), PMA, De Novo, Drugs@FDA, Orange Book, Purple Book) - All sources use direct FDA database URLs - no generic web searches ### 3. Clinical Protocol Template **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. ### 4. Python Dependencies (Required for Step 2) **Installation:** ```bash pip install -r requirements.txt ``` **Dependencies:** - scipy >= 1.11.0 (statistical calculations) - numpy >= 1.24.0 (numerical operations) **Purpose:** Accurate statistical sample size calculations for clinical protocols ## How to Use Simply invoke the skill and select your desired mode: **๐ฌ Research Only Mode:** 1. Select "Research Only" from the main menu 2. Provide intervention information 3. Receive comprehensive research summary as formatted .md artifact 4. Option to continue with full protocol generation or exit **๐ Full Protocol Mode:** 1. Select "Full Protocol" from the main menu 2. Guide you through all steps sequentially (Steps 0-5) 3. Pause after Step 4 to review the draft protocol 4. Generate the final protocol document when ready **Resume Capability:** If interrupted, simply restart the skill and it will automatically resume from your last completed step. ## Execution Flow ### Startup: Welcome and Mode Selection 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)** - If **1 (Research Only)**: Set `execution_mode = "research_only"` and proceed to Research Only Workflow Logic - If **2 (Full Protocol)**: Set `execution_mode = "full_protocol"` and proceed to Full Workflow Logic - If **3 (Exit)**: Exit gracefully with "No problem! Restart the skill anytime to continue." --- ### Research Only Workflow Logic **This workflow executes only Steps 0 and 1, then generates a formatted research summary artifact.** **Step 1: Check for Existing Waypoints** - If `waypoints/intervention_metadata.json` exists: Load metadata, check if steps 0 and 1 are already complete - If no metadata exists: Start from Step 0 **Step 2: Execute Research Steps (0 and 1)** For each step (0, 1): 1. **Check completion status:** If step already completed in metadata, skip with "โ Step [X] already complete" 2. **Execute step:** - Display "โถ Executing Step [X].
Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context โ no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes โ information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development โ guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.