Rct Experimental Design Expert logo

Rct Experimental Design Expert

Community
ptreezh
rct-experimental-design-expert

Randomized Controlled Trial (RCT) design expert. Provides randomization procedures, control group design, blind/mask protocols, sample size calculation, and causal inference framework. Suitable for clinical trials, experimental research, and impact evaluation.

Overview

Publisherptreezh
Repositorysscisubagent-skills
Skill namerct-experimental-design-expert
Stars
45
Forks
7
Bundled files
6
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 6 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by ptreezh on GitHub. Read the source before you install it.

Installation

Install the Rct Experimental Design Expert AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/ptreezh/sscisubagent-skills/tree/main/skills/rct-experimental-design-expert
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ptreezh/sscisubagent-skills.git /tmp/sscisubagent-skills
mkdir -p .claude/skills
cp -r /tmp/sscisubagent-skills/skills/rct-experimental-design-expert .claude/skills/rct-experimental-design-expert
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Rct Experimental Design Expert in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Rct Experimental Design Expert on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Rct Experimental Design Expert is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

------|---------|------| | 平行设计 | 最常用 | 两组同时进行,比较干预效果 | | 交叉设计 | 慢性病、稳定状态 | 每个受试者接受多种干预 | | 因子设计 | 多因素研究 | 同时评估多个干预组合 | | 集群随机 | 群体干预 | 以群体为单位随机化 | | 适应性设计 | 灵活研究 | 根据中期结果调整设计 |

设计流程

步骤1: 研究问题定义 (PICO框架)
   ↓
步骤2: 设计类型选择
   ↓
步骤3: 样本量计算
   ↓
步骤4: 随机化方案
   ↓
步骤5: 盲法设计
   ↓
步骤6: 结局指标选择
   ↓
步骤7: 数据收集计划
   ↓
步骤8: 统计分析计划
   ↓
步骤9: 伦理审查准备
   ↓
步骤10: 试验注册

PICO框架

要素定义示例
P (Population)目标人群2型糖尿病患者
I (Intervention)干预措施新型口服药物
C (Comparison)对照措施安慰剂/标准治疗
O (Outcome)结局指标HbA1c降低幅度

样本量计算

连续结局变量

$$n = \frac{2(Z_{\alpha/2} + Z_{\beta})^2 \sigma^2}{\Delta^2}$$

二分类结局变量

$$n = \frac{(Z_{\alpha/2} + Z_{\beta})^2 \times [p_1(1-p_1) + p_2(1-p_2)]}{(p_1 - p_2)^2}$$

关键参数

参数说明典型值
αI型错误率0.05
1-β检验效能0.80-0.90
Δ最小临床重要差异研究确定
σ标准差估计或文献
脱落率预计失访10-20%

随机化方法

方法特点适用场景
简单随机完全随机大样本研究
区组随机组间平衡常用
分层随机控制混杂重要预后因素
最小化法动态平衡小样本研究
协变量自适应实时平衡多中心研究

盲法设计

类型干预提供者受试者结局评估者数据分析师
开放试验否否否否
单盲是/否是否否
双盲是是是否
三盲是是是是

分析原则

意向性分析(ITT)

  • 所有随机分配的受试者都纳入分析
  • 保持随机化的完整性
  • 主要分析应采用ITT

符合方案分析(PP)

  • 仅分析完成研究的受试者
  • 可能引入偏倚
  • 敏感性分析使用

处理效应估计

  • 连续结局:均值差异,95% CI
  • 二分类结局:相对风险(RR),比值比(OR),风险差(RD)
  • 时间-事件结局:风险比(HR)

CONSORT报告清单

项目内容
标题明确说明"随机对照试验"
摘要结构化摘要
背景科学背景和原理
方法-参与者入选/排除标准
方法-干预干预详情
方法-结局主要/次要结局
方法-样本量计算方法
方法-随机化序列生成、隐藏
方法-盲法实施方法
结果-流程受试者流程图
结果-基线人口学特征
结果-结局主要结果

使用示例

用户: 设计一个评估新型降压药疗效的RCT

AI: 我将为您设计一个符合CONSORT标准的平行随机对照试验:

## 研究设计概要

**设计类型**: 平行、双盲、安慰剂对照RCT

**PICO框架**:
- P: 18-75岁原发性高血压患者
- I: 新型降压药 10mg qd
- C: 安慰剂
- O: 8周后收缩压下降幅度

**样本量计算**:
- 预期差异: 5mmHg
- 标准差: 10mmHg
- α = 0.05, β = 0.20
- n = 64/组 × 1.2(脱落率) = 77/组

**随机化**: 区组随机化,区组大小4

**盲法**: 双盲,胶囊外观一致

[继续详细设计...]

🚫 绝对禁止原则

使用前必读:以下原则是不可逾越的红线,违反将导致RCT结论失效。

  1. 禁止随机化不充分 — 随机序列生成和分配隐藏不完善,导致选择性偏倚和基线不平衡
  2. 禁止主要分析不采用ITT原则 — 意向性分析是RCT的金标准,违反ITT的符合方案分析(PP)会高估治疗效果
  3. 禁止盲法实施不完整 — 声称"双盲"但实际无法实施或破盲未报告,导致实施偏倚
  4. 禁止样本量计算依据不充分 — 不报告α、β、效应量、脱落率的设定依据,导致检验力不足
  5. 禁止主要结局事后变更 — 试验过程中更改主要结局指标,导致假阳性风险增加(p-hacking)
  6. 禁止未进行注册和方案公开 — 研究未在公共注册平台(如ChiCTR、ClinicalTrials.gov)预先注册,导致发表偏倚和选择性报告

✅ 质量标准

完整性

  • 必做项清单完成度 ≥ 90%
  • CONSORT清单完成度高
  • 研究注册信息完整

方法论

  • 理论框架与数据一致性 ≥ 90%
  • 分析步骤可复现性高
  • 随机化和盲法规范

深度

  • 核心维度覆盖 ≥ 80%
  • ITT + PP双分析
  • 敏感性分析完整

🖥️ Python 工具

工具链

#工具名称功能描述
1sample_size_calculator.pyRCT样本量计算(连续/二分类结局),支持α、β、效应量、脱落率参数
2randomization_generator.py随机化序列生成(简单/区组/分层/最小化),支持分配隐藏
3consort_checker.pyCONSORT清单检查,支持2010版25项清单对照
4iit_analyzer.py意向性分析,支持ITT、PP、MI多重插补分析

CLI用法

bash
python tools/sample_size_calculator.py --continuous --mean-diff 5 --std-dev 10 --power 0.8
python tools/randomization_generator.py --method block --n 200 --block-size 4

参考文献

  1. Schulz, K.F., et al. (2010). CONSORT 2010 Statement. BMJ, 340, c332.
  2. Chan, A.W., et al. (2013). SPIRIT 2013 Statement. Annals of Internal Medicine, 158(3), 200-207.
  3. Friedman, L.M., et al. (2015). Fundamentals of Clinical Trials. 5th ed. Springer.
  4. ICH-GCP E6(R2). (2016). Guideline for Good Clinical Practice.

技能版本: 5.0.0
方法论标准: CONSORT 2010, SPIRIT 2013
创建时间: 2026-03-15

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Rct Experimental Design Expert AI skill do?

Randomized Controlled Trial (RCT) design expert. Provides randomization procedures, control group design, blind/mask protocols, sample size calculation, and causal inference framework. Suitable for clinical trials, experimental research, and impact evaluation.

Why use Rct Experimental Design Expert on TypingMind?

Because you install it once and use it with any model. Rct Experimental Design Expert is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Rct Experimental Design Expert in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ptreezh/sscisubagent-skills/tree/main/skills/rct-experimental-design-expert. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Rct Experimental Design Expert?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Rct Experimental Design Expert?

As many as you like. As long as a model supports skills, you can use Rct Experimental Design Expert with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Rct Experimental Design Expert AI skill free?

Yes. It is published on GitHub by ptreezh under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇