When you need to explain why your ML model made a specific prediction, this gets you SHAP values and visualizations without digging through documentation. It covers the explainer selection decision tree (TreeExplainer for XGBoost and friends, DeepExplainer for neural nets, KernelExplainer for black boxes), then walks through the standard plots: waterfall for individual predictions, beeswarm for global importance, scatter for feature relationships. The workflow coverage is actually useful, especially the debugging and fairness analysis patterns that go beyond just generating plots. Works with pretty much any model type. The main value is having all the explainer types and plot options laid out clearly so you can pick the right tool without trial and error.
- skills.sh installs
- 373
- GitHub stars
- 33.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add davila7/claude-code-templates --skill shap --agent claude-codeInstalls into .claude/skills of the current project.
Files
SHAP (SHapley Additive exPlanations)
Overview
SHAP is a unified approach to explain machine learning model outputs using Shapley values from cooperative game theory. This skill provides comprehensive guidance for:
- Computing SHAP values for any model type
- Creating visualizations to understand feature importance
- Debugging and validating model behavior
- Analyzing fairness and bias
- Implementing explainable AI in production
SHAP works with all model types: tree-based models (XGBoost, LightGBM, CatBoost, Random Forest), deep learning models (TensorFlow, PyTorch, Keras), linear models, and black-box models.
When to Use This Skill
Sponsors
Details
- Repository
- github.com/davila7/claude-code-templates
- Categories
- Data Science & ML, Debugging, Python
- First seen
- Jun 3, 2026
More from davila7/claude-code-templates
All 618- Drugbank Database372
- Page Cro372
- Github Workflow Automation371
- Schema Markup371
- Webapp Testing370
- Bun Development369
- Tensorboard369
- Pymatgen368
- Deepspeed367
- Figma Implement Design367
- Copy Editing366
- Codex Review365
- Instructor365
- Notebooklm365
- Behavioral Modes364
- Unsloth364
- Test Driven Development363
- Accessibility362
- Networkx362
- Pymc Bayesian Modeling362
- Analytics Tracking361
- Outlines359
- Python Patterns359
- Biorxiv Database358
