hannesill/m4/equiflow
Claude Code and agent skill by hannesill/m4
- community
Checking that the SKILL.md file is still in the repository.
Generate equity-focused cohort selection flow diagrams. Tracks demographic, socioeconomic, and outcome variables at each exclusion step and calculates SMD to detect selection bias. Use for cohort construction, CONSORT-style diagrams, or bias detection in clinical ML/research.
Install
npx vskill@latest install hannesill/m4/equiflowSKILL.md
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
Minimal example
Dependencies
References
- Ellen JG, et al. "Participant flow diagrams for health equity in AI." J Biomed Inform. 2024;152:104631.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/m4/skills/clinical/equiflow/SKILL.md
Popularity
- Repository stars
- 46
- Repository forks
- 18
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hannesill/m4/equiflow)