survival-analysis

survival-analysis is a skill for Claude Code, Codex from zamushwani/biomedical-ai-skills. It costs 0 tokens per session (4,698 once invoked), scanned A, original, MIT.

A guide for analysing how long it takes for events such as cancer outcomes to occur, including cases where a study ends before the event happens. It covers common statistical methods such as Kaplan-Meier curves, Cox models, competing-risk analysis, and restricted mean survival time.

In plain words
What is it for?
Use it to analyse clinical time-to-event data, compare survival groups, test risk factors, check model assumptions, study competing risks, or choose biomarker cutoffs.
Why use it?
It provides a structured way to compare patient outcomes over time while accounting for incomplete follow-up and other possible events.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to analyse clinical time-to-event data, compare survival groups, test risk factors, check model assumptions, study competing risks, or choose biomarker cutoffs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zamushwani/biomedical-ai-skills/survival-analysis
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add zamushwani/biomedical-ai-skills --skill survival-analysis
Clone the repo
git clone --depth 1 https://github.com/zamushwani/biomedical-ai-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for survival-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/zamushwani/biomedical-ai-skills/survival-analysis/github.svg)](https://agentmods.dev/skills/zamushwani/biomedical-ai-skills/survival-analysis)
Your own site
<a href="https://agentmods.dev/skills/zamushwani/biomedical-ai-skills/survival-analysis"><img src="https://agentmods.dev/badge/skills/zamushwani/biomedical-ai-skills/survival-analysis/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for survival-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/zamushwani/biomedical-ai-skills/survival-analysis"><img src="https://agentmods.dev/badge/skills/zamushwani/biomedical-ai-skills/survival-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,698 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.04698
Opus 5 $0.00000 $0.02349
Sonnet 5 $0.00000 $0.00940
Haiku 4.5 $0.00000 $0.00470

Measured 12d ago against content hash f4deb87031fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

survival-analysis scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/survival-analysis/SKILL.md · 452 lines

How it starts

The opening of the file, as written. The whole thing — 452 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Survival Analysis

Time-to-event analysis for cancer clinical data. Covers Kaplan-Meier, Cox proportional hazards, competing risks, restricted mean survival time, and optimal cutpoint selection using the survival, ggsurvfit, tidycmprsk, and survRM2 packages.

When to Use This Skill

Activate when the user requests:

  • Kaplan-Meier survival curves with risk tables
  • Log-rank or stratified log-rank tests between groups
  • Cox proportional hazards modeling (univariable or multivariable)
  • Proportional hazards assumption checking
  • Competing risks analysis (cause-specific or Fine-Gray)
  • Restricted mean survival time (RMST) comparisons
  • Optimal biomarker cutpoint selection for survival
  • Forest plots for multivariate Cox models

Inputs

Data Type Format Source
Clinical Tabular (time, event, covariates) TCGA GDC via TCGAbiolinks, cBioPortal
Time variable Days/months to event or last follow-up days_to_death, days_to_last_follow_up
Event indicator Binary (0 = censored, 1 = event) Derived from vital_status
Covariates Categorical or continuous Age, stage, gene expression, mutations

Preparing TCGA Survival Data

library(TCGAbiolinks)
library(SummarizedExperiment)

query <- GDCquery(
  project = "TCGA-GBM",
  data.category = "Transcriptome Profiling",
  data.type = "Gene Expression Quantification",
  workflow.type = "STAR - Counts"
)
GDCdownload(query, directory = "GDCdata")
se <- GDCprepare(query, directory = "GDCdata")
clinical <- as.data.frame(colData(se))

# Construct survival endpoint from TCGA clinical fields
# TCGA stores time in days. Convert to months for readability.
clinical$os_time <- ifelse(!is.na(clinical$days_to_death),
  as.numeric(clinical$days_to_death),
  as.numeric(clinical$days_to_last_follow_up))
clinical$os_event <- ifelse(clinical$vital_status == "Dead", 1, 0)
clinical$os_months <- clinical$os_time / 30.44

# Drop samples with missing survival data
clinical <- clinical[!is.na(clinical$os_months) & clinical$os_months > 0, ]

Read the full file on GitHub · 452 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 452 lines · 0 tokens per session scan A f4deb87031fc

Subscribe to this mod's changes

survival-analysis is a skill published in the GitHub repository zamushwani/biomedical-ai-skills (1 stars, last pushed 13d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 4,698 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

automated-soap-note-generator

Generate structured SOAP notes from clinical narratives, transcripts, or existing notes; use when the user needs de-identified clinical documentation organized into Subjective, Objective, Assessment, and Plan sections, with clear assumptions and review points.

aipoch/medical-research-skills · 51 tokens

estimate-immune-score-analysis

Use this skill to compute ESTIMATE immune-related microenvironment scores from a bulk expression matrix, generate an ESTIMATE score heatmap, and optionally generate group-wise ESTIMATE score boxplots plus significance tables when a sample group file is supplied. Trigger keywords: ESTIMATE, immune score, stromal score…

aipoch/medical-research-skills · 90 tokens

external-model-validation

Use when validating an existing prognostic risk signature on an external bulk expression cohort with survival outcomes, producing risk scores, Kaplan-Meier curves, risk distribution plots, heatmap, and time-dependent ROC curves. NOT for: model training, feature selection, nomogram construction, calibration analysis…

aipoch/medical-research-skills · 66 tokens

gsva-analysis-and-visualization

Use this skill to run GSVA or ssGSEA pathway-level differential analysis from a bulk expression matrix and a sample group file, then generate a heatmap from the saved GSVA result object. Trigger keywords: GSVA, ssGSEA, pathway enrichment, KEGG pathway analysis, MSigDB. NOT for: gene-level differential expression…

aipoch/medical-research-skills · 88 tokens

hierarchical-clustering-plot

Use when building a sample-level hierarchical clustering dendrogram from a bulk expression matrix and sample annotation table, especially for QC, batch inspection, or sample similarity assessment. Trigger keywords: hierarchical clustering, dendrogram, sample QC, batch inspection, sample similarity. NOT for…

aipoch/medical-research-skills · 74 tokens

immune-pathway-analysis

Run immune pathway GSVA or ssGSEA analysis from a bulk expression matrix, a sample group file, and a local immune Reactome gene-set table, then export differential pathway results and a heatmap for two-group comparison.

aipoch/medical-research-skills · 50 tokens