gcs-calculation

gcs-calculation is a skill for Claude Code, Codex from hannesill/m4. It costs 33 tokens per session (726 once invoked), scanned A, original, MIT.

A method for extracting the Glasgow Coma Scale (GCS), a three-part measure of consciousness based on eye opening, verbal response, and movement, from ICU records.

In plain words
What is it for?
Use it to monitor consciousness, assess neurological or trauma severity, and calculate first-day GCS values for ICU stays.
Why use it?
It standardizes neurological assessment from nursing chart data over a defined period around ICU admission.

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/gcs-calculation
Any agent
npx skills add hannesill/m4 --skill gcs-calculation
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 gcs-calculation

README.md
[![agentmods](https://agentmods.dev/badge/skills/hannesill/m4/gcs-calculation.svg)](https://agentmods.dev/skills/hannesill/m4/gcs-calculation)
Your own site
<a href="https://agentmods.dev/skills/hannesill/m4/gcs-calculation"><img src="https://agentmods.dev/badge/skills/hannesill/m4/gcs-calculation.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 726 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.00033 $0.00726
Opus 5 $0.00016 $0.00363
Sonnet 5 $0.00007 $0.00145
Haiku 4.5 $0.00003 $0.00073

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

Security

Grade A, and why

gcs-calculation 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.

benchmark/tasks/gcs/eicu-gcs/skills/gcs-calculation/SKILL.md · 71 lines

How it starts

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

Glasgow Coma Scale (GCS) Calculation for eICU

The Glasgow Coma Scale assesses level of consciousness through three components: Eye opening, Verbal response, and Motor response. This benchmark task asks for the minimum first-day GCS per eICU ICU stay.

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.

eICU Source Tables

  • eicu_crd.patient — one row per ICU stay; use for output identifiers.
  • eicu_crd.nursecharting — primary source for GCS total and components.

The time axis is eICU offset minutes from ICU admission. For this task, include charting from 6 hours before admission through 24 hours after admission: nursingchartoffset >= -360 and nursingchartoffset <= 1440.

Nursecharting Labels

Use rows in nursecharting where nursingchartcelltypecat is Scores or Other Vital Signs and Infusions.

GCS total can be charted under either of these label/name pairs:

Label Name
Glasgow coma score GCS Total
Score (Glasgow Coma Scale) Value

Components are charted under label Glasgow coma score with names:

Output Component Nursecharting Name Normal Default
gcs_motor Motor 6
gcs_verbal Verbal 5
gcs_eyes Eyes 4

Critical Implementation Notes

  1. Validate total GCS: Use charted total GCS only when it is numeric and between 3 and 15 inclusive.

  2. Component fallback: If total GCS is not charted at a timepoint, compute total as eyes + motor + verbal, using the normal defaults above for any missing component at that timepoint.

  3. Minimum selection: Return the timepoint with the lowest total GCS in the first-day window. If there is a tie, choose the earliest chart offset.

Read the full file on GitHub · 71 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. 6d ago First seen · 71 lines · 33 tokens per session scan A 0175c319bf39

Subscribe to this mod's changes

gcs-calculation is a skill published in the GitHub repository hannesill/m4 (43 stars, last pushed 1mo ago), licensed MIT. It adds 33 tokens to every session and 726 once invoked, about $0.0002 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