← Back to Skills Marketplace
aipoch-ai

Survival Analysis (KM)

by AIpoch · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
511
Downloads
1
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install survival-analysis-km
Description
Generates Kaplan-Meier survival curves, calculates survival statistics (log-rank test, median survival time), and estimates hazard ratios for clinical and bi...
Usage Guidance
This package is coherent with its stated purpose and uses appropriate libraries. Before installing/using: (1) run the script in an isolated sandbox (non-production) with non-sensitive test data; (2) review the full scripts/main.py (the provided copy was truncated in the bundle you gave me) to confirm there are no network calls, hidden subprocess invocations, or filesystem accesses beyond the declared input/output; (3) pin dependency versions in requirements.txt to reduce supply-chain risk; (4) ensure the output directory and input paths are validated/sandboxed to avoid accidental path traversal or overwriting important files; and (5) if you will analyze real clinical data, get a biostatistician to review results and ensure you meet privacy/regulatory requirements.
Capability Analysis
Type: OpenClaw Skill Name: survival-analysis-km Version: 1.0.0 The skill bundle is classified as suspicious due to path traversal vulnerabilities in `scripts/main.py`. The `--input` and `--output` arguments are used directly with `pd.read_csv`, `os.path.exists`, `os.makedirs`, `plt.savefig`, `df.to_csv`, and `open()` without proper sanitization, allowing an attacker to potentially read or write files to arbitrary locations on the file system (e.g., using `../` sequences). While this represents a significant security flaw, there is no clear evidence of intentional malicious behavior such as data exfiltration, backdoor installation, or unauthorized remote control. The `SKILL.md` documentation itself does not contain prompt injection attempts and accurately claims no external network access, which is verified by the code.
Capability Assessment
Purpose & Capability
Name/description, SKILL.md, requirements.txt, sample data, and scripts/main.py all align with a survival-analysis tool. Declared dependencies (lifelines, pandas, numpy, matplotlib, seaborn) are appropriate and expected.
Instruction Scope
The SKILL.md instructs running the included Python script with a CSV input and writing outputs to a results directory — this matches the code. Minor inconsistencies in SKILL.md (parameter table flags: e.g., `--group` and `--risk-table` marked as required in the table while elsewhere optional) are documentation issues but do not indicate malicious intent. The doc requests input-path validation and restricting output to workspace, but the visible code performs only basic path existence and CSV validation; there is no explicit sanitization of output path nor explicit enforcement against `../` traversal in the shown code.
Install Mechanism
No install spec; skill is instruction-only and ships a requirements.txt for pip. This is standard for Python scripts and is low risk compared to downloading arbitrary binaries from unknown hosts.
Credentials
The skill requests no environment variables or credentials. Dependencies are reasonable for the stated purpose. There are no signs of unrelated credential access in the provided code.
Persistence & Privilege
always:false and no install hooks were provided. The skill does not request persistent/privileged presence or modification of other skill configs based on the supplied files.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install survival-analysis-km
  3. After installation, invoke the skill by name or use /survival-analysis-km
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of the survival-analysis-km skill for biomedical survival data analysis. - Generates Kaplan-Meier survival curves and publication-ready plots - Performs log-rank, Wilcoxon, and Peto-Peto statistical tests - Calculates hazard ratios and median survival times - Supports multi-group analysis and optional at-risk tables - Outputs include plots, statistical summaries, hazard ratios, and human-readable reports - Designed for clinical and biological time-to-event data analysis in Python
Metadata
Slug survival-analysis-km
Version 1.0.0
License
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Survival Analysis (KM)?

Generates Kaplan-Meier survival curves, calculates survival statistics (log-rank test, median survival time), and estimates hazard ratios for clinical and bi... It is an AI Agent Skill for Claude Code / OpenClaw, with 511 downloads so far.

How do I install Survival Analysis (KM)?

Run "/install survival-analysis-km" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Survival Analysis (KM) free?

Yes, Survival Analysis (KM) is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Survival Analysis (KM) support?

Survival Analysis (KM) is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Survival Analysis (KM)?

It is built and maintained by AIpoch (@aipoch-ai); the current version is v1.0.0.

💬 Comments