Production Audit
affaan-m/ECC
Local-evidence production readiness audit for shipped apps, pre-launch reviews, post-merge checks, and "what breaks in prod?" questions without sending repo data to an external audit service.
Audit an OpenMed NER or de-identification model for performance disparities across demographic subgroups (sex, age band, race/ethnicity when available) using openmed.eval.fairnessreport.
$ npx skills add maziyarpanahi/openmed --skill auditing-subgroup-fairness -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install maziyarpanahi/openmed auditing-subgroup-fairness --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/auditing-subgroup-fairness .claude/skills/auditing-subgroup-fairness && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "auditing-subgroup-fairness" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/auditing-subgroup-fairness into .claude/skills/auditing-subgroup-fairness/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "auditing-subgroup-fairness", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/maziyarpanahi/openmed/tree/master/skills/auditing-subgroup-fairnessType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add maziyarpanahi/openmed --skill auditing-subgroup-fairness -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install maziyarpanahi/openmed auditing-subgroup-fairness --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/auditing-subgroup-fairness .agents/skills/auditing-subgroup-fairness && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "auditing-subgroup-fairness" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/auditing-subgroup-fairness into .agents/skills/auditing-subgroup-fairness/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "auditing-subgroup-fairness", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add maziyarpanahi/openmed --skill auditing-subgroup-fairness -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install maziyarpanahi/openmed auditing-subgroup-fairness --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/auditing-subgroup-fairness .cursor/skills/auditing-subgroup-fairness && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "auditing-subgroup-fairness" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/auditing-subgroup-fairness into .cursor/skills/auditing-subgroup-fairness/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "auditing-subgroup-fairness", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/maziyarpanahi/openmed.git --path skills/auditing-subgroup-fairness--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add maziyarpanahi/openmed --skill auditing-subgroup-fairness -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install maziyarpanahi/openmed auditing-subgroup-fairness --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/auditing-subgroup-fairness .gemini/skills/auditing-subgroup-fairness && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "auditing-subgroup-fairness" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/auditing-subgroup-fairness into .gemini/skills/auditing-subgroup-fairness/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "auditing-subgroup-fairness", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install maziyarpanahi/openmed auditing-subgroup-fairnessInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add maziyarpanahi/openmed --skill auditing-subgroup-fairness -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/auditing-subgroup-fairness .github/skills/auditing-subgroup-fairness && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "auditing-subgroup-fairness" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/auditing-subgroup-fairness into .github/skills/auditing-subgroup-fairness/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "auditing-subgroup-fairness", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add maziyarpanahi/openmed --skill auditing-subgroup-fairness -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install maziyarpanahi/openmed auditing-subgroup-fairness --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/auditing-subgroup-fairness .opencode/skills/auditing-subgroup-fairness && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "auditing-subgroup-fairness" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/auditing-subgroup-fairness into .opencode/skills/auditing-subgroup-fairness/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "auditing-subgroup-fairness", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
auditing-subgroup-fairnessAudit an OpenMed NER or de-identification model for performance disparities across demographic subgroups (sex, age band, race/ethnicity when available) using openmed.eval.fairnessreport.
Auditing Subgroup Fairness is an agent skill from maziyarpanahi/openmed. Audit an OpenMed NER or de-identification model for performance disparities across demographic subgroups (sex, age band, race/ethnicity when available) using openmed.eval.fairnessreport. Use when the user wants per-subgroup recall and leakage, wants to check whether de-identification under-protects a group, wants to surface a documentation gap where subgroup data is missing, or needs equalized-odds-style disparity numbers for a clinical model. Trigger on "fairness", "subgroup", "bias audit", "disparity"…
Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
The repository describes itself as: Local-first healthcare AI: clinical NER and HIPAA PII de-identification on hardware you control. 2,200+ medical models, 35 model-backed PII languages, and Python, MLX, Android… The licence is Apache-2.0.
6 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 34d7b8c. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python).
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
datadiversity.orgarxiv.orgdoi.orgFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Auditing Subgroup Fairness loads about 1.5k tokens when it runs. Until then it costs about 161 tokens; SKILL.md has 540 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from maziyarpanahi/openmed at commit 34d7b8c, republished under its Apache-2.0 licence (© maziyarpanahi). 540 words, ~1,471 tokens.
.claude/skills/auditing-subgroup-fairness/SKILL.md (or your agent's skills folder).An aggregate pass can hide a group the model fails. For de-identification that
failure has a name: under-protection — PHI that leaks more often for one
demographic group than another. openmed.eval.fairness_report slices leakage and
recall by gold-span group so disparities surface before deployment, not after a
breach.
For each surrogate group fairness_report returns:
max - min leakage across groups (the gap to close).Group membership comes from a group tag in each gold span's metadata (keys
group, demographic_group, or surrogate_group); ungrouped spans fall into
unspecified.
from openmed.eval import fairness_report
# Gold fixtures must tag spans with a surrogate group, e.g.
# {"start": 4, "end": 12, "label": "PERSON", "metadata": {"group": "female"}}
fair = fairness_report(
"OpenMed/Privacy-PII-Detection",
"golden", # named suite, or pass a list of fixtures
device="cpu",
)
print("leakage disparity:", fair.leakage_disparity)
print("worst group :", fair.worst_group, fair.worst_group_leakage)
for group, m in sorted(fair.per_group.items()):
print(f" {group:14s} recall={m.recall:.3f} leakage={m.leakage_rate:.4f}")
# Under-protection alarm: any group leaking more than the rest.
LEAKAGE_GAP_LIMIT = 0.0 # leakage-first: ideally zero leakage everywhere
assert fair.leakage_disparity <= LEAKAGE_GAP_LIMIT or fair.worst_group_leakage == 0FairnessReport.to_dict() is JSON-ready and PHI-free — drop it straight into a
model card.
group to each PHI span's
metadata (sex, age band, race/ethnicity surrogate). Use synthetic surrogates,
not real protected attributes (see building-gold-corpus).fairness_report on the model + suite.leakage_disparity) and locate worst_group.
Equalized-odds framing: equal true-positive (recall) and equal leakage
across groups.building-gold-corpus: supplies group-tagged synthetic fixtures.evaluating-with-leakage-gates: an aggregate RELEASABLE decision
should be paired with this audit — overall pass, subgroup fail is exactly the
trap this catches.authoring-model-cards: FairnessReport.to_dict() fills the
quantitative-analysis / subgroup section.benchmarking-clinical-ner: same run, different slice (label vs
group).unspecified is not a real group. A pile of spans in unspecified means
your gold isn't tagged; fix the corpus before trusting the disparity.span_count,
total_chars) alongside rates; a 1-of-2 leak isn't a 50% population rate.openmed/eval/fairness.py
(fairness_report, FairnessReport, FairnessGroupMetrics).© maziyarpanahi, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/auditing-subgroup-fairness of maziyarpanahi/openmed.
Open the folder on GitHubat commit 34d7b8c
Auditing Subgroup Fairness next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Auditing Subgroup Fairness this skillmaziyarpanahi/openmed | 5.5k | — | ~1.5k | Automated safety check: Pass | Apache-2.0 | |
| Production Auditaffaan-m/ECC | 277k | 1 repos | ~1.9k | Automated safety check: Pass | MIT | |
| Aims Auditalirezarezvani/claude-skills | 28k | — | ~1.3k | Automated safety check: Pass | MIT | |
| Geo Auditsickn33/agentic-awesome-skills | 47k | 1 repos | ~3.4k | Automated safety check: Notes | MIT | |
| OmniRoute Audit and Policy CLIdiegosouzapw/OmniRoute | 75k | — | ~733 | Automated safety check: Pass | MIT | |
| Audit Preparationsickn33/agentic-awesome-skills | 47k | 1 repos | ~5.3k | Automated safety check: Pass | MIT |
affaan-m/ECC
Local-evidence production readiness audit for shipped apps, pre-launch reviews, post-merge checks, and "what breaks in prod?" questions without sending repo data to an external audit service.
alirezarezvani/claude-skills
/cs:aims-audit <scope — ISO/IEC 42001 AIMS internal-audit 6-question forcing interrogation.
sickn33/agentic-awesome-skills
Full website GEO+SEO audit with parallel subagent delegation.
diegosouzapw/OmniRoute
Command reference for omniroute's audit, logs, policy and telemetry commands: search and export audit trails, manage access policies and review request history for compliance work.
sickn33/agentic-awesome-skills
Audit preparation register: required document, period covered, request and receipt dates, preparer and reviewer, auditor queries and adjustments.
davila7/claude-code-templates
Senior QMS Audit Expert for internal and external quality management system auditing.
maziyarpanahi/openmed
Checks OpenMed de-identified clinical text against the 18 HIPAA Safe Harbor identifier categories and reports gaps and residual re-identification risk.
maziyarpanahi/openmed
Fills in a model card for an OpenMed clinical NER or de-identification model from its evaluation reports: intended use, metrics, subgroups and limitations.
maziyarpanahi/openmed
Walks a data pipeline against the HIPAA Privacy and Security Rule checklist and produces a gap report before it processes patient data.
maziyarpanahi/openmed
Suggests candidate ICD-10-CM diagnosis and ICD-10-PCS procedure codes for clinical text extracted by OpenMed, with rationale for a certified coder to review.
maziyarpanahi/openmed
Maps OpenMed-extracted, terminology-coded conditions, drugs and measurements into OMOP CDM v5.4 tables for OHDSI and ATLAS analytics.
maziyarpanahi/openmed
Finds social risks such as housing instability or food insecurity in clinical notes and proposes matching ICD-10-CM Z-codes for a coder to confirm.
Audit an OpenMed NER or de-identification model for performance disparities across demographic subgroups (sex, age band, race/ethnicity when available) using openmed.eval.fairnessreport. Auditing Subgroup Fairness is an agent skill from maziyarpanahi/openmed.fairnessreport.
Auditing Subgroup Fairness fits situations like: the user wants per-subgroup recall and leakage; wants to check whether de-identification under-protects a group; wants to surface a documentation gap where subgroup data is missing; needs equalized-odds-style disparity numbers for a clinical model.
Run `npx skills add maziyarpanahi/openmed --skill auditing-subgroup-fairness -a claude-code`. Or copy the skill folder (skills/auditing-subgroup-fairness in maziyarpanahi/openmed) into .claude/skills/auditing-subgroup-fairness in your project. Claude Code loads it when a task matches its description.
Run `npx skills add maziyarpanahi/openmed --skill auditing-subgroup-fairness -a codex`. Or copy the skill folder (skills/auditing-subgroup-fairness in maziyarpanahi/openmed) into .agents/skills/auditing-subgroup-fairness in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add maziyarpanahi/openmed --skill auditing-subgroup-fairness -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/auditing-subgroup-fairness, .gemini/skills/auditing-subgroup-fairness, .github/skills/auditing-subgroup-fairness and .opencode/skills/auditing-subgroup-fairness in your project.
SKILL.md names no scripts, command-line tools or credentials: Auditing Subgroup Fairness is instructions for the agent only. Our summary lists: Python 3.
SKILL.md names 3 domains. As links in the text: datadiversity.org, arxiv.org and doi.org. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Auditing Subgroup Fairness is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.5k tokens (SKILL.md is roughly 5.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Auditing Subgroup Fairness: Production Audit (affaan-m/ECC, 277k stars), Aims Audit (alirezarezvani/claude-skills, 28k stars), Geo Audit (sickn33/agentic-awesome-skills, 47k stars) and OmniRoute Audit and Policy CLI (diegosouzapw/OmniRoute, 75k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
maziyarpanahi (a GitHub user) maintains it in maziyarpanahi/openmed, which has 5,506 GitHub stars. The repository holds 74 skills in this directory. The repository was last updated on October 11, 2026.
Source: maziyarpanahi/openmed on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.