survival-analysis-tools
Survival and time-to-event workflow guide for Kaplan-Meier summaries, log-rank tests, and Cox proportional hazards models with reproducible outputs.
Skill by DrugClaw
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/drugclaw-survival-analysis-tools
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: data, research, productivity
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/survival-analysis-tools
What's inside
- Skill 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.
- License
- Apache-2.0
- Instructions
- 79 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (2)
- SKILL.md
- survival_analysis.py · templates/
SKILL.md (first lines)
# 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.
## Related Skills
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`.From DrugClaw/DrugClaw, Apache-2.0.
More from DrugClaw/DrugClaw
- 0.517score
literature-review-tools
DrugClaw
Research-literature workflow guide for evidence-matrix assembly, citation-table normalization, structured review synthesis, and research-gap mapping.
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
bio-db-tools
DrugClaw
Query public biology databases and APIs including UniProt, RCSB PDB, AlphaFold DB, ClinVar, dbSNP, gnomAD, Ensembl, GEO, InterPro, KEGG, OpenTargets…
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
pharma-db-tools
DrugClaw
Query public drug-discovery and translational-research databases including PubChem, ChEMBL, BindingDB, openFDA, ClinicalTrials.gov, and OpenAlex.
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
pharma-ml-tools
DrugClaw
Pharmaceutical machine-learning workflow guide for library profiling, molecular featurization, benchmark dataset fetch, medicinal-chemistry filtering, and…
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
target-intelligence-tools
DrugClaw
Target research workflow guide for building compact drug-target dossiers across protein identity, disease evidence, known drugs, interaction partners…
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
grn-tools
DrugClaw
Gene regulatory network workflow guide for transcriptomics and single-cell expression matrices using Arboreto, GRNBoost2, and GENIE3.
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
variant-analysis-tools
DrugClaw
Variant and VCF workflow guide for local SNV, indel, and structural-variant summarization, filtering, and consequence triage.
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
clinical-research-tools
DrugClaw
Clinical research workflow guide for protocol design, endpoint selection, evidence grading, reporting-guideline selection, statistical planning, and…
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
medical-data-tools
DrugClaw
Medical data workflow guide for DICOM metadata inspection and basic de-identification, physiological signal analysis with NeuroKit2, and cohort-table…
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
medical-qms-tools
DrugClaw
Medical quality-system and documentation workflow guide for ISO 13485, FDA QMSR, design controls, risk management, CAPA, document control, supplier…
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
bayesian-optimization-tools
DrugClaw
Bayesian optimization workflow guide for experiment suggestion, condition tuning, and closed-loop parameter search with Gaussian-process surrogates.
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
omics-tools
DrugClaw
Omics and single-cell workflow guide for AnnData, Scanpy-style dataset profiling, PyDESeq2-oriented count checks, pysam alignment inspection, and pyOpenMS…
SkillDFreshness: D★ 87Claude Code +9
Signals
- Stars
- 87
- Forks
- 8
- Open issues
- 1
- Last commit (this folder)
- Mar 11, 2026 (7 months ago)
- Last release
- Mar 13, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/DrugClaw/DrugClaw
- Website
- drugclaw.com
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from DrugClaw
- 0.517score
clinical-research-tools
DrugClaw
Clinical research workflow guide for protocol design, endpoint selection, evidence grading, reporting-guideline selection, statistical planning, and…
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
medical-qms-tools
DrugClaw
Medical quality-system and documentation workflow guide for ISO 13485, FDA QMSR, design controls, risk management, CAPA, document control, supplier…
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
variant-analysis-tools
DrugClaw
Variant and VCF workflow guide for local SNV, indel, and structural-variant summarization, filtering, and consequence triage.
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
grn-tools
DrugClaw
Gene regulatory network workflow guide for transcriptomics and single-cell expression matrices using Arboreto, GRNBoost2, and GENIE3.
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
medical-data-tools
DrugClaw
Medical data workflow guide for DICOM metadata inspection and basic de-identification, physiological signal analysis with NeuroKit2, and cohort-table…
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
pharma-db-tools
DrugClaw
Query public drug-discovery and translational-research databases including PubChem, ChEMBL, BindingDB, openFDA, ClinicalTrials.gov, and OpenAlex.
SkillDFreshness: D★ 87Claude Code +9
Cite this page
survival-analysis-tools skill. Agent Mart. https://agentmart.dev/skills/drugclaw-survival-analysis-tools (last updated 2026-10-24)