Skip to content

Model interpretability toolkit using SHAP values to explain predictions, rank features, and audit bias across model types.

CCM score
63 of 100
skills.sh installs
375
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers global feature importance, per-prediction explanations, debugging, fairness analysis, and production explanation services
  • Includes explainer selection guidance for tree, deep, linear, and black-box models, plus six plot types from waterfall to heatmap
  • Explains SHAP values as additive contributions that sum from a baseline to the model's output, with signed direction and magnitude
  • Designed for data scientists explaining XGBoost, LightGBM, neural network, or other black-box predictions to stakeholders

Install

$ npx -y skills add davila7/claude-code-templates --skill shap -y

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

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

Details

Repository
github.com/davila7/claude-code-templates
Category
Data Science & Analytics
First seen
Jun 3, 2026

Questions

What does the shap skill do for machine learning models?

The shap skill explains machine learning model predictions using SHAP (SHapley Additive exPlanations) values. It computes feature importance and generates plots such as waterfall, beeswarm, bar, scatter, force and heatmap charts, and helps with debugging, bias analysis and model comparison.

Which models does the shap skill work with?

The skill works with tree-based models such as XGBoost, LightGBM and Random Forest, deep learning models such as TensorFlow and PyTorch, linear models, and any black-box model. It picks an explainer type suited to the model, with TreeExplainer for tree-based models and KernelExplainer for other models.

How do I install the shap skill?

Run npx -y skills add davila7/claude-code-templates --skill shap -y in your project. Once installed, the agent can explain model predictions, compute feature importance and generate SHAP plots for your code.

Which category does the shap skill belong to, and what sets it apart?

The shap skill is in the Data Science & Analytics category on Claude Marketplaces, alongside azure-kusto, analyze-project, run-train, explore-run and add-analytics-instrumentation. It focuses on model interpretability, covering SHAP value computation, plot generation and fairness analysis for machine learning models.

More from davila7/claude-code-templates

All 398