Agent skill

Survival Analysis Tools

by DrugClaw in DrugClaw/DrugClaw

Survival and time-to-event workflow guide for Kaplan-Meier summaries, log-rank tests, and Cox proportional hazards models with reproducible outputs.

Apache-2.0Auto-check passedResearch & Science

Install Survival Analysis Tools

skills CLI
$ npx skills add DrugClaw/DrugClaw --skill survival-analysis-tools -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install DrugClaw/DrugClaw survival-analysis-tools --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/DrugClaw/DrugClaw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/science/survival-analysis-tools .claude/skills/survival-analysis-tools && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
survival-analysis-tools
GitHub stars
126
Token cost
~743 tokens
SKILL.md length
220 words
Files
2
Skills in repo
25
Repo updated
First seen
Licence
Apache-2.0

At a glance

Survival and time-to-event workflow guide for Kaplan-Meier summaries, log-rank tests, and Cox proportional hazards models with reproducible outputs.

  • Works in 5 steps: Confirm the time and event coding first. → Generate group-level Kaplan-Meier… → Add Cox covariates only after checking… → …
  • The user asks for time-to-event analysis
  • SKILL.md covers Environment Check, Bundled Asset, Preferred Workflow and Kaplan-Meier And Cox Baseline, plus 2 more sections
  • Runs Python scripts from its folder; calls python3

What it does

Survival Analysis Tools is an agent skill from DrugClaw/DrugClaw. Survival and time-to-event workflow guide for Kaplan-Meier summaries, log-rank tests, and Cox proportional hazards models with reproducible outputs. Use when the user asks for time-to-event analysis, censored data summaries, hazard ratios, or survival-group comparison for research datasets.

Its SKILL.md is about 740 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `templates/survival_analysis.py`).

It sits in Research & Science. The repository describes itself as: 💊 AI Research Assistant for Accelerated Drug Discovery. 🦞. The licence is Apache-2.0.

When your agent uses it

  • The user asks for time-to-event analysis
  • Censored data summaries
  • Survival-group comparison for research datasets

Example prompts

  • “/survival-analysis-tools”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Confirm the time and event coding first.
  2. Generate group-level Kaplan-Meier summaries before fitting adjusted models.
  3. Add Cox covariates only after checking the columns and coding logic.
  4. Export both tables and a survival plot.
  5. Treat hazard ratios as model-based associations, not automatic causal effects.

What it can do on your machine

Read from SKILL.md and the folder at commit 960a6e0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Survival Analysis Tools loads about 743 tokens when it runs. Until then it costs about 79 tokens; SKILL.md has 220 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~79
When it runs · the whole SKILL.md, loaded when a task matches
~743

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from DrugClaw/DrugClaw at commit 960a6e0, republished under its Apache-2.0 licence (© DrugClaw). 220 words, ~743 tokens.

Download SKILL.mdSave it as .claude/skills/survival-analysis-tools/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
survival-analysis-tools
description
Survival and time-to-event workflow guide for Kaplan-Meier summaries, log-rank tests, and Cox proportional hazards models with reproducible outputs. Use when the user asks for time-to-event analysis, censored data summaries, hazard ratios, or survival-group comparison for research datasets.
source
drugclaw
updated_at
2026-03-11

Survival Analysis Tools

Use this skill when the user needs time-to-event analysis with censoring-aware summaries.

Typical triggers:

  • Kaplan-Meier curves or survival probability tables
  • log-rank comparison between treatment arms
  • Cox proportional hazards regression with hazard ratios
  • time-to-event or progression-free survival analysis
  • censored cohort summaries for translational or clinical research

Environment Check

bash
which python3 || true
python3 - <<'PY'
mods = ["numpy", "pandas", "statsmodels", "matplotlib"]
for name in mods:
    try:
        __import__(name)
        print(f"{name}: ok")
    except Exception as exc:
        print(f"{name}: missing ({exc})")
try:
    import sksurv
    print("sksurv: optional-ok")
except Exception as exc:
    print(f"sksurv: optional-missing ({exc})")
PY

The bundled template runs on the stable statsmodels baseline. Advanced machine-learning survival models from scikit-survival remain optional and should only be claimed when the environment actually has them.

Bundled Asset

  • templates/survival_analysis.py

Preferred Workflow

  1. Confirm the time and event coding first.
  2. Generate group-level Kaplan-Meier summaries before fitting adjusted models.
  3. Add Cox covariates only after checking the columns and coding logic.
  4. Export both tables and a survival plot.
  5. Treat hazard ratios as model-based associations, not automatic causal effects.

Kaplan-Meier And Cox Baseline

bash
python3 templates/survival_analysis.py \
  --input survival/nsclc.csv \
  --time-column pfs_days \
  --event-column progressed \
  --group-column arm \
  --covariate age \
  --covariate stage_numeric \
  --covariate biomarker_score \
  --plot-output survival/nsclc_km.png \
  --km-output survival/nsclc_km.csv \
  --cox-output survival/nsclc_cox.csv \
  --summary survival/nsclc_summary.json

Use this for:

  • group-level median survival summaries
  • Kaplan-Meier plots
  • log-rank p-values when a group column is present
  • Cox proportional hazards coefficients and hazard ratios

Boundary

The bundled baseline does not provide random survival forests, gradient-boosted survival models, or integrated Brier score pipelines out of the box. If the user explicitly needs those, confirm that scikit-survival is available first.

For general hypothesis tests or non-survival regression, activate stat-modeling-tools. For figures beyond the bundled KM plot, activate scientific-visualization-tools. For study-design or endpoint-planning support, activate clinical-research-tools.

© DrugClaw, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/science/survival-analysis-tools of DrugClaw/DrugClaw.

  • SKILL.md
  • templates/survival_analysis.py

Open the folder on GitHubat commit 960a6e0

Compare with similar skills

Survival Analysis Tools next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Survival Analysis Tools compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Survival Analysis Tools this skillDrugClaw/DrugClaw126—~743Automated safety check: PassApache-2.0
Hypothesis Generationspacering-net/codeg3.9k14 repos~3.6kAutomated safety check: NotesMIT
GitHub Deep Researchbytedance/deer-flow84k4 repos~1.3kAutomated safety check: PassMIT
Nature Paper CardYuan1z0825/nature-skills47k2 repos~2.1kAutomated safety check: PassApache-2.0
Content Research Writerweapp-tailwindcss/weapp-tailwindcss1.9k25 repos~3.5kAutomated safety check: PassMIT
Last30daysmvanhorn/last30days-skill64k—~7.9kAutomated safety check: NotesMIT

Similar skills

  • Hypothesis Generation

    spacering-net/codeg

    Structured hypothesis formulation from observations. An agent skill from spacering-net/codeg.

    3.9k GitHub starsUsed in 14 repos~3.6k tokens
    Research & ScienceAuto-check: notes
  • GitHub Deep Research

    bytedance/deer-flow

    Researches a GitHub repository over four rounds using the GitHub API and web search, then writes a structured markdown report with timeline, metrics and Mermaid diagrams.

    84k GitHub starsUsed in 4 repos~1.3k tokens
    Research & ScienceAuto-check passed
  • Nature Paper Card

    Yuan1z0825/nature-skills

    Builds a structured deep-reading card for one scientific paper, covering methods, how experiments support claims, limitations and research ideas, with a script to prepare the source.

    47k GitHub starsUsed in 2 repos~2.1k tokens
    Research & ScienceAuto-check passed
  • Content Research Writer

    weapp-tailwindcss/weapp-tailwindcss

    Assists in writing high-quality content by conducting research, adding citations, improving hooks, iterating on outlines, and providing real-time feedback on each section.

    1.9k GitHub starsUsed in 25 repos~3.5k tokens
    Research & ScienceAuto-check passed
  • Last30days

    mvanhorn/last30days-skill

    Research what people actually say about any topic in the last 30 days.

    64k GitHub stars~7.9k tokensUpdated yesterday
    Research & ScienceAuto-check: notes
  • Peer Review

    spacering-net/codeg

    Structured manuscript/grant review with checklist-based evaluation.

    3.9k GitHub starsUsed in 17 repos~5.9k tokens
    Research & ScienceAuto-check: notes

More from DrugClaw/DrugClaw

All 25 skills in this repo
  • Bio DB Tools

    DrugClaw/DrugClaw

    Query public biology databases and APIs including UniProt, RCSB PDB, AlphaFold DB, ClinVar, dbSNP, gnomAD, Ensembl, GEO, InterPro, KEGG, OpenTargets, Reactome, and STRING.

    126 GitHub stars~1.4k tokensUpdated 6 mo ago
    Auto-check passed
  • Grn Tools

    DrugClaw/DrugClaw

    Gene regulatory network workflow guide for transcriptomics and single-cell expression matrices using Arboreto, GRNBoost2, and GENIE3.

    126 GitHub stars~692 tokensUpdated 6 mo ago
    Auto-check passed
  • Knowledge Graph Tools

    DrugClaw/DrugClaw

    Drug-discovery knowledge-graph workflow guide for assembling drug-target-disease-pathway relationship graphs from OpenTargets GraphQL, ChEMBL REST, STRING PPI, and Reactome pathway APIs, then…

    126 GitHub stars~1.7k tokensUpdated 6 mo ago
    Auto-check passed
  • Literature Review Tools

    DrugClaw/DrugClaw

    Research-literature workflow guide for evidence-matrix assembly, citation-table normalization, structured review synthesis, and research-gap mapping.

    126 GitHub stars~923 tokensUpdated 6 mo ago
    Auto-check passed
  • Medical Data Tools

    DrugClaw/DrugClaw

    Medical data workflow guide for DICOM metadata inspection and basic de-identification, physiological signal analysis with NeuroKit2, and cohort-table profiling for clinical research datasets.

    126 GitHub stars~1.3k tokensUpdated 6 mo ago
    Auto-check passed
  • Omics Tools

    DrugClaw/DrugClaw

    Omics and single-cell workflow guide for AnnData, Scanpy-style dataset profiling, PyDESeq2-oriented count checks, pysam alignment inspection, and pyOpenMS mass-spectrometry summaries.

    126 GitHub stars~1.1k tokensUpdated 6 mo ago
    Auto-check passed

Questions about Survival Analysis Tools

What does Survival Analysis Tools do?

Survival and time-to-event workflow guide for Kaplan-Meier summaries, log-rank tests, and Cox proportional hazards models with reproducible outputs. Survival Analysis Tools is an agent skill from DrugClaw/DrugClaw. Survival and time-to-event workflow guide for Kaplan-Meier summaries, log-rank tests, and Cox proportional hazards models with reproducible outputs.

When should I use Survival Analysis Tools?

Survival Analysis Tools fits situations like: the user asks for time-to-event analysis; censored data summaries; survival-group comparison for research datasets.

How do I install Survival Analysis Tools in Claude Code?

Run `npx skills add DrugClaw/DrugClaw --skill survival-analysis-tools -a claude-code`. Or copy the skill folder (skills/science/survival-analysis-tools in DrugClaw/DrugClaw) into .claude/skills/survival-analysis-tools in your project. Claude Code loads it when a task matches its description.

How do I install Survival Analysis Tools in Codex?

Run `npx skills add DrugClaw/DrugClaw --skill survival-analysis-tools -a codex`. Or copy the skill folder (skills/science/survival-analysis-tools in DrugClaw/DrugClaw) into .agents/skills/survival-analysis-tools in your project. Codex loads it when a task matches its description.

Can I use Survival Analysis Tools in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add DrugClaw/DrugClaw --skill survival-analysis-tools -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/survival-analysis-tools, .gemini/skills/survival-analysis-tools, .github/skills/survival-analysis-tools and .opencode/skills/survival-analysis-tools in your project.

What does Survival Analysis Tools need to run?

Going by SKILL.md and its folder, Survival Analysis Tools needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Survival Analysis Tools access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Survival Analysis Tools safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Survival Analysis Tools use?

Survival Analysis Tools is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Survival Analysis Tools use?

About 743 tokens (SKILL.md is roughly 3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Survival Analysis Tools?

Skills that share tags, products or a category with Survival Analysis Tools: Hypothesis Generation (spacering-net/codeg, 3.9k stars), GitHub Deep Research (bytedance/deer-flow, 84k stars), Nature Paper Card (Yuan1z0825/nature-skills, 47k stars) and Content Research Writer (weapp-tailwindcss/weapp-tailwindcss, 1.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Survival Analysis Tools?

DrugClaw (a GitHub organization) maintains it in DrugClaw/DrugClaw, which has 126 GitHub stars. The repository holds 25 skills in this directory. The repository was last updated on March 23, 2026.

Source: DrugClaw/DrugClaw on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.