Epi Study Design logo

Epi Study Design

Community
KangWang42
epi-study-design

制定或审查流行病学研究设计、estimand、终点、纳排、偏倚控制、样本量/精度、PROTOCOL 和 SAP。不用于目录初始化、模型实跑或论文结果写作。

Overview

PublisherKangWang42
RepositoryEpiAgentKit
Skill nameepi-study-design
Stars
29
Forks
2
Bundled files
1
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.

  • 1 bundled files

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

  • Open source

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

Installation

Install the Epi Study Design 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/KangWang42/EpiAgentKit/tree/main/skills/epi-study-design
  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/KangWang42/EpiAgentKit.git /tmp/EpiAgentKit
mkdir -p .claude/skills
cp -r /tmp/EpiAgentKit/skills/epi-study-design .claude/skills/epi-study-design
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Epi Study Design 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 Epi Study Design 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 Epi Study Design 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. 界定任务

  1. 先对齐 biostat-principles,判定轻量设计咨询或正式项目。
  2. 读取用户材料;正式项目同时读取项目 CLAUDE.md、BACKLOG.md、已有 PROTOCOL.md、SAP.md 和 DECISIONS.md。
  3. 判断本次是新设计、方案补全、SAP 细化或设计审查,不自动扩展到项目初始化、分析或写作。
  4. 涉及结局定义、量表、方法依据、报告规范或最新指南时,先用 evidence-research 核验来源身份和适用性。

2. 建立研究设计要点

按以下顺序形成可审查的研究设计:

  1. 研究问题:明确目标人群、暴露或干预、比较策略、结局、时间范围和研究场景。
  2. 因果或描述目标:区分病因、预后、诊断、预测、描述和效果评价;观察性研究不得默认作因果解释。
  3. estimand:写清处理或暴露条件、结局变量、人群、汇总量和需要处理的中间事件。
  4. 设计与抽样:说明队列、病例对照、横断面、试验、真实世界研究或其他设计为何匹配目标,并描述时间零点、索引日和随访。观察数据回答因果问题时,按 PROTOCOL 与 SAP 字段规范 的“观察性研究的因果设计”写出目标试验、时间零点对齐和基于 DAG 的调整集。
  5. 研究对象与观测结构:确认纳入、排除、分组、对象标识、每对象记录数、结局测量次数、重复记录、聚类单位、失访和分析人群;记录排除顺序及预期样本流。多个暴露或预测时点不得直接解释为重复结局。
  6. 变量与测量:定义主要和次要终点、暴露、协变量、效应修饰因素、测量时点、单位、编码和数据来源;需要纵向、混合或聚类模型时,写清分析单位、相关结构和随机效应依据。
  7. 偏倚与混杂:逐项评估选择偏倚、信息偏倚、混杂、时间相关偏倚、缺失和信息泄漏,并把控制措施对应到设计或分析。
  8. 精度与可行性:根据主要 estimand 给出样本量、事件数或精度依据及全部假设;假设无来源时标为待确认,不编造效应量。
  9. 分析计划:预设主要模型、效应量、协变量策略、模型诊断、缺失处理、多重性、亚组和探索边界。敏感性分析按 敏感性分析的选择与篇幅 逐项选择,只预设针对主分析中有争议且可能改变结论的假设的项目;没有这类假设时写明不预设及理由。
  10. 伦理、注册、数据权限与报告:记录相应要求、适用报告规范,以及正式版本如何确认和保存。

若分组、终点、纳排、主要 estimand 或主要模型存在多个合理方案,列出差异和影响后向用户确认,不自行选择。

3. 输出

  • Q:直接回答当前设计或方法问题,不创建设计备忘录、PROTOCOL、SAP 或项目记录。
  • L:只完成用户点名的 estimand、终点、纳排、偏倚、样本量/精度、SAP 条目或其它可定位部件,并核对会直接改变该部件含义的依赖;不强制补齐整份设计。
  • 用户要求一份轻量但完整的研究设计咨询时:输出设计备忘录,包含研究问题、estimand、关键定义、偏倚控制、主分析框架、未决事项和可观察验收条件。
  • 正式项目:更新 PROTOCOL.md 与 SAP.md;已确认的方法选择或偏离写入 DECISIONS.md,缺失信息写入 BACKLOG.md。不改动结果数字唯一来源。
  • 用户只要求审查时:按“已明确、证据不足、内部冲突、需用户决定”分类报告,不替用户改文件。

PROTOCOL 与 SAP 的字段规范见 references/protocol-sap-specification.md。

4. 完成条件

  • Q 已直接回答当前问题并说明事实或适用边界;L 的目标部件、直接依赖和未决项已核对,范围外设计不声称完成。
  • 完整设计任务的研究问题、时间零点、分析人群、主要 estimand 和主要终点可由另一位研究者无歧义复述。
  • 完整设计任务中的每个关键变量有来源、定义、单位、时点和编码;复合终点有组成与判定规则。
  • 涉及纵向、重复测量或聚类结构时,对象 ID、每对象记录数、结局时点、分析单位、聚类单位和相关结构依据可以无歧义复述。
  • 当前范围内的主要偏倚风险有对应控制措施,且未把分析阶段无法补救的问题隐藏起来。
  • 当前范围涉及样本量或精度时,假设可追溯,未知项明确标记并停在安全点。
  • 当前范围涉及分析计划时,主分析、敏感性分析和探索性分析边界清楚,未根据已见结果倒写为预设;预设的每项敏感性分析都写明所检验的假设,没有为填满字段而列入的项目。
  • 正式项目的 PROTOCOL、SAP、DECISIONS 和 BACKLOG 之间无冲突。

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 Epi Study Design AI skill do?

制定或审查流行病学研究设计、estimand、终点、纳排、偏倚控制、样本量/精度、PROTOCOL 和 SAP。不用于目录初始化、模型实跑或论文结果写作。

Why use Epi Study Design on TypingMind?

Because you install it once and use it with any model. Epi Study Design 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 Epi Study Design in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/KangWang42/EpiAgentKit/tree/main/skills/epi-study-design. 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 Epi Study Design?

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 Epi Study Design?

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

Is the Epi Study Design AI skill free?

It is published on GitHub by KangWang42. Check the repository for licensing terms. 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 👇