skills/science/survival-analysis-tools/SKILL.md
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.
npx skillsauth add drugclaw/drugclaw survival-analysis-toolsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when the user needs time-to-event analysis with censoring-aware summaries.
Typical triggers:
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.
templates/survival_analysis.pypython3 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:
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.
tools
Statistical modeling workflow guide for hypothesis tests, effect-size reporting, statsmodels regression, diagnostics, and structured result export. Use when the user asks for statistical test selection, OLS or logistic regression, coefficient tables, inference, or reproducible statistical summaries for scientific datasets.
tools
Research-method workflow guide for hypothesis framing, peer-review style critique, reproducibility planning, study-design checks, and scientific-writing structure. Use when the user asks for manuscript critique, research-gap framing, hypothesis generation, reproducibility checklists, or study-planning support that should stay on the research side rather than patient-care decisions.
tools
Scientific visualization workflow guide for publication-ready static figures with seaborn or matplotlib and interactive figures with Plotly. Use when the user asks for scientific plots, cohort or assay figures, publication graphics, dashboards, or reusable plotting scripts for research datasets.
tools
Drug-patent landscape workflow guide for searching US patents via the PatentsView API, classifying pharmaceutical claim types (NCE, formulation, method-of-use, polymorph, combination, biologic, process), grouping by patent family and assignee, estimating expiry timelines, and cross-referencing the FDA Orange Book for marketed-drug exclusivity windows. Use when the user asks about patent coverage, IP white-space, patent cliffs, or competitive filing activity around a drug, target, or compound class without asking for legal counsel.