Mathmodel Skill
handsomeZR-netizen/mathmodel-skill
CUMCM 国赛、MCM/ICM 美赛与电工杯数学建模竞赛的端到端协作工作流。Use when a user explicitly works on one of these modeling contests or asks to run/review a modeling-competition paper from problem selection through modeling…
A skill your agent uses when generating Kaplan-Meier survival curves from tabular survival data containing time, event status, and a precomputed risk group.
$ npx skills add aipoch/medical-research-skills --skill km-survival-curve -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install aipoch/medical-research-skills km-survival-curve --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/aipoch/medical-research-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/'awesome-med-research-skills/Data Analysis/km-survival-curve' .claude/skills/km-survival-curve && 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 "km-survival-curve" agent skill from https://github.com/aipoch/medical-research-skills/tree/main/awesome-med-research-skills/Data%20Analysis/km-survival-curve into .claude/skills/km-survival-curve/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "km-survival-curve", 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/aipoch/medical-research-skills/tree/main/awesome-med-research-skills/Data%20Analysis/km-survival-curveType 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 aipoch/medical-research-skills --skill km-survival-curve -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install aipoch/medical-research-skills km-survival-curve --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/'awesome-med-research-skills/Data Analysis/km-survival-curve' .agents/skills/km-survival-curve && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "km-survival-curve" agent skill from https://github.com/aipoch/medical-research-skills/tree/main/awesome-med-research-skills/Data%20Analysis/km-survival-curve into .agents/skills/km-survival-curve/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "km-survival-curve", 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 aipoch/medical-research-skills --skill km-survival-curve -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install aipoch/medical-research-skills km-survival-curve --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/'awesome-med-research-skills/Data Analysis/km-survival-curve' .cursor/skills/km-survival-curve && 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 "km-survival-curve" agent skill from https://github.com/aipoch/medical-research-skills/tree/main/awesome-med-research-skills/Data%20Analysis/km-survival-curve into .cursor/skills/km-survival-curve/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "km-survival-curve", 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/aipoch/medical-research-skills.git --path 'awesome-med-research-skills/Data Analysis/km-survival-curve'--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 aipoch/medical-research-skills --skill km-survival-curve -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install aipoch/medical-research-skills km-survival-curve --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/'awesome-med-research-skills/Data Analysis/km-survival-curve' .gemini/skills/km-survival-curve && 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 "km-survival-curve" agent skill from https://github.com/aipoch/medical-research-skills/tree/main/awesome-med-research-skills/Data%20Analysis/km-survival-curve into .gemini/skills/km-survival-curve/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "km-survival-curve", 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 aipoch/medical-research-skills km-survival-curveInstalls 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 aipoch/medical-research-skills --skill km-survival-curve -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/'awesome-med-research-skills/Data Analysis/km-survival-curve' .github/skills/km-survival-curve && 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 "km-survival-curve" agent skill from https://github.com/aipoch/medical-research-skills/tree/main/awesome-med-research-skills/Data%20Analysis/km-survival-curve into .github/skills/km-survival-curve/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "km-survival-curve", 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 aipoch/medical-research-skills --skill km-survival-curve -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install aipoch/medical-research-skills km-survival-curve --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/'awesome-med-research-skills/Data Analysis/km-survival-curve' .opencode/skills/km-survival-curve && 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 "km-survival-curve" agent skill from https://github.com/aipoch/medical-research-skills/tree/main/awesome-med-research-skills/Data%20Analysis/km-survival-curve into .opencode/skills/km-survival-curve/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "km-survival-curve", 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.
km-survival-curveA skill your agent uses when generating Kaplan-Meier survival curves from tabular survival data containing time, event status, and a precomputed risk group.
Km Survival Curve is an agent skill from aipoch/medical-research-skills. Use when generating Kaplan-Meier survival curves from tabular survival data containing time, event status, and a precomputed risk group. Supports command-line parameter input, parameter validation, automatic time-unit handling, single-file PDF figure export, and session metadata capture.
Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 16 other files, including scripts and reference files (for example `eval_report_km-survival-curve_result.json`, `references/algorithm.md` and `references/cli-guide.md`).
It sits in Documents & Office. The repository describes itself as: Hundreds of agent skills for medical research, including protocol design, data analysis, evidence insights, and academic writing. The licence is MIT.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 686e09d. 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.
Ships 4 files in scripts/ (R), which the agent can run.
From the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
cloud.r-project.orgFrom 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.
Km Survival Curve loads about 2.5k tokens when it runs, and up to ~5.8k if it reads all its reference files. Until then it costs about 77 tokens; SKILL.md has 955 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); the scripts in this folder are not scanned.
The full file from aipoch/medical-research-skills at commit 686e09d, republished under its MIT licence (© aipoch). 955 words, ~2,451 tokens.
.claude/skills/km-survival-curve/SKILL.md (or your agent's skills folder). This skill also uses 12 other files; get the full folder from GitHub.Use this skill to run Kaplan-Meier survival analysis on a tabular dataset and export a single PDF survival figure.
Rscript scripts/main.R \
--input_file <input_file> \
--output_dir <output_dir> \
--time_col <time_column> \
--status_col <status_column> \
--risk_col <group_column>Rscript is available in the shell.optparse, data.table, survival, survminer, ggplot2.Rscript -e 'install.packages(c("optparse", "data.table", "survival", "survminer", "ggplot2"), repos="https://cloud.r-project.org")'.| Argument | Required | Description |
|---|---|---|
--input_file | Yes | Input data file in CSV or tab-delimited TXT/TSV format |
--output_dir | No | Output directory, default ./KM_Results |
--time_col | No | Survival time column, default futime |
--status_col | No | Event status column, default fustat |
--risk_col | No | Risk group column, default risk_group |
--time_unit | No | Time unit label: year, month, or day, default year |
--auto_convert_days | No | Heuristically convert large time values from days when time_unit is year or month, default true |
--statistics_method | No | logrank or wald, default logrank |
| Argument | Default | Description |
|---|---|---|
--figure_width | 10 | Figure width in inches |
--figure_height | 7 | Figure height in inches |
--figure_family | sans | Font family |
--title_x | Time | X-axis title. If left as default, the script renders Time (<time_unit>) |
--title_y | Survival probability | Y-axis title |
--title_main | empty | Plot title |
--legend_position | top | top, bottom, left, right, none |
--legend_show | true | Whether to show legend |
--legend_title | empty | Legend title |
--line_type | solid | Survival line type: solid, dashed, dotted, dotdash, longdash, twodash |
--line_size | 1 | Survival line width |
--line_colors | #4DBBD5,#E64B35,#00A087,#3C5488,#F39B7F,#8491B4,#91D1C2,#DC0000 | Comma-separated group colors |
--censor_show | true | Whether to show censor markers |
--censor_size | 7 | Censor marker size |
--confidence_show | true | Whether to show confidence interval |
--confidence_alpha | 0.2 | Confidence band transparency |
--risk_table_show | true | Whether to show the risk table |
--risk_table_border | true | Whether to show the risk table border |
--risk_table_panel | false | Whether to show the risk table panel background |
--risk_table_size | 6 | Risk table font size |
--axis_title_size | 12 | Axis title font size |
--axis_text_size | 10 | Axis tick-label font size |
--legend_text_size | 11 | Legend text font size |
.txt inputs must be tab-delimited.time must contain finite non-negative numeric values.status must be coded as 0 for censored and 1 for event.--line_colors must provide at least one color per retained group when you override the default palette.--auto_convert_days true and max(time) > 365, the script assumes the retained time values are in days and converts them to the requested --time_unit when time_unit is year or month.--auto_convert_days true when the source time column is known to be in days.--auto_convert_days to avoid incorrect conversion.--statistics_method wald only supports exactly 2 retained groups; use logrank for multi-group comparisons.--line_type values are rejected before plotting.Example input:
id fustat futime risk_score risk_group GPR161 RIBC2
TCGA-C5-A1M5 1 5.62191780821918 -1.10702407761445 low 2.82521576230566 5.35318564979635
TCGA-VS-A94W 0 3.40547945205479 -0.671246677921865 high 4.26241812321536 4.00802068790173Bundled test datasets:
tests/data/km_sample1.txt: baseline KM example with risk_grouptests/data/km_sample2.txt: alternate cohort for plotting and statistics examplestests/data/km_sample3.txt: additional cohort for validation and repeated testingscripts/main.R with the requested output directory and any optional plot parameters.km-plot.pdf.If you omit --input_file, the script exits with SKILL_MISSING_INPUT.
Expected output:
<output_dir>/
├── km-plot.pdf
└── session_info.txtmax(time) > 365; it does not infer the true source unit from metadata.--auto_convert_days false.time_unit is year or month.km-plot.pdf may not be byte-identical across repeated runs because PDF metadata and graphics-device output can vary.| Need | File |
|---|---|
| Kaplan-Meier method details and interpretation | references/algorithm.md |
| More CLI examples | references/cli-guide.md |
| Error diagnosis | references/troubleshooting.md |
| Main execution entry point | scripts/main.R |
| Sample test data | tests/data/km_sample1.txt, tests/data/km_sample2.txt, tests/data/km_sample3.txt |
Basic Kaplan-Meier analysis:
Rscript scripts/main.R \
--input_file tests/data/km_sample1.txt \
--output_dir tests/output_basicCustom column names:
Rscript scripts/main.R \
--input_file tests/data/km_sample1.txt \
--time_col futime \
--status_col fustat \
--risk_col risk_group \
--output_dir tests/output_custom_columnsCustom plot title:
Rscript scripts/main.R \
--input_file tests/data/km_sample2.txt \
--title_main "Study KM Curve" \
--output_dir tests/output_titleHide confidence interval and risk table:
Rscript scripts/main.R \
--input_file tests/data/km_sample3.txt \
--confidence_show false \
--risk_table_show false \
--output_dir tests/output_simpleRscript scripts/main.R --helpRscript scripts/main.R \
--input_file tests/data/km_sample1.txt \
--output_dir tests/validation_outputAfter running analysis, verify that tests/validation_output/km-plot.pdf exists.
SKILL_FILE_NOT_FOUND: Input file path is wrong or inaccessible.SKILL_MISSING_COLUMNS: A requested time, status, or risk group column is missing.SKILL_INVALID_DATA: Input data is malformed or unsuitable for survival analysis.SKILL_INVALID_DATA: A continuous or near-unique risk column was supplied where a categorical group column is required.SKILL_INVALID_PARAMETER: An argument value is invalid.SKILL_INVALID_PARAMETER: Plotting options such as --line_type or --line_colors are incompatible with the retained groups.SKILL_INSUFFICIENT_DATA: Too few complete observations remain after filtering.SKILL_DEPENDENCY_MISSING: A required R package such as optparse or survival is unavailable.If the issue is not obvious, read references/troubleshooting.md.
© aipoch, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 12 other files (scripts, references) in awesome-med-research-skills/Data Analysis/km-survival-curve of aipoch/medical-research-skills.
Open the folder on GitHubat commit 686e09d
Km Survival Curve 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 |
|---|---|---|---|---|---|---|
| Km Survival Curve this skillaipoch/medical-research-skills | 1.9k | — | ~2.5k | Automated safety check: Pass | MIT | |
| Mathmodel SkillhandsomeZR-netizen/mathmodel-skill | 292 | — | ~2.5k | Automated safety check: Pass | MIT | |
| Power DesignItsssssJack/power-design | 722 | — | ~2.8k | Automated safety check: Pass | MIT | |
| Paginated Reportdata-goblin/power-bi-agentic-development | 1k | — | ~3.5k | Automated safety check: Pass | GPL-3.0 | |
| Data Cleanupsgharlow/claude-code-recipes | 389 | — | ~566 | Automated safety check: Pass | Custom licence | |
| Observal OpsObserval/Observal | 4.3k | — | ~654 | Automated safety check: Pass | Apache-2.0 |
handsomeZR-netizen/mathmodel-skill
CUMCM 国赛、MCM/ICM 美赛与电工杯数学建模竞赛的端到端协作工作流。Use when a user explicitly works on one of these modeling contests or asks to run/review a modeling-competition paper from problem selection through modeling…
ItsssssJack/power-design
Generate beautiful, on-brand HTML — presentation decks or full responsive websites — in any brand's design language, combining brand DNA extracted via Firecrawl with codified, research-backed design…
data-goblin/power-bi-agentic-development
Author, validate, publish, and test Power BI paginated reports in the RDL format.
sgharlow/claude-code-recipes
Clean and standardize messy tabular data (CSV, spreadsheet paste, system exports) into an analysis-ready dataset — consistent dates and names, typed columns, duplicates identified, missing values…
Observal/Observal
Inspects Observal traces, sessions, rankings, feedback, telemetry health, logs, and Agent insight reports.
MichaelYang-lyx/AIDABench
图片理解与数据提取 skill。当图片文件(.png/.jpg/.jpeg/.gif/.webp/.bmp)是主要输入且用户需要理解、提取数据或分析图片内容时使用。提供预配置的 caption 脚本(scripts/caption.py),通过 vision 模型将图片转为文本描述,无需额外配置 API Key。覆盖:(1) 通过 scripts/caption.py…
aipoch/medical-research-skills
Complete workflow for generating academic research posters from PDF literature; use when you need to extract paper content from PDFs and produce a LaTeX-based poster…
aipoch/medical-research-skills
Analyzes clinical diagnostic accuracy studies for bias using the QUADAS-2 tool.
aipoch/medical-research-skills
Perform comprehensive exploratory data analysis on scientific data files across 200+ file formats.
aipoch/medical-research-skills
A toolkit for preparing ISO 13485:2016 certification documentation for medical device QMS.
aipoch/medical-research-skills
Recommends target journals for manuscript submission by analyzing the paper topic/abstract and the journal distribution of similar PubMed literature; use when users ask for journal…
aipoch/medical-research-skills
Creates academic-poster writing packages for LaTeX using beamerposter, tikzposter, or baposter.
Categories
A skill your agent uses when generating Kaplan-Meier survival curves from tabular survival data containing time, event status, and a precomputed risk group. Km Survival Curve is an agent skill from aipoch/medical-research-skills. Use when generating Kaplan-Meier survival curves from tabular survival data containing time, event status, and a precomputed risk group.
Km Survival Curve fits situations like: generating Kaplan-Meier survival curves from tabular survival data containing time; A precomputed risk group.
Run `npx skills add aipoch/medical-research-skills --skill km-survival-curve -a claude-code`. Or copy the skill folder (awesome-med-research-skills/Data Analysis/km-survival-curve in aipoch/medical-research-skills) into .claude/skills/km-survival-curve in your project. Claude Code loads it when a task matches its description.
Run `npx skills add aipoch/medical-research-skills --skill km-survival-curve -a codex`. Or copy the skill folder (awesome-med-research-skills/Data Analysis/km-survival-curve in aipoch/medical-research-skills) into .agents/skills/km-survival-curve 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 aipoch/medical-research-skills --skill km-survival-curve -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/km-survival-curve, .gemini/skills/km-survival-curve, .github/skills/km-survival-curve and .opencode/skills/km-survival-curve in your project.
Going by SKILL.md and its folder, Km Survival Curve needs R for the scripts in its folder.
SKILL.md names 1 domain. In commands or code: cloud.r-project.org; the agent is likely to contact it when it follows the instructions. 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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Km Survival Curve is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.5k tokens (SKILL.md is roughly 9.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.4k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Km Survival Curve: Mathmodel Skill (handsomeZR-netizen/mathmodel-skill, 292 stars), Power Design (ItsssssJack/power-design, 722 stars), Paginated Report (data-goblin/power-bi-agentic-development, 1k stars) and Data Cleanup (sgharlow/claude-code-recipes, 389 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
aipoch (a GitHub organization) maintains it in aipoch/medical-research-skills, which has 1,937 GitHub stars. The repository holds 578 skills in this directory. The repository was last updated on September 17, 2026.
Source: aipoch/medical-research-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.