Skip to content
Back to skills

Fairlearn Bias Audit Starter

ASecurity

Use this skill to run a deterministic group fairness audit over a tiny clinical toy cohort with `fairlearn`.

  • 38 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
ai-agentspythonbashdebugging

Works with

  • cli

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add ma-compbio-lab/SkillFoundry --skill fairlearn-bias-audit-starter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fairlearn Bias Audit Starter?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Fairlearn Bias Audit Starter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ma-compbio-lab-fairlearn-bias-audit-starter/badge)](https://www.skillsdirectory.com/skills/ma-compbio-lab-fairlearn-bias-audit-starter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Fairlearn Bias Audit Starter

Use this skill to run a deterministic group fairness audit over a tiny clinical toy cohort with `fairlearn`.

## What it does

- Loads a fixed tabular cohort with binary labels, binary predictions, and a sensitive group column.
- Computes per-group accuracy, selection rate, true positive rate, and false positive rate with `MetricFrame`.
- Summarizes demographic parity and equalized odds gaps and ratios.
- Emits a compact JSON report and threshold-based audit flags for local debugging.

## When to use it

- You need a local starter for fairness or bias analysis in binary clinical risk models.
- You want a small, reproducible example before auditing a real cohort.

## Example

```bash
slurm/envs/statistics/bin/python skills/clinical-biomedical-data-science/fairlearn-bias-audit-starter/scripts/run_fairlearn_bias_audit.py \
  --input skills/clinical-biomedical-data-science/fairlearn-bias-audit-starter/examples/toy_fairness_cohort.tsv \
  --summary-out scratch/fairlearn/fairness_audit_summary.json
```

## Verification

- Skill-local tests: `python3 -m unittest discover -s skills/clinical-biomedical-data-science/fairlearn-bias-audit-starter/tests -p 'test_*.py'`

Files in this skill

  • SKILL.md1.2 KB
  • assets/README.md95 B
  • assets/toy_fairlearn_bias_audit_summary.json1.5 KB
  • examples/README.md126 B
  • examples/toy_fairness_cohort.tsv202 B
  • metadata.yaml1.4 KB
  • refs.md134 B
  • scripts/run_fairlearn_bias_audit.py10.3 KB
  • tests/test_run_fairlearn_bias_audit.py3.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…