Agent 生成器
- 作者仓库星标 401
- 作者更新于 实时读取
- 作者仓库 life-sciences
- 领域
- 设计与多媒体
- 兼容 Agent
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- 信任分
- 88 / 100 · 社区维护
- 作者 / 版本 / 许可
- @anthropics · 未声明 license
- Token 消耗评级
- 较高消耗
- 接入复杂程度
- 需简单配置
- 是否需要外部 API Key
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 底层运行要求
- Python
- 文件与系统权限
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 网络行为
- 仅限本地
- 安装命令数
- 26 条
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: clinical-trial-protocol-skill
description: Generate clinical trial protocols for medical devices or drugs. This skill should be used when u…
category: 设计与多媒体
runtime: Python
---
# clinical-trial-protocol-skill 输出预览
## PART A: 任务判断
- 适用问题:视觉内容、演示材料、信息图或设计交付。
- 输入要求:目标材料、限制条件、期望输出和验收方式。
- 证据边界:围绕“⚠️ EXECUTION CONTROL - READ THIS FIRST / Overview / What This Skill Does”读取原文规则,不把推断写成作者承诺。
## PART B: 执行结果
- **01** 任务判断:确认你的需求是否属于视觉内容、演示材料、信息图或设计交付,并标出输入、限制和预期结果。
- **02** 执行计划:优先按“⚠️ EXECUTION CONTROL - READ THIS FIRST / Overview / What This Skill Does”拆成步骤,说明每一步会读取什么、修改什么、产出什么。
- **03** 交付结果:给出可复制的命令、文件改动、检查清单或内容草稿,并说明如何继续迭代。
- **04** 风险边界:结合 读取文件、写入/修改文件、执行终端命令、主要在本地完成、通常不需要额外 API Key 给出执行前确认项。
## Running Rules
- 读取文件、写入/修改文件、执行终端命令;主要在本地完成;通常不需要额外 API Key。
- 先小样例验证,再放大到真实任务。
- 交付时同时给结果、检查口径和下一步迭代建议。 原文没有稳定的斜杠命令要求。安装验证后通常全局生效,直接在对话里点名这个 Skill 并描述任务即可。
告诉 Agent 目标文件或材料、期望结果、不可改范围、是否允许联网或执行命令。本 Skill 的权限画像是:读取文件、写入/修改文件、执行终端命令。
先用一个小任务确认它会围绕“⚠️ EXECUTION CONTROL - READ THIS FIRST / Overview / What This Skill Does”工作;涉及文件或命令时,先看 diff、日志、预览或测试结果。
检查最终产物是否包含明确结果、必要证据和下一步动作;如果输出泛泛而谈,就补充输入、边界和验收标准后重跑。
---
name: clinical-trial-protocol-skill
description: Generate clinical trial protocols for medical devices or drugs. This skill should be used when u…
category: 设计与多媒体
source: anthropics/life-sciences
---
# clinical-trial-protocol-skill
## 什么时候使用
- clinical-trial-protocol-skill 是设计与多媒体方向的技能,让 Agent 直接产出图、卡、视觉素材 适合处理界面、视觉、封面、信息图或演示材料交付,核心价值是把输入、判断、执行、验证和交付边界固定下来,避免…
- 面向视觉内容、演示材料、信息图或设计交付,优先处理能明确输入、步骤和验收标准的工作。
## 需要提供什么
- 目标材料、目录范围、期望结果和不可改动内容。
- 是否允许联网、执行命令、读写文件或调用外部服务。
## 执行规则
- 围绕「⚠️ EXECUTION CONTROL - READ THIS FIRST / Overview / What This Skill Does」组织步骤,不把推断写成作者事实。
- 读取文件、写入/修改文件、执行终端命令;主要在本地完成;通常不需要额外 API Key。
- 先跑小样例,确认结果可检查后再扩大任务范围。
## 输出要求
- 给出最终产物、关键证据、验证方式和下一步动作。
- 信息不足时标记 unknown,不编造命令、平台或依赖。 作者原文负责流程事实;仓库文件负责来源和命令;流狐只补充适用场景、限制和质量判断。
skill "clinical-trial-protocol-skill" {
输入层 -> 用户目标 + 目标文件 + 禁止范围 + 验收标准
上下文层 -> ⚠️ EXECUTION CONTROL - READ THIS FIRST / Overview / What This Skill Does
规则层 -> SKILL.md 触发条件 / 执行顺序 / 输出格式
运行层 -> Python | 读取文件、写入/修改文件、执行终端命令 | 主要在本地完成
安全层 -> 通常不需要额外 API Key + 小任务验证 + diff / 日志复核
输出层 -> 可复制结果 + 检查清单 + 下一步迭代
} Clinical Trial Protocol Skill
⚠️ EXECUTION CONTROL - READ THIS FIRST
CRITICAL: This orchestrator follows a SIMPLE START approach:
- Display the welcome message FIRST (shown in "Startup: Welcome and Confirmation" section below)
- Ask user to confirm they're ready to proceed - Wait for confirmation (yes/no)
- Jump directly into Full Workflow Logic - Automatically run subskills sequentially
- 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
- 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
- Research Similar Protocols - Find similar trials, FDA guidance, and published protocols
- Protocol Foundation - Generate protocol sections 1-6 (foundation, design, population)
- Protocol Intervention - Generate protocol sections 7-8 (intervention details)
- Protocol Operations - Generate protocol sections 9-12 (assessments, statistics, operations)
- 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
.mcpbfile 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:
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:
- Select "Research Only" from the main menu
- Provide intervention information
- Receive comprehensive research summary as formatted .md artifact
- Option to continue with full protocol generation or exit
📄 Full Protocol Mode:
- Select "Full Protocol" from the main menu
- Guide you through all steps sequentially (Steps 0-5)
- Pause after Step 4 to review the draft protocol
- 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.jsonexists: 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):
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"
- Step execution method (ON-DEMAND LOADING): When a step is ready to execute (NOT before), read the subskill markdown file and execute ALL instructions within it
- Step-to-file mapping:
- Step 0:
references/00-initialize-intervention.md(collect intervention info) - Step 1:
references/01-research-protocols.md(clinical research and FDA guidance)
- Step 0:
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.mdDisplay 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):
- Set
execution_mode = "full_protocol" - Continue to Full Workflow Logic starting from Step 2 (since 0 and 1 are complete)
Option 2 Logic (Exit):
- Display: "✓ Research summary saved. Restart the skill anytime to continue with protocol generation."
- Exit orchestrator gracefully
Full Workflow Logic
Step 1: Check for Existing Waypoints
- If
waypoints/intervention_metadata.jsonexists: Load metadata, checkcompleted_stepsarray, resume from next incomplete step - If no metadata exists: Start from Step 0
Step 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"
- Step execution method (ON-DEMAND LOADING): When a step is ready to execute (NOT before), read the subskill markdown file and execute ALL instructions within it
- IMPORTANT: Do NOT read subskill files in advance. Only read them at the moment of execution.
- Step-to-file mapping:
- Step 0:
references/00-initialize-intervention.md(read when Step 0 executes) - Step 1:
references/01-research-protocols.md(read when Step 1 executes) - Step 2:
references/02-protocol-foundation.md(read when Step 2 executes - sections 1-6) - Step 3:
references/03-protocol-intervention.md(read when Step 3 executes - sections 7-8) - Step 4:
references/04-protocol-operations.md(read when Step 4 executes - sections 9-12) - Step 5:
references/05-concatenate-protocol.md(read when Step 5 executes - final concatenation)
- Step 0:
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):
- Execute Step 5 by reading and following
references/05-concatenate-protocol.md - Step 5 will concatenate all section files into final protocol document
- Continue to Step 3 (Final Summary) after Step 5 completes
Option 3 Logic (Exit):
- Display: "✓ Protocol sections saved. You can resume with Step 5 anytime to concatenate."
- Exit orchestrator gracefully
Step 3: Final Summary
Display completion message with:
- Intervention name, type (device/drug), indication
- Protocol details (design, sample size, endpoints, duration)
- All completed steps list
- Final deliverable: Complete protocol markdown file location (waypoints/protocol_complete.md)
- Waypoint files list for reference
- Important disclaimers (FDA Pre-Sub, biostatistician review, IRB approval required)
- Thank you message
Technical Details
Waypoint File Formats
JSON Waypoints (Steps 0, 1):
- Structured data for programmatic access
- Small file sizes (1-15KB)
- Easy to parse and reference
Markdown Waypoints (Steps 2, 3, 4):
- Step 2:
02_protocol_foundation.md(Sections 1-6) - Step 3:
03_protocol_intervention.md(Sections 7-8) - Step 4:
04_protocol_operations.md(Sections 9-12) - Step 4:
02_protocol_draft.md(concatenated complete protocol) - Human-readable protocol documents
- Can be directly edited by users
- Individual section files preserved for easier regeneration
Data Minimization Strategy
Each step implements aggressive summarization:
- Keep: Top-N results (5-10 max)
- Keep: Key facts and IDs (NCT numbers, endpoint types)
- Keep: Concise rationale (2-3 sentences)
- Discard: Raw MCP query results (not needed after analysis)
- Discard: Full FDA guidance text (only excerpts/citations kept)
- Discard: Lower-ranked search results
Step Independence
Each subskill is designed to:
- Read only from waypoint files (not conversation history)
- Produce complete output in single execution
- Not depend on conversation context from previous steps
- Be runnable standalone
Error Handling
MCP Server Unavailable
- Detected in: Step 1
- Action: Display error with installation instructions
- Allow user to retry after installing MCP server
- No fallback available - MCP server is required for protocol research
Step Fails or Returns Error
- Action: Display error message from subskill
- Ask user: "Retry step? (Yes/No)"
- Yes: Re-run step
- No: Save current state, exit orchestrator
User Interruption
- All progress saved in waypoint files
- User can resume anytime by restarting the skill
- Workflow automatically detects completed steps and resumes from next step
- No data loss
Disclaimers
⚠️ IMPORTANT: This protocol generation tool provides preliminary clinical study protocol based on NIH/FDA guidelines and similar trials. It does NOT constitute:
- Official FDA or IRB determination or approval
- Medical, legal, or regulatory advice
- Substitute for professional biostatistician review
- Substitute for FDA Pre-Submission meeting
- Guarantee of regulatory or clinical success
REQUIRED before proceeding with clinical study:
- Biostatistician review and sample size validation
- FDA Pre-Submission meeting (Q-Submission for devices, Pre-IND for drugs)
- IRB review and approval
- Clinical expert and regulatory consultant engagement
- Legal review of protocol and informed consent
- Site investigator review and input
- Sponsor completion of all [TBD] items in protocol
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.
Implementation Requirements
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:
- Research Only Mode (Option 1):
- Execute Research Only Workflow Logic (Steps 0-1 only)
- Generate formatted research summary as .md artifact
- Offer option to continue with full protocol or exit
- Full Protocol Mode (Option 2):
- Execute Full Workflow Logic (Steps 0-5)
- Check for existing waypoints and resume from last completed step
- OR start from Step 0 if no waypoints exist
- Execute all steps sequentially until complete
- Research Only Mode (Option 1):
For each step execution (LAZY LOADING - On-Demand Only):
- ONLY when a step is ready to execute, read the corresponding subskill file
- Do NOT read subskill files in advance or "to prepare"
- Example: When Step 1 needs to run, THEN read
references/01-research-protocols.mdand follow its instructions - For protocol development: Execute Steps 2, 3, 4 sequentially in order
- Do NOT try to execute multiple steps in parallel - run sequentially
- Read each step's subskill file only when that specific step is about to execute
Research summary artifact generation (Research Only Mode):
- After Step 1 completes, read waypoint files
- Generate comprehensive, well-formatted markdown summary
- Save to
waypoints/research_summary.md - Display completion message with key findings
Handle errors gracefully:
- If a step fails, give user option to retry or exit
- If MCP server unavailable, explain how to install
- All progress is saved automatically in waypoints
Track progress:
- Update
waypoints/intervention_metadata.jsonafter each step - Show progress indicators to user (e.g., "Progress: 3/6 steps complete" or "Progress: 2/2 research steps complete")
- Provide clear feedback on what's happening
- Update
Final output:
- Research Only: Display research summary location and offer to continue with full protocol
- Full Protocol: Congratulate user, display protocol location and next steps
- Remind user of disclaimers
先判断是否适合
作者设计意图
作者的方法与取舍
边界和复核