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.
npx skills add hannesill/m4 --skill equiflowgit clone --depth 1 https://github.com/hannesill/m4Wrote 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.
[](https://agentmods.dev/skills/hannesill/m4/equiflow)<a href="https://agentmods.dev/skills/hannesill/m4/equiflow"><img src="https://agentmods.dev/badge/skills/hannesill/m4/equiflow/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.
<a href="https://agentmods.dev/skills/hannesill/m4/equiflow"><img src="https://agentmods.dev/badge/skills/hannesill/m4/equiflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00052 | $0.00854 |
| Opus 5.5 | $0.00021 | $0.00342 |
| Sonnet 5.5 | $0.00010 | $0.00171 |
| Haiku 4.5 | $0.00005 | $0.00085 |
Grade A, and why
equiflow 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.
EquiFlow - Equity-Focused Cohort Flow Diagrams
Visualize and quantify selection bias in clinical ML/research cohorts. Based on Ellen et al. (2024) J Biomed Inform.
When to Use This Skill
- Building patient cohorts from MIMIC-IV or eICU
- Documenting inclusion/exclusion criteria with CONSORT-style diagrams
- Detecting disproportionate exclusion of vulnerable groups
- Quantifying selection bias via Standardized Mean Difference (SMD)
Default Equity Variables
When no variables are specified, CohortFlow automatically tracks:
| Category | Variables | Column Aliases |
|---|---|---|
| Demographics | gender | gender, sex |
| race | race, ethnicity | |
| age | anchor_age, age, admission_age | |
| Socioeconomic | insurance | insurance, insurance_type, payer |
| language | language, primary_language | |
| marital_status | marital_status, marital | |
| Clinical | los | los, length_of_stay, icu_los |
| Outcome | mortality | hospital_expire_flag, mortality, death |
SMD Interpretation
| |SMD| | Interpretation | Action | |-------|----------------|--------| | < 0.1 | Negligible | OK | | 0.1-0.2 | Small | Monitor | | > 0.2 | Meaningful | Investigate | | > 0.5 | Large | Serious concern |
See references/smd_interpretation.md for detailed guidance.
Critical Implementation Notes
-
Auto-detection: CohortFlow scans DataFrame columns for known aliases. Override with
use_defaults=Falseif you want full control. -
SMD > 0.2 is the default threshold for flagging potential bias. This follows established covariate balance literature.
-
Missing data: Exclusion steps that remove patients with missing values can introduce systematic bias. Always check SMD after such steps.
Example Queries
Full workflow with MIMIC-IV
from cohort_flow import CohortFlow
# Step 1: Query MIMIC-IV
query = """
SELECT
p.subject_id, p.gender, p.anchor_age,
a.race, a.insurance, a.language, a.marital_status,
a.hospital_expire_flag,
i.los
FROM mimiciv_hosp.patients p
JOIN mimiciv_hosp.admissions a USING (subject_id)
JOIN mimiciv_icu.icustays i ON a.hadm_id = i.hadm_id
"""
df = execute_query(query)
# Step 2: Build cohort with equity tracking
cf = CohortFlow(df) # Auto-detects equity variables
cf.exclude(df['anchor_age'] >= 18, "Age < 18", "Adults")
cf.exclude(df['los'] >= 24, "ICU < 24h", "ICU >= 24h")
cf.exclude(df['anchor_age'] <= 90, "Age > 90", "Age 18-90")
# Step 3: Check for bias
print(cf.check_bias()) # Flags variables with SMD > 0.2
# Step 4: Generate diagram
cf.plot("sepsis_cohort_flow")
What ships with it
3 files 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.
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.
- 2mo ago Changed · +1 lines eba1eef8c6f4
- 3mo ago First seen · 104 lines · 52 tokens per session scan A e5200bd8c04d
equiflow is a skill published in the GitHub repository hannesill/m4 (52 stars, last pushed 1mo ago), licensed MIT. It adds 52 tokens to every session and 854 once invoked, about $0.0002 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.
equiflow compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| equiflowhannesill/m4 | Skill | 52 | 1mo ago | MIT | A | 52 | Claude Code, Codex |
| arbor-agent-orchestratorRUC-NLPIR/Arbor | Skill | 1.2k | 27d ago | Apache-2.0 | A | 77 | Claude Code, Codex |
| tooluniverse-variant-analysismims-harvard/ToolUniverse | Skill | 1.8k | yesterday | Apache-2.0 | A | 317 | Claude Code |
| tooluniverse-phylogeneticsmims-harvard/ToolUniverse | Skill | 1.8k | yesterday | Apache-2.0 | A | 155 | Claude Code |
| tooluniverse-gene-enrichmentmims-harvard/ToolUniverse | Skill | 1.8k | yesterday | Apache-2.0 | A | 102 | Claude Code |
| tooluniverse-systems-biologymims-harvard/ToolUniverse | Skill | 1.8k | yesterday | Apache-2.0 | A | 72 | Claude Code |
| tooluniverse-cancer-variant-interpretationmims-harvard/ToolUniverse | Skill | 1.8k | yesterday | Apache-2.0 | A | 93 | Claude Code |