Agent skill

Time Dependent Roc

by aipoch in aipoch/medical-research-skills

A skill your agent uses when performing time-dependent ROC curve analysis for survival data with follow-up time, event status, and a numeric marker.

MITAuto-check passedDocuments & Office

Install Time Dependent Roc

skills CLI
$ npx skills add aipoch/medical-research-skills --skill time-dependent-roc -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aipoch/medical-research-skills time-dependent-roc --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ 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/time-dependent-roc' .claude/skills/time-dependent-roc && rm -rf skills-src

Use ~/.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/

Facts

Skill name
time-dependent-roc
GitHub stars
2k
Token cost
~1.5k tokens
SKILL.md length
501 words
Files
12 (incl. scripts, references)
Skills in repo
567
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when performing time-dependent ROC curve analysis for survival data with follow-up time, event status, and a numeric marker.

  • Works in 3 steps: Confirm the input file exists and… → Run scripts/main.R with the requested… → Check the output directory for the AUC…
  • Performing time-dependent ROC curve analysis for survival data with follow-up time
  • SKILL.md covers Use This Skill When, Primary Command, Prerequisites and Core Arguments, plus 7 more sections
  • Runs R scripts from its folder; reaches cloud.r-project.org

What it does

Time Dependent Roc is an agent skill from aipoch/medical-research-skills. Use when performing time-dependent ROC curve analysis for survival data with follow-up time, event status, and a numeric marker. Supports CSV/TXT/TSV/Excel input, riskscore as the default marker unless --markercol is provided, parameter validation, standardized output directories, AUC table export, ROC point export, and PDF figure generation.

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 15 other files, including scripts and reference files (for example `eval_report_time-dependent-roc_result.json`, `references/algorithm.md` and `references/cli-guide.md`).

It sits in Documents & Office, covering CSV and tabular files and Excel spreadsheets. It works with Microsoft Excel. 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.

When your agent uses it

  • Performing time-dependent ROC curve analysis for survival data with follow-up time
  • A numeric marker

Example prompts

  • “/time-dependent-roc”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Confirm the input file exists and includes futime, fustat, and risk_score, or plan to pass --marker_col.
  2. Run scripts/main.R with the requested time points.
  3. Check the output directory for the AUC table and PDF figure.

What it can do on your machine

Read from SKILL.md and the folder at commit 686e09d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    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.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • cloud.r-project.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Time Dependent Roc loads about 1.5k tokens when it runs, and up to ~4.1k if it reads all its reference files. Until then it costs about 92 tokens; SKILL.md has 501 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~92
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4.1k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from aipoch/medical-research-skills at commit 686e09d, republished under its MIT licence (© aipoch). 501 words, ~1,491 tokens.

Download SKILL.mdSave it as .claude/skills/time-dependent-roc/SKILL.md (or your agent's skills folder). This skill also uses 11 other files; get the full folder from GitHub.
name
time-dependent-roc
description
Use when performing time-dependent ROC curve analysis for survival data with follow-up time, event status, and a numeric marker. Supports CSV/TXT/TSV/Excel input, `risk_score` as the default marker unless `--marker_col` is provided, parameter validation, standardized output directories, AUC table export, ROC point export, and PDF figure generation.
license
MIT
author
AIPOCH

Source: https://github.com/aipoch/medical-research-skills

Time-Dependent ROC Analysis

Use this skill to compute and plot time-dependent ROC curves for survival outcomes.

Use This Skill When

  • You have survival data with futime and fustat columns.
  • You need time-specific ROC curves and AUC values for a numeric risk marker.
  • You want a command-line workflow with parameter validation and standardized outputs.
  • Your file contains a numeric marker column named risk_score, or you will provide another marker explicitly with --marker_col.

Primary Command

bash
Rscript scripts/main.R \
  --data_file <input_file> \
  --times <comma_separated_times> \
  --output_dir <output_dir>

Prerequisites

  • Rscript is available in the shell.
  • Required R packages: optparse, timeROC, survival, ggplot2.
  • Optional package for Excel input: openxlsx.
  • Install missing packages with Rscript -e 'install.packages(c("optparse", "timeROC", "survival", "ggplot2", "openxlsx"), repos="https://cloud.r-project.org")'.

Core Arguments

ArgumentRequiredDescription
--data_fileYesInput data file in CSV, TXT, TSV, TAB, XLS, or XLSX format
--timesNoPrediction time points, comma-separated. Default 1,3,5
--marker_colNoMarker column name. Default risk_score; provide this option when your file uses a different marker
--output_dirNoOutput directory, default ./TimeROC_Results
--time_unitNoTime unit label for plot/output: year, month, or day. Default year
--auto_convert_daysNoIf TRUE, convert large futime values from days to the selected unit when appropriate. Default TRUE
--weightingNoIPCW weighting method: aalen, marginal, or cox. Default aalen
--causeNoEvent code treated as the outcome of interest. Default 1

Input Requirements

  • The input file must contain futime and fustat columns.
  • The selected marker column must exist and be numeric or coercible to numeric.
  • If --marker_col is omitted, the input file must contain risk_score.
  • futime must be numeric or coercible to numeric.
  • fustat must be numeric or coercible to numeric.
  • Rows with missing futime, fustat, or marker values are excluded.
  • At least 5 complete rows and at least 1 event for the requested cause are required.

Example input:

text
id	fustat	futime	risk_score	risk_group	GPR161	RIBC2
TCGA-C5-A1M5	1	5.6219	-1.1070	low	2.8252	5.3532
TCGA-EA-A5O9	0	2.1589	-0.8964	low	2.6046	4.4293
TCGA-C5-A3HL	0	1.7014	-0.9044	low	4.1248	4.9166
Show full SKILL.md (212 more words)Show less

Minimal Workflow

  1. Confirm the input file exists and includes futime, fustat, and risk_score, or plan to pass --marker_col.
  2. Run scripts/main.R with the requested time points.
  3. Check the output directory for the AUC table and PDF figure.

If you omit --data_file, the script exits with SKILL_MISSING_INPUT.

Outputs

Expected output structure:

text
<output_dir>/
├── data/
│   └── time_roc_points.<csv|txt>
├── session_info.txt
├── figure/
│   └── time_roc.pdf
└── table/
    └── time_roc_auc.<csv|txt>

Primary output files:

  • data/time_roc_points.csv or data/time_roc_points.txt
  • table/time_roc_auc.csv or table/time_roc_auc.txt
  • figure/time_roc.pdf
  • session_info.txt

Exported result fields include:

  • time
  • time_unit
  • auc
  • marker_col
  • n_complete
  • n_events

Exported ROC point fields include:

  • false_positive_rate
  • sensitivity
  • time
  • time_unit
  • auc
  • curve_label

Read These Files When Needed

NeedFile
Statistical details and assumptionsreferences/algorithm.md
More CLI examplesreferences/cli-guide.md
Error diagnosisreferences/troubleshooting.md
Main execution entry pointscripts/main.R
Sample test datatests/data/

Quick Examples

Basic analysis:

bash
Rscript scripts/main.R \
  --data_file tests/data/time_roc_sample1.txt \
  --times 1,3,5 \
  --output_dir tests/output_basic

Specify marker column and plot styling:

bash
Rscript scripts/main.R \
  --data_file tests/data/time_roc_sample2.txt \
  --marker_col GPR161 \
  --times 1,2,4 \
  --line_colors "#4DBBD5,#E64B35,#00A087" \
  --legend_position bottom \
  --output_dir tests/output_gpr161

Validation

bash
Rscript scripts/main.R --help
bash
Rscript scripts/main.R \
  --data_file tests/data/time_roc_sample1.txt \
  --times 1,3,5 \
  --output_dir tests/validation_output

After running analysis, verify that these files exist:

  • tests/validation_output/data/time_roc_points.csv
  • tests/validation_output/table/time_roc_auc.csv
  • tests/validation_output/figure/time_roc.pdf
  • tests/validation_output/session_info.txt

Common Errors

  • SKILL_FILE_NOT_FOUND: Input file path is wrong or inaccessible.
  • SKILL_MISSING_COLUMNS: futime or fustat is missing.
  • SKILL_INVALID_DATA: The marker column is non-numeric, no complete rows remain, event coding is unsuitable, or requested time points yield unusable AUC values.
  • SKILL_INVALID_PARAMETER: An argument value is invalid.
  • SKILL_INSUFFICIENT_DATA: Too few complete rows or no target events remain.
  • SKILL_DEPENDENCY_MISSING: A required R package such as optparse, timeROC, survival, ggplot2, or openxlsx 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

Files

SKILL.md and 11 other files (scripts, references) in awesome-med-research-skills/Data Analysis/time-dependent-roc of aipoch/medical-research-skills.

  • SKILL.md
  • eval_report_time-dependent-roc_result.json
  • references/algorithm.md
  • references/cli-guide.md
  • references/troubleshooting.md
  • scripts/functions.R
  • scripts/main.R
  • scripts/run_analysis.R
  • scripts/utils.R
  • tests/data/time_roc_sample1.txt
  • tests/data/time_roc_sample2.txt
  • tests/data/time_roc_sample3.txt

Open the folder on GitHubat commit 686e09d

Compare with similar skills

Time Dependent Roc 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.

Time Dependent Roc compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Time Dependent Roc this skillaipoch/medical-research-skills2k—~1.5kAutomated safety check: PassMIT
Data Table Managern8n-io/n8n207k—~2.3kAutomated safety check: PassCustom licence
Instrument Data To Allotropeaws-samples/amazon-bedrock-agents-healthcare-lifesciences2742 repos~2.7kAutomated safety check: PassApache-2.0
Markitshift-labs-ai/markit1.3k—~299Automated safety check: PassMIT
Convert Fileduckdb/duckdb-skills6001 repos~720Automated safety check: NotesMIT
Research Integrity Auditxuzhougeng/wisp-science1k—~2.6kAutomated safety check: PassAGPL-3.0

Similar skills

  • Official

    Load before calling data-tables or parse-file. An agent skill from n8n-io/n8n.

    207k GitHub stars~2.3k tokensUpdated today
    Documents & OfficeAuto-check passed
  • Instrument Data To Allotrope

    aws-samples/amazon-bedrock-agents-healthcare-lifesciences

    Official

    Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV.

    274 GitHub starsUsed in 2 repos~2.7k tokens
    Documents & OfficeAuto-check passed
  • Markit

    shift-labs-ai/markit

    Convert files and URLs to Markdown. An agent skill from shift-labs-ai/markit.

    1.3k GitHub stars~299 tokensUpdated 1 mo ago
    Documents & OfficeAuto-check passed
  • Convert File

    duckdb/duckdb-skills

    Official

    Convert any data file to another format: CSV, Parquet, JSON, Excel, GeoJSON, and more.

    600 GitHub starsUsed in 1 repo~720 tokens
    Documents & OfficeAuto-check: notes
  • Research Integrity Audit

    xuzhougeng/wisp-science

    学术审查 / research-integrity screening of a manuscript's figures and reported numbers.

    1k GitHub stars~2.6k tokensUpdated today
    Documents & OfficeAuto-check passed
  • Jmh Benchmark Compare

    eclipse-rdf4j/rdf4j

    Parse JMH result text by finding the first header line that starts with Benchmark and contains Mode and Score, build a structured table for all columns/rows, compare overlapping benchmarks across 2+…

    420 GitHub stars~804 tokensUpdated yesterday
    Documents & OfficeAuto-check passed

More from aipoch/medical-research-skills

All 567 skills in this repo
  • Academic Poster Generator

    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…

    2k GitHub stars~2.2k tokensUpdated 21 days ago
    Auto-check passed
  • Diagnostic Study Quality Assessment Quadas

    aipoch/medical-research-skills

    Analyzes clinical diagnostic accuracy studies for bias using the QUADAS-2 tool.

    2k GitHub stars~1.4k tokensUpdated 21 days ago
    Auto-check passed
  • Exploratory Data Analysis

    aipoch/medical-research-skills

    Perform comprehensive exploratory data analysis on scientific data files across 200+ file formats.

    2k GitHub stars~3.7k tokensUpdated 21 days ago
    Auto-check passed
  • Iso Certification

    aipoch/medical-research-skills

    A toolkit for preparing ISO 13485:2016 certification documentation for medical device QMS.

    2k GitHub stars~1.8k tokensUpdated 21 days ago
    Auto-check passed
  • Journal Skills

    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…

    2k GitHub stars~1.7k tokensUpdated 21 days ago
    Auto-check passed
  • Latex Posters

    aipoch/medical-research-skills

    Creates academic-poster writing packages for LaTeX using beamerposter, tikzposter, or baposter.

    2k GitHub stars~1.3k tokensUpdated 21 days ago
    Auto-check passed

Works with

Questions about Time Dependent Roc

What does Time Dependent Roc do?

A skill your agent uses when performing time-dependent ROC curve analysis for survival data with follow-up time, event status, and a numeric marker. Time Dependent Roc is an agent skill from aipoch/medical-research-skills. Use when performing time-dependent ROC curve analysis for survival data with follow-up time, event status, and a numeric marker.

When should I use Time Dependent Roc?

Time Dependent Roc fits situations like: performing time-dependent ROC curve analysis for survival data with follow-up time; A numeric marker.

How do I install Time Dependent Roc in Claude Code?

Run `npx skills add aipoch/medical-research-skills --skill time-dependent-roc -a claude-code`. Or copy the skill folder (awesome-med-research-skills/Data Analysis/time-dependent-roc in aipoch/medical-research-skills) into .claude/skills/time-dependent-roc in your project. Claude Code loads it when a task matches its description.

How do I install Time Dependent Roc in Codex?

Run `npx skills add aipoch/medical-research-skills --skill time-dependent-roc -a codex`. Or copy the skill folder (awesome-med-research-skills/Data Analysis/time-dependent-roc in aipoch/medical-research-skills) into .agents/skills/time-dependent-roc in your project. Codex loads it when a task matches its description.

Can I use Time Dependent Roc in Cursor, Gemini CLI or GitHub Copilot?

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 time-dependent-roc -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/time-dependent-roc, .gemini/skills/time-dependent-roc, .github/skills/time-dependent-roc and .opencode/skills/time-dependent-roc in your project.

What does Time Dependent Roc need to run?

Going by SKILL.md and its folder, Time Dependent Roc needs R for the scripts in its folder.

Does Time Dependent Roc access the network?

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.

Is Time Dependent Roc safe to install?

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.

What licence does Time Dependent Roc use?

Time Dependent Roc is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Time Dependent Roc use?

About 1.5k tokens (SKILL.md is roughly 6k 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 2.7k tokens, read only when the agent opens those files.

What are the alternatives to Time Dependent Roc?

Skills that share tags, products or a category with Time Dependent Roc: Data Table Manager (n8n-io/n8n, 207k stars), Instrument Data To Allotrope (aws-samples/amazon-bedrock-agents-healthcare-lifesciences, 274 stars), Markit (shift-labs-ai/markit, 1.3k stars) and Convert File (duckdb/duckdb-skills, 600 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Time Dependent Roc?

aipoch (a GitHub organization) maintains it in aipoch/medical-research-skills, which has 1,974 GitHub stars. The repository holds 567 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.