CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

testland/fairlearn-fairness

Use when a model's decisions affect people and an auditor or rule (ECOA, GDPR Art. 22, EU AI Act) needs per-group evidence, or someone reports unfair treatment of a group. Computes Fairlearn MetricFrame group metrics, mitigates with ExponentiatedGradient and adds group checks to the gate.

Quality

85%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Overview
Quality
Evals
Security
Files

Quality

Content

75%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A well-structured, code-first skill body with a clear install-measure-mitigate-assert sequence, an anti-patterns table, and honest limitations. It falls short of top marks on small polish items: repeated citation boilerplate, one incomplete import in Step 4, and no explicit recovery loop or output comparison after mitigation.

Suggestions

Remove the repeated "Per the [Fairlearn quickstart]" boilerplate (keep a single citation) and drop the opening tagline quote; state the two primitives directly in one sentence.

Fix Step 4 to import selection_rate in its import block, and briefly note where X, y_true, and sensitive_features come from (or define them once in a shared setup snippet).

After Step 5/6, add a short compare-and-close step: re-run assert_fairness on y_pred_mitigated and print a side-by-side of accuracy and DPD before/after mitigation, plus what to do when the assertion still fails.

DimensionReasoningScore

Conciseness

The body is lean and code-forward, but the opening quotes Fairlearn's marketing tagline ("Metrics - Tools to assess which groups are negatively impacted...") and "Per the [Fairlearn quickstart]" is repeated four times — padding that could be trimmed without losing information.

4 / 5

Actionability

Steps 2-7 provide near copy-paste executable code, but Step 4's metrics dict references selection_rate without importing it in that snippet, and the underlying variables (X, y_true, sex) are never introduced, leaving minor gaps.

4 / 5

Workflow Clarity

A clear Step 1-7 sequence ending in a CI assertion checkpoint (Step 7) covers the common path, but there is no fix-and-retry loop after a failed fairness assertion, and the compare-mitigated-vs-original workflow implied by "produce evidence + a mitigated comparison" is never closed out with concrete steps.

4 / 5

Progressive Disclosure

No bundle files exist and the body is well-sectioned (steps, anti-patterns table, limitations, references), but at ~185 lines the per-metric examples and legal-threshold discussion could be split into a reference file to keep SKILL.md a leaner overview.

4 / 5

Total

16

/

20

Passed

Description

87%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description with an explicit "Use when..." clause covering compliance and incident-triage triggers and a concrete what-clause naming the exact Fairlearn primitives used. The only improvements are adding natural synonyms like "bias"/"fairness" and clarifying the "adds group checks to the gate" phrasing.

DimensionReasoningScore

Specificity

"Computes Fairlearn MetricFrame group metrics, mitigates with ExponentiatedGradient and adds group checks to the gate" lists three concrete, named actions, but "adds group checks to the gate" is slightly jargon-laden, leaving minor gaps versus the fully comprehensive 5 anchor.

4 / 5

Completeness

It explicitly answers both: "Use when a model's decisions affect people and an auditor or rule... needs per-group evidence, or someone reports unfair treatment of a group" (when) and the Fairlearn MetricFrame / ExponentiatedGradient / gate-check actions (what), with concrete trigger scenarios.

5 / 5

Trigger Term Quality

Phrases like "someone reports unfair treatment of a group" and "an auditor or rule (ECOA, GDPR Art. 22, EU AI Act) needs per-group evidence" are natural user triggers, but common terms users would say such as "bias", "fair", or "fairness audit" are absent.

4 / 5

Distinctiveness Conflict Risk

A clear niche (group-fairness auditing with Fairlearn under ECOA/GDPR/EU AI Act contexts) with distinct triggers; minimal conflict risk with generic ML or data-analysis skills.

5 / 5

Total

18

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Reviewed

On this page