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-code

Installs 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
1davila7 avatartensorboarddavila7/claude-code-templatesVisualize training metrics, debug models with histograms, compare experiments, visualize model graphs, and profile performance with TensorBoard - Google's ML vi369skills.sh installs
2evoscientist avatarpaper-navigatorevoscientist/evoskillsFind and read academic papers (S2 + arXiv). Disambiguate ambiguous queries, search by keyword + citation graph + recommendations + snippets, judge by author-gra367skills.sh installs
3davila7 avatarab-test-setupdavila7/claude-code-templatesWhen the user wants to plan, design, or implement an A/B test or experiment. Also use when the user mentions "A/B test," "split test," "experiment," "test this 356skills.sh installs
4casper-studios avatardata-analysiscasper-studios/casper-marketplaceData analysis, visualization, and storytelling skill for financial and RevOps contexts. Use when: analyzing revenue data, building forecasts, cohort analysis, c333skills.sh installs
5davila7 avataraeondavila7/claude-code-templatesThis skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly detection, segmentation,324skills.sh installs
6silvainfm avatarduckdbsilvainfm/claude-skillsFast in-process analytical database for SQL queries on DataFrames, CSV, Parquet, JSON files, and more. Use when user wants to perform SQL analytics on data file317skills.sh installs