Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Alibi explainability skill for counterfactual explanations, anchors, and trust scores.
.claude/skills/a5c-ai-alibi-explainer/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-12 | ✗→✓ | ▲ Improved | -16% | 0% |
| case-13 | ✗→✓ | ▲ Improved | -58% | 0% |
| case-14 | ✗→✓ | ▲ Improved | -13% | 0% |
| case-15 | ✗→✓ | ▲ Improved | 81% | 0% |
| case-16 | ✗→✓ | ▲ Improved | 21% | 0% |
Alibi explainability skill for counterfactual explanations, anchors, trust scores, and advanced model interpretation techniques.
json{ "type": "object", "required": ["modelPath", "explainerType", "instancePath"], "properties": { "modelPath": { "type": "string", "description": "Path to the trained model" }, "explainerType": { "type": "string", "enum": ["counterfactual", "anchor", "integrated_gradients", "cem", "trust_score", "prototype"], "description": "Type of Alibi explainer to use" }, "instancePath": { "type": "string", "description": "Path to instance(s) to explain" }, "counterfactualConfig": { "type": "object", "properties": { "targetClass": { "type": "integer" }, "maxIterations": { "type": "integer" }, "lambda": { "type": "number" }, "featureRange": { "type": "object" } } }, "anchorConfig": { "type": "object", "properties": { "threshold": { "type": "number" }, "coverageSamples": { "type": "integer" }, "beamSize": { "type": "integer" } } }, "cemConfig": { "type": "object", "properties": { "mode": { "type": "string", "enum": ["PP", "PN"] }, "kappaMin": { "type": "number" }, "kappaMax": { "type": "number" } } }, "trainingDataPath": { "type": "string", "description": "Path to training data (required for some explainers)" } } }
json{ "type": "object", "required": ["status", "explanations"], "properties": { "status": { "type": "string", "enum": ["success", "error"] }, "explanations": { "type": "array", "items": { "type": "object", "properties": { "instanceId": { "type": "string" }, "originalPrediction": { "type": "string" }, "explanation": { "type": "object" } } } }, "counterfactuals": { "type": "array", "items": { "type": "object", "properties": { "instanceId": { "type": "string" }, "counterfactual": { "type": "object" }, "targetClass": { "type": "string" }, "changedFeatures": { "type": "array" } } } }, "anchors": { "type": "array", "items": { "type": "object", "properties": { "instanceId": { "type": "string" }, "rules": { "type": "array", "items": { "type": "string" } }, "precision": { "type": "number" }, "coverage": { "type": "number" } } } }, "trustScores": { "type": "array", "items": { "type": "object", "properties": { "instanceId": { "type": "string" }, "score": { "type": "number" }, "closestClass": { "type": "string" } } } } } }
javascript{ kind: 'skill', title: 'Generate counterfactual explanations', skill: { name: 'alibi-explainer', context: { modelPath: 'models/loan_classifier.pkl', explainerType: 'counterfactual', instancePath: 'data/rejected_applications.csv', counterfactualConfig: { targetClass: 1, maxIterations: 1000, lambda: 0.1 }, trainingDataPath: 'data/train.csv' } } }
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-12 | fail→pass | 9,934 | 2,634 | -73% | 1 | 1 | 0% | 2,088 | 1,750 | -16% | 0 | 0 | — |
case-13 | fail→pass | 19,276 | 1,984 | -90% | 1 | 1 | 0% | 3,615 | 1,529 | -58% | 0 | 0 | — |
case-14 | fail→pass | 9,552 | 2,317 | -76% | 1 | 1 | 0% | 1,876 | 1,625 | -13% | 0 | 0 | — |
case-15 | fail→pass | 4,712 | 3,092 | -34% | 1 | 1 | 0% | 939 | 1,704 | +81% | 0 | 0 | — |
case-16 | fail→pass | 7,884 | 3,318 | -58% | 1 | 1 | 0% | 1,405 | 1,697 | +21% | 0 | 0 | — |
case-17 | fail→pass | 7,914 | 5,806 | -27% | 1 | 1 | 0% | 1,880 | 2,508 | +33% | 0 | 0 | — |
case-18 | fail→pass | 11,392 | 4,158 | -64% | 1 | 1 | 0% | 2,300 | 1,930 | -16% | 0 | 0 | — |
case-19 | pass→pass | 2,947 | 4,324 | +47% | 1 | 1 | 0% | 612 | 2,131 | +248% | 0 | 0 | — |
case-20 | fail→pass | 6,040 | 2,818 | -53% | 1 | 1 | 0% | 1,283 | 1,678 | +31% | 0 | 0 | — |
case-21 | fail→pass | 8,193 | 4,522 | -45% | 1 | 1 | 0% | 1,811 | 2,165 | +20% | 0 | 0 | — |
case-22 | fail→pass | 13,237 | 2,345 | -82% | 1 | 1 | 0% | 2,562 | 1,614 | -37% | 0 | 0 | — |
case-01 | fail→pass | 12,854 | 3,722 | -71% | 1 | 1 | 0% | 2,753 | 2,013 | -27% | 0 | 0 | — |
case-02 | pass→pass | 12,847 | 5,262 | -59% | 1 | 1 | 0% | 2,773 | 2,039 | -26% | 0 | 0 | — |
case-03 | fail→fail | 19,321 | 2,532 | -87% | 1 | 1 | 0% | 3,661 | 1,711 | -53% | 0 | 0 | — |
case-04 | pass→fail | 8,917 | 11,135 | +25% | 1 | 1 | 0% | 2,055 | 3,539 | +72% | 0 | 0 | — |
case-05 | pass→pass | 13,828 | 12,060 | -13% | 1 | 1 | 0% | 3,003 | 3,973 | +32% | 0 | 0 | — |
case-06 | pass→pass | 19,188 | 10,518 | -45% | 1 | 1 | 0% | 2,933 | 3,020 | +3% | 0 | 0 | — |
case-07 | fail→pass | 8,307 | 3,937 | -53% | 1 | 1 | 0% | 1,763 | 1,918 | +9% | 0 | 0 | — |
case-08 | fail→pass | 14,634 | 3,024 | -79% | 1 | 1 | 0% | 3,070 | 1,837 | -40% | 0 | 0 | — |
case-09 | fail→pass | 10,506 | 2,086 | -80% | 1 | 1 | 0% | 2,040 | 1,535 | -25% | 0 | 0 | — |
case-10 | fail→pass | 10,708 | 3,077 | -71% | 1 | 1 | 0% | 2,186 | 1,829 | -16% | 0 | 0 | — |
case-11 | fail→pass | 9,719 | 2,513 | -74% | 1 | 1 | 0% | 2,033 | 1,609 | -21% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +68 percentage points is the difference between those two pass rates over the 22 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.