ventilation-classification

ventilation-classification is a skill for Claude Code, Codex from hannesill/m4. It costs 64 tokens per session (2,259 once invoked), scanned A, original, MIT.

A guide for classifying ICU observations by the type of breathing support being used, from invasive ventilation to no support, and grouping observations into episodes.

In plain words
What is it for?
Use it to track ventilation and oxygen-support types over an ICU stay, support SOFA or OASIS scoring, study weaning, or describe respiratory support in research groups.
Why use it?
It turns varied clinical chart entries into consistent categories and durations needed for respiratory analysis and severity scores.

Skill for Claude CodeCodex

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

Good fit Use it to track ventilation and oxygen-support types over an ICU stay, support SOFA or OASIS scoring, study weaning, or describe respiratory support in research groups.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hannesill/m4/ventilation-classification
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 ventilation-classification
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 ventilation-classification

README.md
[![agentmods](https://agentmods.dev/badge/skills/hannesill/m4/ventilation-classification/github.svg)](https://agentmods.dev/skills/hannesill/m4/ventilation-classification)
Your own site
<a href="https://agentmods.dev/skills/hannesill/m4/ventilation-classification"><img src="https://agentmods.dev/badge/skills/hannesill/m4/ventilation-classification/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 ventilation-classification

Your own site · 80×15
<a href="https://agentmods.dev/skills/hannesill/m4/ventilation-classification"><img src="https://agentmods.dev/badge/skills/hannesill/m4/ventilation-classification.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,259 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 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.00064 $0.02259
Opus 5.5 $0.00026 $0.00904
Sonnet 5.5 $0.00013 $0.00452
Haiku 4.5 $0.00006 $0.00226

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

Security

Grade A, and why

ventilation-classification 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.

benchmark/tasks/suspicion-infection/mimic-suspicion-infection-raw/skills-decoy/ventilation-classification/SKILL.md · 150 lines

How it starts

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

Ventilation Classification

Classifies each ICU charting observation into a ventilation status category and groups consecutive observations into ventilation episodes. This concept is used directly by SOFA (respiratory component requires mechanical ventilation for scores 3-4), OASIS, and many other severity scores and research definitions.

M4Bench Use

In M4Bench, target concept tables listed in the task configuration are removed or unavailable in the agent database. Use this skill as procedural guidance and derive the requested output from available source or intermediate tables; do not rely on a precomputed target table or bundled SQL script.

When to Use This Skill

  • Determining ventilation type and duration for ICU stays
  • SOFA respiratory scoring (requires knowing if patient is on invasive mechanical ventilation)
  • Weaning studies (tracking transitions between ventilation modes)
  • Respiratory support characterization in cohort studies
  • Any task requiring classification of oxygen delivery or ventilator data

Ventilation Categories

Category Description Examples
Tracheostomy Patient has a tracheostomy tube Tracheostomy tube, Trach mask
InvasiveVent Invasive mechanical ventilation via endotracheal tube or ventilator mode Endotracheal tube, CMV, SIMV, PRVC/AC, VOL/AC, etc.
NonInvasiveVent Non-invasive positive pressure ventilation BiPAP mask, CPAP mask, NIV modes
HFNC High-flow nasal cannula High flow nasal cannula
SupplementalOxygen Low-flow or standard oxygen delivery Nasal cannula, Non-rebreather, Face tent, Venti mask
None No supplemental oxygen (room air) None

Classification Priority

When multiple indicators are present simultaneously, the classification follows this priority (highest first):

  1. Tracheostomy — o2_delivery_device_1 is 'Tracheostomy tube' or 'Trach mask '
  2. InvasiveVent — o2_delivery_device_1 is 'Endotracheal tube' OR any invasive ventilator mode present
  3. NonInvasiveVent — o2_delivery_device_1 is 'Bipap mask ' or 'CPAP mask ' OR Hamilton NIV modes
  4. HFNC — o2_delivery_device_1 is 'High flow nasal cannula'
  5. SupplementalOxygen — Other oxygen delivery devices
  6. None — o2_delivery_device_1 is 'None'

Read the full file on GitHub · 150 lines

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 · 150 lines · 64 tokens per session scan A 0d7df5123964

Subscribe to this mod's changes

ventilation-classification is a skill published in the GitHub repository hannesill/m4 (52 stars, last pushed 1mo ago), licensed MIT. It adds 64 tokens to every session and 2,259 once invoked, about $0.0003 per session on Opus 5.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

ventilation-classification compared with skills from other repositories

ventilation-classification next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ventilation-classificationhannesill/m4Skill521mo agoMITA64Claude Code, Codex
arbor-agent-orchestratorRUC-NLPIR/ArborSkill1.2k27d agoApache-2.0A77Claude Code, Codex
tooluniverse-variant-analysismims-harvard/ToolUniverseSkill1.8kyesterdayApache-2.0A317Claude Code
tooluniverse-phylogeneticsmims-harvard/ToolUniverseSkill1.8kyesterdayApache-2.0A155Claude Code
tooluniverse-gene-enrichmentmims-harvard/ToolUniverseSkill1.8kyesterdayApache-2.0A102Claude Code
tooluniverse-systems-biologymims-harvard/ToolUniverseSkill1.8kyesterdayApache-2.0A72Claude Code
tooluniverse-cancer-variant-interpretationmims-harvard/ToolUniverseSkill1.8kyesterdayApache-2.0A93Claude Code