scientific-skills/Others/ebm-calculator/SKILL.md
Evidence-Based Medicine diagnostic test calculator. Computes sensitivity, specificity, PPV, NPV, likelihood ratios, NNT, and pre/post-test probability from 2x2 contingency table inputs.
npx skillsauth add aipoch/medical-research-skills ebm-calculatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Compute Evidence-Based Medicine statistics from diagnostic test data: sensitivity, specificity, PPV/NPV with prevalence adjustment, likelihood ratios, NNT, and pre/post-test probability conversion.
python -m py_compile scripts/main.py
python scripts/main.py --help
Fallback template: If scripts/main.py fails or required inputs are absent, report: (a) which parameters are missing, (b) which metrics can still be computed from available data, (c) the manual formula for the requested mode.
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| --mode, -m | string | No | Mode: diagnostic, nnt, probability (default: diagnostic) |
| --tp | int | diagnostic | True positives (must be ≥ 0) |
| --fn | int | diagnostic | False negatives (must be ≥ 0) |
| --tn | int | diagnostic | True negatives (must be ≥ 0) |
| --fp | int | diagnostic | False positives (must be ≥ 0) |
| --prevalence, -p | float | No | Disease prevalence 0–1 (adjusts PPV/NPV; must be in [0, 1]) |
| --control-rate | float | nnt | Control event rate 0–1 |
| --experimental-rate | float | nnt | Experimental event rate 0–1 |
| --pretest | float | probability | Pre-test probability 0–1 |
| --lr | float | probability | Likelihood ratio |
| --output, -o | string | No | Output file path (default: stdout) |
Validation rules:
result variable is always initialized before json.dumps(result) to prevent unbound variable errors.# Diagnostic mode
python scripts/main.py --mode diagnostic --tp 90 --fn 10 --tn 85 --fp 15 --prevalence 0.1
# NNT mode
python scripts/main.py --mode nnt --control-rate 0.3 --experimental-rate 0.2
# Pre/post-test probability
python scripts/main.py --mode probability --pretest 0.15 --lr 5.2
{
"sensitivity": 0.90,
"specificity": 0.85,
"ppv": 0.40,
"npv": 0.99,
"lr_positive": 6.0,
"lr_negative": 0.12,
"interpretation": "High sensitivity; PPV low due to low prevalence"
}
Every response must make these explicit:
This skill accepts: diagnostic test data (2×2 table values, event rates, or pre-test probability + likelihood ratio) for EBM metric calculation.
If the request does not involve EBM statistical calculation — for example, asking for clinical treatment recommendations, drug dosing, or patient-specific medical advice — do not proceed. Instead respond:
"
ebm-calculatoris designed to compute Evidence-Based Medicine statistics from diagnostic test data. Your request appears to be outside this scope. Please provide the required numeric inputs for your chosen mode, or use a more appropriate tool for your task."
scripts/main.py fails, report the failure point, summarize what still can be completed safely, and provide a manual fallback.tools
Generates complete conventional oncology bulk-transcriptome biomarker and hub-gene research designs from a user-provided cancer type and study direction. Always use this skill whenever a user wants to design, plan, or build a tumor bioinformatics study centered on differential expression, prognostic filtering or risk modeling, PPI-based hub-gene prioritization, diagnostic/prognostic evaluation, clinical association, immune infiltration context, methylation context, and optional tissue or cell validation. Covers five study patterns (signature-first prognostic workflow, hub-gene-first biomarker workflow, hybrid signature-to-hub workflow, immune-context biomarker workflow, translational validation workflow) and always outputs four workload configs (Lite / Standard / Advanced / Publication+) with recommended primary plan, step-by-step workflow, figure plan, validation strategy, minimal executable version, publication upgrade path...
development
Generates complete conventional non-oncology bioinformatics research designs from a user-provided disease context, process-related gene family or biological theme, and validation direction. Use when a study centers on multi-dataset bulk transcriptome integration, DEG analysis, process-gene intersection, enrichment analysis, GSEA, PPI hub-gene prioritization, TF/miRNA regulatory networks, ROC-based biomarker evaluation, and immune infiltration analysis. Covers five study patterns (process-DEG discovery, enrichment/GSEA interpretation, hub-gene prioritization, regulatory-network and immune interpretation, multi-layer public validation) and always outputs Lite / Standard / Advanced / Publication+ with a recommended primary plan, stepwise workflow, figure plan, validation hierarchy, minimal executable version, publication upgrade path, and strictly verified literature retrieval.
tools
Plans confounder control, variable adjustment logic, and bias mitigation strategies at the protocol stage for clinical, epidemiologic, translational, observational, and biomarker studies. Always use this skill when a user needs to identify major confounders, decide which variables should or should not be adjusted for, compare matching/stratification/weighting approaches, anticipate selection or measurement bias, or pressure-test a study design before execution. Focus on bias sensing, causal structure awareness, variable-role classification, and critical design review rather than generic statistical advice.
testing
Generates complete comparative network-toxicology research designs from a user-provided exposure pair, shared toxic phenotype, and validation direction. Use when a study centers on two related exposures under one outcome and needs target collection, shared-vs-specific target decomposition, enrichment, PPI hub prioritization, docking, optional transcriptomic cross-checks, and conservative mechanistic synthesis. Covers five study patterns and always outputs Lite / Standard / Advanced / Publication+ with a recommended primary plan, stepwise workflow, figure plan, validation hierarchy, minimal executable version, publication upgrade path, and strictly verified literature retrieval.