Python Biostats logo

Python Biostats

Community
KangWang42
python-biostats

用 Python 完成生物统计清洗、描述、回归、生存、预测验证、统计表和代码修复。仅在用户明确选 Python 或项目已有 Python 主流程时使用;不因 R 依赖缺失触发。

Overview

PublisherKangWang42
RepositoryEpiAgentKit
Skill namepython-biostats
Stars
29
Forks
2
Bundled files
2
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.

  • 2 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 Python Biostats 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/python-biostats
  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/python-biostats .claude/skills/python-biostats
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Python Biostats 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 Python Biostats 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 Python Biostats 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.

Python 生物统计执行

仅在用户明确选择 Python 或既有项目以 Python 为主流程时执行;Python 运行时缺失时先询问是否安装,用户不安装则评估现有 R 环境中的经核验等价实现。不存在等价实现时说明差异并等待选择,不静默切换,也不重写可工作的 R 主流程。

1. 输入与方法

  1. 读取本轮必要输入;项目执行或正式发布时,再读取项目规则、PROTOCOL、SAP、配置、方法决定与尚未解决且需要后续处理的事项。
  2. 确认分析集、暴露或干预、终点、比较、时间零点、协变量和主要方法。多个合理口径会改变答案时先确认。
  3. 从最早输入核对字段、类型、键、重复、缺失、范围和逐步样本量。
  4. 方法匹配 estimand、研究设计、结局类型、时间结构和抽样设计,不按库的便利性替代研究问题。

可沿用项目已有的 pandas、polars、scipy、statsmodels、scikit-learn、lifelines 或 scikit-survival;这些是可能实现,不是强制依赖。统计图转 publication-figures。

2. 实现与运行

  • 新增、修改或重构 Python 代码前先读 代码风格,按其组织分析主线、读入类型、连接防错和结果提取;项目已有规范时沿用项目规范。
  • 沿用项目风格,按代码风格细则判断函数边界与检查位置;原始数据只读。
  • 只有随机抽样、模拟、重采样、数据拆分或随机算法固定并记录种子。
  • 普通 Python 包缺失时按 biostat-principles 的依赖政策在项目隔离环境补齐;失败不得静默换包、换方法或换语言。
  • 多行分析写入 .py。局部任务运行目标脚本;项目执行和正式发布通过 run_pipeline.py 调用项目现有且版本兼容的 Python,启动独立进程并按已确认顺序运行全部相关脚本。
  • 非机械修改 .py 后,先用项目现有 Python 执行 python -m py_compile <受影响脚本>,通过后再运行受影响的最小入口或总运行脚本。编译通过只是一道即时门禁,不能替代实跑和科学结果检查。
  • 核对完整 stdout/stderr、样本量链、缺失、估计范围、区间、收敛、适用的模型假设和预期文件;warning、traceback、failed、nan 不得略过。

异常可能改变口径或结论时回到最早来源并停下报告,不通过删记录、改模型或捕获异常掩盖。

3. 结果与完成

项目执行和正式发布的关键结果使用 scripts/emit_summary.py 写入 results/results.yaml。每项必须填写实际生成结果的脚本、脚本中提取结果的对象、输入文件或其哈希值、分析集、运行编号,以及实际使用该结果的文件;禁止直接修改 YAML。文件结构和旧项目读取方式见 结果数据文件。

方法选择或方案偏离写入 DECISIONS.md;总运行脚本自动记录实际命令、状态、输入输出文件哈希值和环境信息。只有需要后续补充材料、外部资源或由用户决定的事项才写入 BACKLOG.md。试新方法按 biostat-principles 的 E0/E1/E2 规则隔离。

完成时确认原始数据未改、相关脚本实际运行、样本与诊断已核对、异常已处理,并且项目执行和正式发布涉及的 results/results.yaml、自动运行记录和实际使用结果的文件一致。局部任务只交付用户指定的产物和必要的复现说明。

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 Python Biostats AI skill do?

用 Python 完成生物统计清洗、描述、回归、生存、预测验证、统计表和代码修复。仅在用户明确选 Python 或项目已有 Python 主流程时使用;不因 R 依赖缺失触发。

Why use Python Biostats on TypingMind?

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

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/KangWang42/EpiAgentKit/tree/main/skills/python-biostats. 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 Python Biostats?

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 Python Biostats?

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

Is the Python Biostats 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 👇