# Lifelines Kaplan Meier Starter

> A Claude skill from ma-compbio-lab/SkillFoundry.

- **Type:** Skill
- **Install:** `agentstack add skill-ma-compbio-lab-skillfoundry-lifelines-kaplan-meier-starter`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [ma-compbio-lab](https://agentstack.voostack.com/s/ma-compbio-lab)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [ma-compbio-lab](https://github.com/ma-compbio-lab)
- **Source:** https://github.com/ma-compbio-lab/SkillFoundry/tree/main/skills/clinical-biomedical-data-science/lifelines-kaplan-meier-starter
- **Website:** https://ma-compbio-lab.github.io/SkillFoundry/

## Install

```sh
agentstack add skill-ma-compbio-lab-skillfoundry-lifelines-kaplan-meier-starter
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Lifelines Kaplan Meier Starter

Use this skill to run a deterministic Kaplan-Meier survival analysis over a toy cohort and summarize per-group survival curves.

## What it does

- Loads a tiny cohort table with durations, events, and group labels.
- Fits one Kaplan-Meier curve per group with `lifelines`.
- Returns compact JSON with median survival times and survival probabilities at fixed time points.
- Optionally renders a PNG survival plot.

## When to use it

- You need a local starter for survival-analysis workflows.
- You want a verified template for grouped time-to-event data in Python.

## Example

```bash
slurm/envs/statistics/bin/python skills/clinical-biomedical-data-science/lifelines-kaplan-meier-starter/scripts/run_lifelines_kaplan_meier.py \
  --input skills/clinical-biomedical-data-science/lifelines-kaplan-meier-starter/examples/toy_survival_cohort.tsv \
  --summary-out scratch/lifelines/kaplan_meier_summary.json \
  --png-out scratch/lifelines/kaplan_meier_plot.png
```

## Verification

- Skill-local tests: `python3 -m unittest discover -s skills/clinical-biomedical-data-science/lifelines-kaplan-meier-starter/tests -p 'test_*.py'`
- Repository smoke: `python3 -m unittest tests.smoke.test_phase25_agent_and_clinical_skills -v`

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [ma-compbio-lab](https://github.com/ma-compbio-lab)
- **Source:** [ma-compbio-lab/SkillFoundry](https://github.com/ma-compbio-lab/SkillFoundry)
- **License:** Apache-2.0
- **Homepage:** https://ma-compbio-lab.github.io/SkillFoundry/

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-ma-compbio-lab-skillfoundry-lifelines-kaplan-meier-starter
- Seller: https://agentstack.voostack.com/s/ma-compbio-lab
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
