If you need to explain why your ML model made a prediction, this gets you SHAP values and visualizations fast. Works with XGBoost, LightGBM, neural nets, basically anything. The skill walks you through picking the right explainer (TreeExplainer for tree models, DeepExplainer for neural nets, KernelExplainer for black boxes), computing feature attributions, and generating the standard plots: waterfall for individual predictions, beeswarm for global importance, scatter for relationships. The workflow sections are solid, especially the debugging and fairness analysis bits that show you how to catch data leakage or check for bias across demographic groups. Good reference if you're tired of Googling which SHAP plot does what.
- skills.sh installs
- 2.1K
- GitHub stars
- 56.6K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add k-dense-ai/scientific-agent-skills --skill shap --agent claude-codeInstalls into .claude/skills of the current project.
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
Sponsors
Details
- Repository
- github.com/k-dense-ai/scientific-agent-skills
- Categories
- Documentation, AI & Agent Building, Data Science & ML
- First seen
- Jun 3, 2026
More from k-dense-ai/scientific-agent-skills
All 137- Pyzotero2.1K
- Generate Image2.1K
- Dask2.1K
- Infographics2.1K
- Market Research Reports2.1K
- Matlab2.1K
- Get Available Resources2.1K
- Optimize For Gpu2.1K
- Pymc2.1K
- Umap Learn2.1K
- Parallel Web2.1K
- Venue Templates2.1K
- Scikit Survival2.1K
- Open Notebook2.1K
- Torch Geometric2.1K
- Biopython2.1K
- Research Lookup2.1K
- Timesfm Forecasting2.1K
- Geopandas2.1K
- Stable Baselines32.1K
- Consciousness Council2.1K
- Simpy2.1K
- Pymoo2.1K
- Scikit Bio2.1K
