Skip to content

Explains and audits ML predictions with SHAP: explainer and masker selection, validated attributions, and visualizations.

CCM score
73 of 100
skills.sh installs
2.3K
GitHub stars
58.9K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers SHAP 0.52.0 workflows: choosing explainers and maskers, computing shap.Explanation objects, and validating feature attributions against model output
  • Includes worked examples for multi-output and binary-classifier explanations, plus reference guides for explainer selection and data maskers
  • Enforces checks that additivity holds against the exact explained output, and forbids loading untrusted pickle, joblib, or model artifacts
  • Designed for data scientists who need auditable, held-out explanations of fitted models on Python 3.12 or newer

Install

$ npx -y skills add k-dense-ai/scientific-agent-skills --skill shap -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

SHAP

Use SHAP to describe how a fitted predictive model maps inputs to outputs. Work from the modern shap.Explanation API, make the explained output and background distribution explicit, and validate every explanation before interpreting it.

This skill is aligned with SHAP 0.52.0 (released 2026-05-28). That release requires Python 3.12 or newer.

The maintained examples were checked on Python 3.12.10 with SHAP 0.52.0, NumPy 2.5.3, pandas 3.0.6, scikit-learn 1.9.1, and matplotlib 3.11.2. Native tests cover small tree, exact, permutation, partition, linear, additive, kernel, text, and constant-image games; additional numeric XGBoost 3.4.1 smoke checks cover raw, probability, loss, and interaction outputs. Reference snippets that require a project model, framework, or data are adaptation templates; optional pretrained/deep, GPU, and distributed integrations remain illustrative and require their own runtime validation.

Operating Rules

Details

Repository
github.com/k-dense-ai/scientific-agent-skills
Categories
Data Science & Analytics, Python
First seen
Jun 3, 2026

Questions

What does the SHAP skill help an agent do?

The shap skill helps an agent explain and audit machine-learning predictions with SHAP. It covers choosing explainers and maskers, computing and validating feature attributions, handling multi-output explanations, and producing local or global SHAP visualizations.

How do I install the shap skill?

Run npx -y skills add k-dense-ai/scientific-agent-skills --skill shap -y in a project to install the shap skill. Once installed, the agent can follow its workflow for SHAP 0.52.0 explanations.

What does the shap skill need to run?

The shap skill requires Python 3.12 or newer and uv for SHAP 0.52.0. Model-specific libraries such as scikit-learn are optional and depend on the model being explained.

Where does the shap skill stand in its category?

The shap skill is listed in the Data Science & Analytics category on Claude Marketplaces. The other top skills in that category include azure-kusto and analyze-project, but the shap skill focuses on model explanation with SHAP.

More from k-dense-ai/scientific-agent-skills

All 132