Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add LeoLin990405/r-analytics-skill --skill survivalgit clone --depth 1 https://github.com/LeoLin990405/r-analytics-skillWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/leolin990405/r-analytics-skill/survival)<a href="https://agentmods.dev/skills/leolin990405/r-analytics-skill/survival"><img src="https://agentmods.dev/badge/skills/leolin990405/r-analytics-skill/survival/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/leolin990405/r-analytics-skill/survival"><img src="https://agentmods.dev/badge/skills/leolin990405/r-analytics-skill/survival.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00026 | $0.00980 |
| Opus 5.5 | $0.00010 | $0.00392 |
| Sonnet 5.5 | $0.00005 | $0.00196 |
| Haiku 4.5 | $0.00003 | $0.00098 |
Grade A, and why
survival scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 168 lines — stays where its author put it; the contents beside it link to each section on GitHub.
survival
Core survival analysis functions.
Survival Objects
library(survival)
# Create survival object
Surv(time, event)
Surv(time, time2, event) # Interval censoring
Surv(time, event, type = "right")
# Example
surv_obj <- Surv(df$time, df$status)
Kaplan-Meier Estimation
# Fit KM curve
km_fit <- survfit(Surv(time, status) ~ 1, data = df)
# By group
km_fit <- survfit(Surv(time, status) ~ group, data = df)
# Summary
summary(km_fit)
summary(km_fit, times = c(30, 60, 90))
# Median survival
km_fit
# Plot
plot(km_fit)
plot(km_fit, conf.int = TRUE)
Cox Proportional Hazards
# Fit Cox model
cox_fit <- coxph(Surv(time, status) ~ age + sex + treatment, data = df)
# Summary
summary(cox_fit)
# Hazard ratios
exp(coef(cox_fit))
exp(confint(cox_fit))
# Test proportional hazards
cox.zph(cox_fit)
plot(cox.zph(cox_fit))
Stratified Cox Model
# Stratify by variable
cox_fit <- coxph(Surv(time, status) ~ age + strata(sex), data = df)
# Multiple strata
cox_fit <- coxph(Surv(time, status) ~ age + strata(sex, center), data = df)
Time-Varying Covariates
# Create time-varying dataset
tvc_data <- tmerge(df, df, id = id,
tstop = time,
event = event(time, status))
# Add time-varying covariate
tvc_data <- tmerge(tvc_data, covariate_df, id = id,
trt = tdc(start_time, treatment))
# Fit model
cox_fit <- coxph(Surv(tstart, tstop, event) ~ trt + age, data = tvc_data)
Parametric Models
# Weibull
weibull_fit <- survreg(Surv(time, status) ~ age + sex,
data = df, dist = "weibull")
# Exponential
exp_fit <- survreg(Surv(time, status) ~ age + sex,
data = df, dist = "exponential")
# Log-normal
lnorm_fit <- survreg(Surv(time, status) ~ age + sex,
data = df, dist = "lognormal")
# Log-logistic
llog_fit <- survreg(Surv(time, status) ~ age + sex,
data = df, dist = "loglogistic")
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 168 lines · 26 tokens per session scan A be79c2b92f52
survival is a skill published in the GitHub repository LeoLin990405/r-analytics-skill (5 stars, last pushed 2d ago), licensed MIT. It adds 26 tokens to every session and 980 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
survival compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| survivalLeoLin990405/r-analytics-skill | Skill | 5 | 2d ago | MIT | A | 26 | Claude Code, Codex |
| data-science-statistical-analysisj4flmao/agent-skills | Skill | 38 | 3d ago | MIT | A | 103 | Claude Code, Codex |
| r-expertpersonamanagmentlayer/pcl | Skill | 44 | 11d ago | Apache-2.0 | A | 53 | Claude Code |
| stata-ai-fusionhaoyu-haoyu/stata-ai-fusion | Skill | 45 | 4mo ago | MIT | A | 117 | Claude Code, Codex |
| audit-structural-equivalenceyogsoth-ai/de-anthropocentric-research-engine | Skill | 510 | 14d ago | Apache-2.0 | A | 55 | Claude Code, Codex |
| ara-compileyogsoth-ai/de-anthropocentric-research-engine | Skill | 510 | 14d ago | Apache-2.0 | A | 33 | Claude Code |
| audit-explanatory-compressionyogsoth-ai/de-anthropocentric-research-engine | Skill | 510 | 14d ago | Apache-2.0 | A | 43 | Claude Code, Codex |