Agent skill · Security

scikit-survival

Build, evaluate, and audit right-censored or competing-risk survival workflows with scikit-survival, including leakage-safe preprocessing, model selection, probability prediction, and censoring-aware metrics.

K-Dense-AIgithub.com/K-Dense-AIGitHub ↗
claude-codecan modify filesships scriptsMIT
Install
npx skills add K-Dense-AI/scientific-agent-skills --skill scikit-survival --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 13
SKILL.md size: 13 KB
Bundled scripts: yes
Version: 1.1
Allowed tools: ReadWriteEditBash
Requires: Requires Python 3.11+, uv, and the pinned scikit-survival 0.28.0 stack for executable examples. Bundled CLIs are local…
Path: skills/scikit-survival/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 32,619
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# scikit-survival ## Scope Use this skill for scikit-survival 0.28.0 workflows involving: - right-censored structured outcomes; - Cox PH, Coxnet, IPC ridge, survival trees, forests, boosting, and SVMs; - discrimination, prediction error, calibration-oriented checks, and time-dependent prediction; - nonparametric cumulative incidence with competing risks; - scikit-learn pipelines, nested model selection, and reproducible reports. scikit-survival primarily models right-censored outcomes. Its built-in competing-risk support is nonparametric cumulative incidence; it does not provide Fine-Gray regression. Do not present model output as clinical advice, causal evidence, or proof of clinical utility. ## Current release and installation Verified 2026-07-23: - Latest stable: **scikit-survival 0.28.0**, released 2026-07-05. - Python: **3.11 or later**; PyPI wheels cover CPython 3.11-3.14 on Linux x86-64, macOS x86-64/ARM64, and Windows x86-64. - Runtime bounds: NumPy >=2.0.0, pandas >=2.2.0, SciPy >=1.13.0, scikit-learn >=1.9.0,<1.10, OSQP >=1.0.2, narwhals >=2.0.1. - 0.28 adds pandas/Polars estimator support through narwhals and removes `criterion` from `GradientBoostingSurvivalAnalysis`. C

What's inside
Steps it walks through
  1. Scope
  2. Current release and installation
  3. Non-negotiable workflow
  4. Outcome construction
  5. Leakage-safe pipeline
  6. Model choice
  7. Prediction and metric contracts
  8. Pipelines, metadata routing, and tuning
  9. Competing risks
  10. Bundled local CLIs
  11. Security triage
  12. Reference files
  13. Dated sources
Ships with 12 files
  • references/competing-risks.md
  • references/cox-models.md
  • references/data-handling.md
  • references/ensemble-models.md
  • references/evaluation-metrics.md
  • references/svm-models.md
  • scripts/_common.py
  • scripts/competing_risk_cif.py
  • scripts/evaluate_survival_metrics.py
  • scripts/model_report.py
  • scripts/train_survival_model.py
  • scripts/validate_survival_csv.py
Commands it runs
uv venv --python 3.11
source .venv/bin/activate
uv pip install \
python skills/scikit-survival/scripts/validate_survival_csv.py --help
python skills/scikit-survival/scripts/train_survival_model.py --help
python skills/scikit-survival/scripts/evaluate_survival_metrics.py --help
python skills/scikit-survival/scripts/competing_risk_cif.py --help
python skills/scikit-survival/scripts/model_report.py --help
python skills/scikit-survival/scripts/validate_survival_csv.py \
python skills/scikit-survival/scripts/train_survival_model.py \
More from scientific-agent-skills
All skills →
About this skill
What does the scikit-survival skill do?

Build, evaluate, and audit right-censored or competing-risk survival workflows with scikit-survival, including leakage-safe preprocessing, model selection, probability prediction, and censoring-aware metrics.

How do I install it?

Run `npx skills add K-Dense-AI/scientific-agent-skills --skill scikit-survival --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From K-Dense-AI/scientific-agent-skills, a repository with 32,619 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going