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
Own this skill? Claim it
What it does
- Covers SHAP 0.52.0 workflows: choosing explainers and maskers, computing
shap.Explanationobjects, 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 -yInstalls 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- Pyzotero2.3K
- Generate Image2.3K
- Infographics2.3K
- Matlab2.3K
- Dask2.3K
- Market Research Reports2.3K
- Get Available Resources2.3K
- Optimize For Gpu2.2K
- Pymc2.2K
- Venue Templates2.2K
- Research Lookup2.2K
- Umap Learn2.2K
- Parallel Web2.2K
- Scikit Survival2.2K
- Biopython2.2K
- Open Notebook2.2K
- Torch Geometric2.2K
- Timesfm Forecasting2.2K
- Geopandas2.2K
- Stable Baselines32.2K
- Geomaster2.2K
- Consciousness Council2.2K
- Simpy2.2K
- Pymoo2.2K
Similar to Shap
More Data Science & AnalyticsML Model Explanationaj-geddes/useful-ai-prompts438 installsInterpretability toolkit covering SHAP, LIME, feature importance, partial dependence, and attention maps for model explanations.
exploratory-data-analysisk-dense-ai/scientific-agent-skills2.5K installsBounded, local EDA for explicitly supported scientific files, with leakage audits and fail-closed format handling.
hypogenick-dense-ai/scientific-agent-skills2.2K installsPlan and audit HypoGeniC and HypoRefine hypothesis generation from labeled text datasets without starting model calls.
phoenix-evalsarize-ai/phoenix1.7K installsBuild and run code and LLM-as-a-judge evaluators for AI apps, with Phoenix in Python or TypeScript.
kibana-anomaly-detectionelastic/agent-skills3.6K installsTurns Elastic ML anomaly detection into a playbook for root-cause analysis, score explanation, and job troubleshooting.
ai-ml-securityyaklang/hack-skills4K installsAI/ML security playbook covering pickle RCE, adversarial examples, poisoning, model extraction, and privacy attacks.