Kaplan Meier Survival Analysis logo

Kaplan Meier Survival Analysis

Community
SteveTangent
kaplan-meier-survival-analysis

Estimate Kaplan-Meier survival from declared follow-up times and binary event indicators. Exclude log-rank tests, Cox models, competing risks and clinical recommendations.

Overview

PublisherSteveTangent
Repositorygoose-bio-skills
Skill namekaplan-meier-survival-analysis
Stars
64
Forks
0
Bundled files
7
LicenseApache-2.0
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.

  • 7 bundled files

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

  • Open source

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

Installation

Install the Kaplan Meier Survival Analysis 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/SteveTangent/goose-bio-skills/tree/main/skills/kaplan-meier-survival-analysis
  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/SteveTangent/goose-bio-skills.git /tmp/goose-bio-skills
mkdir -p .claude/skills
cp -r /tmp/goose-bio-skills/skills/kaplan-meier-survival-analysis .claude/skills/kaplan-meier-survival-analysis
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Kaplan Meier Survival Analysis 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 Kaplan Meier Survival Analysis 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 Kaplan Meier Survival Analysis 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.

Kaplan-Meier Survival Analysis

Preview + reviewed; the deterministic helper self-test passed. Agent runtime, representative-data benchmarking, scientific evaluation, and expert review were not performed.

Execution behavior

Use supplied and safely inspected facts first. Explain an unfamiliar term only when it changes the decision. If a critical fact is missing or inconsistent, follow the dialogue guide: ask one focused question, explain why, recommend a defensible route, and wait on dependent work. Continue independent authorized work; never guess scientific facts or repeat a resolved question. With complete inputs, proceed. Show relevant figures/tables and their meaning; preserve the host's permissions and the boundaries below. Finish with outputs, key findings and concrete remaining limits.

Detailed scope: Use for bounded, offline Kaplan-Meier summaries of a local subject-level TSV with one nonnegative follow-up time and one binary event indicator per subject, optionally split by an explicit group column. Produce deterministic product-limit estimates, median survival or not-reached status, and at-risk/event/censor counts. Exclude log-rank or other hypothesis tests, Cox or parametric models, confidence bands, delayed entry, recurrent or competing events, interval censoring, time-varying data, causal claims, treatment recommendations, and clinical interpretation.

Owns

Summarize one already-prepared right-censored subject table. Report descriptive Kaplan-Meier curves without choosing endpoints, redefining cohorts, or making clinical, causal, superiority, or significance decisions.

Inputs and intake

Require a UTF-8 TSV with exact headers subject_id, time, and event, plus optional group. Require unique subjects, exact finite nonnegative decimal times, event=1 for the declared event and event=0 for right censoring, and a new JSON path.

Inspect safe facts first. Ask one unresolved question with a recommendation, then wait:

  1. endpoint-and-time-origin. What protocol-defined event, time origin, and censoring rule do these fields represent? Recommended: export one prespecified endpoint with elapsed time from its declared origin; code only that event as 1 and valid right censoring as 0.
  2. group-definition. If grouped output is requested, what fixed cohort labels should be compared? Recommended: use labels defined before inspecting the survival outcome; do not derive groups from follow-up or event status.

An explicit local analysis request authorizes the bounded read and one create-new report once these semantics are already supplied.

Run

text
python3 scripts/analyze_kaplan_meier.py \
  --input SUBJECTS.tsv --output NEW_REPORT.json

The dependency-free Python 3.10+ helper accepts regular, uncompressed files only. It refuses malformed or extra columns, duplicate subjects, invalid times or event codes, excessive rows/groups, parent traversal, symlinked input or output parents, and existing outputs.

Output contract

The deterministic JSON report binds the input fingerprint to:

  • an overall curve and optional group curves with counts before each observed time, events, censors, and survival probability after events at that time;
  • subject/event/censor totals and median survival, or explicit not-reached;
  • descriptive group curves when a group column is present; no between-group hypothesis test or significance result.

Times are grouped and ordered as exact decimal values. Integral times are JSON integers; non-integral times are canonical decimal strings, avoiding binary floating-point collisions between distinct follow-up times.

Read format and method boundaries before interpreting ties or medians.

Guardrails

  • Never infer endpoints, time origins, censoring mechanisms, cohort labels, or whether censoring is non-informative.
  • Never run log-rank or other hypothesis tests, fit Cox or parametric models, handle delayed entry, recurrent events, competing risks, interval censoring, time-varying rows, covariate adjustment, multiplicity, causal effects, or clinical decisions.
  • Never turn a curve or median into a treatment recommendation, clinical claim, or automated significance/pass decision.
  • Never overwrite, mutate inputs, create directories, follow symlinks, use the network, or start a subprocess.
  • Require researcher review of endpoint semantics, cohort construction, censoring assumptions, and descriptive output.

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 Kaplan Meier Survival Analysis AI skill do?

Estimate Kaplan-Meier survival from declared follow-up times and binary event indicators. Exclude log-rank tests, Cox models, competing risks and clinical recommendations.

Why use Kaplan Meier Survival Analysis on TypingMind?

Because you install it once and use it with any model. Kaplan Meier Survival Analysis 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 Kaplan Meier Survival Analysis in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/SteveTangent/goose-bio-skills/tree/main/skills/kaplan-meier-survival-analysis. 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 Kaplan Meier Survival Analysis?

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 Kaplan Meier Survival Analysis?

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

Is the Kaplan Meier Survival Analysis AI skill free?

Yes. It is published on GitHub by SteveTangent under the Apache-2.0 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 👇