apache-iv-score

apache-iv-score is a skill for Claude Code, Codex from hannesill/m4. It costs 65 tokens per session (2,343 once invoked), scanned A, original, MIT.

A calculation guide for APACHE IV, a hospital-mortality risk score for intensive-care patients. It combines early vital measurements with age, existing health problems, diagnosis, and admission details.

In plain words
What is it for?
Use it for mortality-risk estimates, ICU benchmarking, case-mix adjustment, and severity grouping in research. eICU includes precomputed scores, while MIMIC-IV needs a custom calculation.
Why use it?
It provides a standard way to compare patient severity, estimate risk, and account for differences in the types of patients treated by ICUs.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

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.

agentmods
npx agentmods add skills/hannesill/m4/apache-iv-score
Any agent
npx skills add hannesill/m4 --skill apache-iv-score
Clone the repo
git clone --depth 1 https://github.com/hannesill/m4

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for apache-iv-score

README.md
[![agentmods](https://agentmods.dev/badge/skills/hannesill/m4/apache-iv-score.svg)](https://agentmods.dev/skills/hannesill/m4/apache-iv-score)
Your own site
<a href="https://agentmods.dev/skills/hannesill/m4/apache-iv-score"><img src="https://agentmods.dev/badge/skills/hannesill/m4/apache-iv-score.svg" alt="Measured on agentmods" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,343 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00065 $0.02343
Opus 5 $0.00032 $0.01171
Sonnet 5 $0.00013 $0.00469
Haiku 4.5 $0.00006 $0.00234

Measured 6d ago against content hash e8610f1fdcb5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

apache-iv-score 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 6d 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.

src/m4/skills/clinical/apache-iv-score/SKILL.md · 177 lines

How it starts

The opening of the file, as written. The whole thing — 177 lines — stays where its author put it; the contents beside it link to each section on GitHub.

APACHE IV Score Calculation

APACHE IV predicts hospital mortality for ICU patients using acute physiology, age, chronic health conditions, and diagnosis. Published in 2006 with 110,558 patients from 104 U.S. ICUs. The model has excellent discrimination (AUC-ROC = 0.88) and calibration (Hosmer-Lemeshow p = .08).

When to Use This Skill

  • User asks about APACHE IV score calculation
  • Hospital mortality prediction for ICU patients
  • ICU performance benchmarking (SMR calculation)
  • Case-mix adjustment for quality comparison
  • Severity stratification for research cohorts

Components and Explanatory Power

Component Explanatory Power Description
Acute Physiology (APS) 65.8% 16 physiological variables (worst in first 24h) + GCS adjustment + PaO2/FiO2
Diagnosis 16.5% 116 diagnostic categories + emergency surgery + thrombolytic therapy (AMI)
Age 9.4% Continuous with 5 spline terms (knots at 27, 51, 64, 74, 86 years)
Chronic Health 5.0% 7 conditions: AIDS, cirrhosis, hepatic failure, immunosuppression, lymphoma, leukemia/myeloma, metastatic cancer
Admission Variables 2.9% Admission source + prior length of stay (with spline terms)
Mechanical Ventilation 0.6% Binary flag for ventilation on ICU day 1

Acute Physiology Variables

Variable Units Notes
Heart rate bpm Highest or lowest deviation from normal
Mean arterial pressure mmHg Lowest value
Temperature °C Highest or lowest deviation from normal
Respiratory rate breaths/min Highest or lowest deviation from normal
PaO2/FiO2 ratio mmHg Worst oxygenation (arterial specimens only)
Hematocrit % Lowest value
WBC ×10³/μL Highest or lowest deviation from normal
Creatinine mg/dL Highest value
Urine output mL/24h Total volume in first 24 hours
BUN mg/dL Highest value
Sodium mEq/L Highest or lowest deviation from normal
Albumin g/dL Lowest value
Bilirubin mg/dL Highest value
Glucose mg/dL Highest or lowest deviation from normal
pH - Lowest value (arterial specimens only)
Glasgow Coma Scale 3-15 Lowest value (use pre-sedation if sedated)

Read the full file on GitHub · 177 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 6d ago First seen · 177 lines · 65 tokens per session scan A e8610f1fdcb5

Subscribe to this mod's changes

apache-iv-score is a skill published in the GitHub repository hannesill/m4 (43 stars, last pushed 1mo ago), licensed MIT. It adds 65 tokens to every session and 2,343 once invoked, about $0.0003 per session on Opus 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-08-30.

Related

Other skills, from other repositories

arbor-agent-orchestrator

Top-level controller for recreating the open-source AutoResearch workflow as a suite of skills. Use when the user asks to run, emulate, extract, validate, or refine Arbor/AutoResearch behavior, especially when a coordinator must load phase skills for setup, ideation, executors, merge evaluation, novelty search…

RUC-NLPIR/Arbor · 77 tokens

dfam-check

Measure mesh files against Design for Additive Manufacturing (DfAM) rules and report printability findings per process (FDM, SLS, SLA/DLP, metal PBF, MJF). Use when the user asks whether a part is printable, wants overhang/wall-thickness/support analysis of an .stl, .obj, .ply, or .3mf mesh, wants a build-orientation…

earthtojake/text-to-cad · 111 tokens

tooluniverse-gene-enrichment

Gene-set enrichment analysis — GO (Biological Process, Molecular Function, Cellular Component), KEGG, Reactome pathway enrichment via clusterProfiler, gseapy, ORA, GSEA. Use for interpreting DEG lists, screen hit lists, or any gene-list-to-pathways query. Includes simplify-cutoff handling and union-vs-total…

mims-harvard/ToolUniverse · 82 tokens

tooluniverse-phylogenetics

Phylogenetic analysis — de novo multiple sequence alignment (Clustal Omega/MUSCLE/MAFFT via EBImsaalign) and neighbour-joining/UPGMA tree building (EBIbuildphylogenetictree) from your own sequences, plus tree analysis, treeness, saturation (PhyKIT), parsimony-informative sites, alignment gap analysis, DVMC…

mims-harvard/ToolUniverse · 155 tokens

tooluniverse-pharmacogenomics

Pharmacogenomics (PGx) research — drug-gene interactions (CPIC, PharmGKB), CPIC dosing guidelines, variant-drug-response associations, ethnic-allele-frequency considerations, and metabolizer-status scoring. Use for PGx-informed dosing recommendations, CYP/HLA pharmacogenomic allele interpretation, and…

mims-harvard/ToolUniverse · 80 tokens

tooluniverse-population-genetics

Population genetics analysis — allele frequencies (gnomAD, 1000 Genomes), Hardy-Weinberg equilibrium testing, Fst between populations, GWAS associations, evolutionary constraint scores. Use for cross-population variant comparison, ancestry-aware allele frequency lookups, and population-level evolutionary analysis.

mims-harvard/ToolUniverse · 66 tokens