Matplotlib
zLanqing/codex-claude-academic-skills
Low-level plotting library for full customization. An agent skill from zLanqing/codex-claude-academic-skills.
Conduct Kaplan-Meier, Cox regression, and time-to-event analyses
$ npx skills add wentorai/research-plugins --skill survival-analysis-guide -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install wentorai/research-plugins survival-analysis-guide --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/analysis/statistics/survival-analysis-guide .claude/skills/survival-analysis-guide && rm -rf skills-srcUse ~/.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/
Install the "survival-analysis-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/analysis/statistics/survival-analysis-guide into .claude/skills/survival-analysis-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "survival-analysis-guide", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/wentorai/research-plugins/tree/main/skills/analysis/statistics/survival-analysis-guideType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add wentorai/research-plugins --skill survival-analysis-guide -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install wentorai/research-plugins survival-analysis-guide --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/analysis/statistics/survival-analysis-guide .agents/skills/survival-analysis-guide && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "survival-analysis-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/analysis/statistics/survival-analysis-guide into .agents/skills/survival-analysis-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "survival-analysis-guide", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add wentorai/research-plugins --skill survival-analysis-guide -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install wentorai/research-plugins survival-analysis-guide --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/analysis/statistics/survival-analysis-guide .cursor/skills/survival-analysis-guide && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "survival-analysis-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/analysis/statistics/survival-analysis-guide into .cursor/skills/survival-analysis-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "survival-analysis-guide", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/wentorai/research-plugins.git --path skills/analysis/statistics/survival-analysis-guide--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add wentorai/research-plugins --skill survival-analysis-guide -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install wentorai/research-plugins survival-analysis-guide --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/analysis/statistics/survival-analysis-guide .gemini/skills/survival-analysis-guide && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "survival-analysis-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/analysis/statistics/survival-analysis-guide into .gemini/skills/survival-analysis-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "survival-analysis-guide", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install wentorai/research-plugins survival-analysis-guideInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add wentorai/research-plugins --skill survival-analysis-guide -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/analysis/statistics/survival-analysis-guide .github/skills/survival-analysis-guide && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "survival-analysis-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/analysis/statistics/survival-analysis-guide into .github/skills/survival-analysis-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "survival-analysis-guide", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add wentorai/research-plugins --skill survival-analysis-guide -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install wentorai/research-plugins survival-analysis-guide --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/analysis/statistics/survival-analysis-guide .opencode/skills/survival-analysis-guide && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "survival-analysis-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/analysis/statistics/survival-analysis-guide into .opencode/skills/survival-analysis-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "survival-analysis-guide", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
survival-analysis-guideConduct Kaplan-Meier, Cox regression, and time-to-event analyses
Survival Analysis Guide is an agent skill from wentorai/research-plugins. Conduct Kaplan-Meier, Cox regression, and time-to-event analyses
Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Data & Analytics. The repository describes itself as: 350+ academic research skills, MCP configs, and plugins for Research-Claw and AI agents. The licence is MIT.
Read from SKILL.md and the folder at commit bf44b3c. It shows what the files ask for, not the result of running them.
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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Survival Analysis Guide loads about 1.4k tokens when it runs. Until then it costs about 22 tokens; SKILL.md has 162 words of instructions outside code blocks.
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.
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.
The full file from wentorai/research-plugins at commit bf44b3c, republished under its MIT licence (© wentorai). 162 words, ~1,408 tokens.
.claude/skills/survival-analysis-guide/SKILL.md (or your agent's skills folder).A skill for conducting time-to-event analyses including Kaplan-Meier estimation, log-rank tests, and Cox proportional hazards regression. Covers censoring concepts, assumption checking, and reporting standards for clinical and social science research.
Survival analysis studies the time until an event of interest occurs. Despite the name, the "event" need not be death -- it can be any well-defined transition:
Medical: Time to disease recurrence, death, or recovery
Engineering: Time to equipment failure
Social: Time to job termination, divorce, or graduation
Business: Time to customer churn or first purchase
Ecology: Time to species extinction in a habitatRight censoring (most common):
The event has not occurred by the end of the study period.
Example: Patient is still alive at study end.
The survival time is "at least T" -- we know T but not the true event time.
Left censoring:
The event occurred before the observation period began.
Example: HIV infection detected, but seroconversion happened before testing.
Interval censoring:
The event occurred between two observation times.
Example: A patient tests negative at visit 3 and positive at visit 4.import numpy as np
def kaplan_meier(times: list[float], events: list[int]) -> dict:
"""
Compute Kaplan-Meier survival estimates.
Args:
times: Observed times (event or censoring time)
events: Event indicator (1 = event occurred, 0 = censored)
Returns:
Dict with time points and survival probabilities
"""
data = sorted(zip(times, events), key=lambda x: x[0])
n = len(data)
unique_event_times = sorted(set(t for t, e in data if e == 1))
survival = 1.0
results = {"time": [0], "survival": [1.0]}
at_risk = n
idx = 0
for t_event in unique_event_times:
# Count censored before this event time
while idx < n and data[idx][0] < t_event:
if data[idx][1] == 0:
at_risk -= 1
idx += 1
# Count events at this time
d = sum(1 for t, e in data if t == t_event and e == 1)
c = sum(1 for t, e in data if t == t_event and e == 0)
survival *= (at_risk - d) / at_risk
results["time"].append(t_event)
results["survival"].append(survival)
at_risk -= (d + c)
idx = max(idx, sum(1 for t, _ in data if t <= t_event))
return resultsfrom lifelines import KaplanMeierFitter
kmf = KaplanMeierFitter()
kmf.fit(durations=time_column, event_observed=event_column, label="Overall")
# Plot the survival curve
kmf.plot_survival_function()
# Median survival time
print(f"Median survival: {kmf.median_survival_time_}")
# Survival probability at specific time
print(f"5-year survival: {kmf.predict(5.0):.3f}")from lifelines.statistics import logrank_test
results = logrank_test(
durations_A=group_a_times,
durations_B=group_b_times,
event_observed_A=group_a_events,
event_observed_B=group_b_events
)
print(f"Test statistic: {results.test_statistic:.3f}")
print(f"p-value: {results.p_value:.4f}")The log-rank test is the standard method for comparing two or more survival curves. It tests the null hypothesis that the survival functions are identical. It is most powerful when hazards are proportional (consistent relative risk over time).
from lifelines import CoxPHFitter
import pandas as pd
cph = CoxPHFitter()
cph.fit(
df,
duration_col="time",
event_col="event",
formula="age + treatment + stage"
)
cph.print_summary()
# Hazard ratios
print(cph.summary[["exp(coef)", "exp(coef) lower 95%", "exp(coef) upper 95%", "p"]])Hazard Ratio (HR) = exp(coefficient)
HR = 1.0 No effect
HR > 1.0 Increased hazard (worse survival)
HR < 1.0 Decreased hazard (better survival)
Example output:
treatment: HR = 0.65, 95% CI [0.48, 0.88], p = 0.005
Interpretation: Treatment group has 35% lower hazard of the event
compared to the control group.# Schoenfeld residuals test
cph.check_assumptions(df, p_value_threshold=0.05, show_plots=True)If the proportional hazards assumption is violated, consider: stratified Cox models, time-varying covariates, or accelerated failure time (AFT) models as alternatives.
1. Report number of events and total person-time at risk
2. Present Kaplan-Meier curves with number-at-risk tables
3. Report median survival with 95% confidence intervals
4. Report hazard ratios with 95% CIs and p-values
5. State which covariates were included in adjusted models
6. Report proportional hazards assumption test results
7. Specify the handling of tied event times (Efron, Breslow)
8. Note any competing risks and how they were handled© wentorai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/analysis/statistics/survival-analysis-guide of wentorai/research-plugins.
Open the folder on GitHubat commit bf44b3c
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in wentorai/research-plugins, which our catalogue first saw on October 7, 2026.
Survival Analysis Guide 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Survival Analysis Guide this skillwentorai/research-plugins | 298 | 1 repos | ~1.4k | Automated safety check: Pass | MIT | |
| MatplotlibzLanqing/codex-claude-academic-skills | 4.7k | 17 repos | ~2.9k | Automated safety check: Pass | MIT | |
| Exploratory Data Analysisspacering-net/codeg | 3.9k | 14 repos | ~3.6k | Automated safety check: Pass | MIT | |
| Scikit LearnzLanqing/codex-claude-academic-skills | 4.7k | 16 repos | ~3.9k | Automated safety check: Pass | BSD-3-Clause | |
| Chart Visualizationbytedance/deer-flow | 84k | 1 repos | ~840 | Automated safety check: Pass | MIT | |
| TimesFM Forecastinggoogle-research/timesfm | 34k | — | ~4.7k | Automated safety check: Pass | Apache-2.0 |
zLanqing/codex-claude-academic-skills
Low-level plotting library for full customization. An agent skill from zLanqing/codex-claude-academic-skills.
spacering-net/codeg
Perform comprehensive exploratory data analysis on scientific data files across 200+ file formats.
zLanqing/codex-claude-academic-skills
Machine learning in Python with scikit-learn. An agent skill from zLanqing/codex-claude-academic-skills.
bytedance/deer-flow
Picks a suitable chart type from 26 options for your data, maps the data to that chart's parameters and generates a chart image through a JavaScript script.
google-research/timesfm
Forecasts any univariate time series zero-shot with Google's TimesFM model, returning point forecasts and calibrated prediction intervals without training.
vercel/next.js
Benchmark React or Next.js changes on Vercel Sandbox VMs with paired A/B statistics: react PR/commit vs base, or Next.js PR/commit vs base, measured end-to-end through the bench/render-pipeline app…
wentorai/research-plugins
Craft structured research abstracts that maximize clarity and journal acceptance
wentorai/research-plugins
Manage academic citations across BibTeX, APA, MLA, and Chicago formats
wentorai/research-plugins
Summarize academic papers with structured extraction of key elements
wentorai/research-plugins
Evidence-based study techniques for academic learning and retention
wentorai/research-plugins
Adjust writing tone and register for academic audiences and venues
wentorai/research-plugins
Academic translation, post-editing, and Chinglish correction guide
Categories
Conduct Kaplan-Meier, Cox regression, and time-to-event analyses. Survival Analysis Guide is an agent skill from wentorai/research-plugins.
Survival Analysis Guide fits situations like: data & Analytics work in your project.
Run `npx skills add wentorai/research-plugins --skill survival-analysis-guide -a claude-code`. Or copy the skill folder (skills/analysis/statistics/survival-analysis-guide in wentorai/research-plugins) into .claude/skills/survival-analysis-guide in your project. Claude Code loads it when a task matches its description.
Run `npx skills add wentorai/research-plugins --skill survival-analysis-guide -a codex`. Or copy the skill folder (skills/analysis/statistics/survival-analysis-guide in wentorai/research-plugins) into .agents/skills/survival-analysis-guide in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add wentorai/research-plugins --skill survival-analysis-guide -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-guide, .gemini/skills/survival-analysis-guide, .github/skills/survival-analysis-guide and .opencode/skills/survival-analysis-guide in your project.
SKILL.md names no scripts, command-line tools or credentials: Survival Analysis Guide is instructions for the agent only. Our summary lists: Python 3.
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.
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.
Survival Analysis Guide is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.4k tokens (SKILL.md is roughly 5.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Survival Analysis Guide: Matplotlib (zLanqing/codex-claude-academic-skills, 4.7k stars), Exploratory Data Analysis (spacering-net/codeg, 3.9k stars), Scikit Learn (zLanqing/codex-claude-academic-skills, 4.7k stars) and Chart Visualization (bytedance/deer-flow, 84k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
wentorai (a GitHub user) maintains it in wentorai/research-plugins, which has 298 GitHub stars. The repository holds 405 skills in this directory. The repository was last updated on June 19, 2026.
Source: wentorai/research-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.