mimic-sepsis3-raw

mimic-sepsis3-raw is a skill for Claude Code, Codex from hannesill/m4. It costs 0 tokens per session (632 once invoked), scanned A, a copy of mimic-apsiii-24h-raw, MIT.

A SQL query for identifying sepsis cases in MIMIC intensive-care records, using the Sepsis-3 definition. Sepsis-3 combines suspected infection with a SOFA score increase of at least two points within specified time windows.

In plain words
What is it for?
Use it to create or check ICU research cohorts involving sepsis, suspected infection, SOFA scores, and hospital outcomes.
Why use it?
It applies a documented clinical definition consistently instead of relying on manual or vague case selection.

Skill for Claude CodeCodex

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

Good fit Use it to create or check ICU research cohorts involving sepsis, suspected infection, SOFA scores, and hospital outcomes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hannesill/m4/mimic-sepsis3-raw
View source ↗ hannesill/m4
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.

Any agent
npx skills add hannesill/m4 --skill mimic-sepsis3-raw
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 mimic-sepsis3-raw

README.md
[![agentmods](https://agentmods.dev/badge/skills/hannesill/m4/mimic-sepsis3-raw/github.svg)](https://agentmods.dev/skills/hannesill/m4/mimic-sepsis3-raw)
Your own site
<a href="https://agentmods.dev/skills/hannesill/m4/mimic-sepsis3-raw"><img src="https://agentmods.dev/badge/skills/hannesill/m4/mimic-sepsis3-raw/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mimic-sepsis3-raw

Your own site · 80×15
<a href="https://agentmods.dev/skills/hannesill/m4/mimic-sepsis3-raw"><img src="https://agentmods.dev/badge/skills/hannesill/m4/mimic-sepsis3-raw.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 632 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.00000 $0.00632
Opus 5.5 $0.00000 $0.00253
Sonnet 5.5 $0.00000 $0.00126
Haiku 4.5 $0.00000 $0.00063

Measured 3mo ago against content hash 2e0de3b60d36, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mimic-sepsis3-raw 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 3mo 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.

Origin

This is a copy

100% identical to mimic-apsiii-24h-raw — 955 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

benchmark/tasks/sepsis3/mimic-sepsis3-raw/skills-rawsql/mimic-sepsis3-raw/SKILL.md · 88 lines

What it actually says

Reference SQL (matched-content control)

The following block is the public reference SQL used to construct the ground truth for this task. It is provided verbatim, without procedural prose, to test whether matched task-relevant content alone explains the WITH-SKILL gain.

-- ------------------------------------------------------------------
-- Title: Sepsis-3 Cohort Identification
-- Identifies sepsis patients using the Sepsis-3 consensus definition:
-- SOFA score >= 2 coinciding with suspected infection within a
-- 48h-before to 24h-after time window.
-- ------------------------------------------------------------------

-- Reference:
--    Singer M et al. "The Third International Consensus Definitions
--    for Sepsis and Septic Shock (Sepsis-3)." JAMA. 2016;315(8):801-810.

-- Adapted from mimic-code sepsis3.sql
-- Returns one row per ICU stay (earliest matching infection event).

WITH sofa AS (
  SELECT
    stay_id,
    starttime,
    endtime,
    respiration_24hours AS respiration,
    coagulation_24hours AS coagulation,
    liver_24hours AS liver,
    cardiovascular_24hours AS cardiovascular,
    cns_24hours AS cns,
    renal_24hours AS renal,
    sofa_24hours AS sofa_score
  FROM mimiciv_derived.sofa
  WHERE
    sofa_24hours >= 2
), s1 AS (
  SELECT
    soi.subject_id,
    soi.stay_id,
    soi.ab_id,
    soi.antibiotic,
    soi.antibiotic_time,
    soi.culture_time,
    soi.suspected_infection,
    soi.suspected_infection_time,
    soi.specimen,
    soi.positive_culture,
    starttime,
    endtime,
    respiration,
    coagulation,
    liver,
    cardiovascular,
    cns,
    renal,
    sofa_score,
    CAST(sofa_score >= 2 AND suspected_infection = 1 AS INTEGER) AS sepsis3,
    ROW_NUMBER() OVER (PARTITION BY soi.stay_id ORDER BY suspected_infection_time NULLS FIRST, antibiotic_time NULLS FIRST, culture_time NULLS FIRST, endtime NULLS FIRST) AS rn_sus
  FROM mimiciv_derived.suspicion_of_infection AS soi
  INNER JOIN sofa
    ON soi.stay_id = sofa.stay_id
    AND sofa.endtime >= soi.suspected_infection_time - INTERVAL '48' HOUR
    AND sofa.endtime <= soi.suspected_infection_time + INTERVAL '24' HOUR
  WHERE
    NOT soi.stay_id IS NULL
)
SELECT
  subject_id,
  stay_id,
  antibiotic_time,
  culture_time,
  suspected_infection_time,
  endtime AS sofa_time,
  sofa_score,
  respiration,
  coagulation,
  liver,
  cardiovascular,
  cns,
  renal,
  sepsis3
FROM s1
WHERE
  rn_sus = 1
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. 3mo ago First seen · 88 lines · 0 tokens per session scan A 2e0de3b60d36

Subscribe to this mod's changes

mimic-sepsis3-raw is a skill published in the GitHub repository hannesill/m4 (52 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 632 tokens. A static security scan graded it A with 0 findings. It is 100% identical to mimic-apsiii-24h-raw, differing in 955 lines, and is treated as a copy.

Related

mimic-sepsis3-raw compared with skills from other repositories

mimic-sepsis3-raw next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mimic-sepsis3-rawhannesill/m4Skill521mo agoMITA0Claude Code, Codex
arbor-agent-orchestratorRUC-NLPIR/ArborSkill1.2k27d agoApache-2.0A77Claude Code, Codex
embeddingsruvnet/rufloSkill83ktodayMITA62Claude Code
migration-reviewrohitg00/ai-engineering-from-scratchSkill81ktodayMITA35Claude Code
tooluniverse-phylogeneticsmims-harvard/ToolUniverseSkill1.8kyesterdayApache-2.0A155Claude Code
tooluniverse-cancer-variant-interpretationmims-harvard/ToolUniverseSkill1.8kyesterdayApache-2.0A93Claude Code
tooluniverse-cell-line-profilingmims-harvard/ToolUniverseSkill1.8kyesterdayApache-2.0A100Claude Code