Agent skill · AI & Agents

shap

Model interpretability and explainability using SHAP (SHapley Additive exPlanations). Use this skill when explaining machine learning model predictions, computing feature importance, generating SHAP plots (waterfall, beeswarm, bar, scatter, force, heatmap), debugging models, analyzing model bias or fairness, comparing models, or implementing explainable AI. Works with tree-based models (XGBoost, LightGBM, Random Forest), deep learning (TensorFlow, PyTorch), linear models, and any black-box model.

LeonChaoXgithub.com/LeonChaoXGitHub ↗
claude-codeMIT
Install
npx skills add LeonChaoX/qinyan-academic-skills --skill shap --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 5
SKILL.md size: 18 KB
Bundled scripts: none
Path: skills/09-机器学习与人工智能/shap/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 759
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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 **Trigger this skill when users ask about**: - "Explain which features are most important in my model" - "Generate SHAP plots" (waterfall, beeswarm, bar, scatter, force, heatmap, etc.) - "Why did my model make this prediction?" - "Calculate SHAP values for my model" - "Visualize feature importance using SHAP" - "Debug my model's behavior" or "validate my model" - "Check my model for bias" or "analyze fairness" - "Compare feature importance across models" - "Implement explainable AI" or "add explanations to my model" - "Understand feature interact

What's inside
Steps it walks through
  1. Overview
  2. When to Use This Skill
  3. Quick Start Guide
  4. Step 1: Select the Right Explainer
  5. Step 2: Compute SHAP Values
  6. Step 3: Visualize Results
  7. Core Workflows
  8. Workflow 1: Basic Model Explanation
  9. Workflow 2: Model Debugging
  10. Workflow 3: Feature Engineering
  11. Workflow 4: Model Comparison
  12. Workflow 5: Fairness and Bias Analysis
  13. Workflow 6: Production Deployment
  14. Key Concepts
Ships with 4 files
  • references/explainers.md
  • references/plots.md
  • references/theory.md
  • references/workflows.md
Commands it runs
Basic installation
uv pip install shap
With visualization dependencies
uv pip install shap matplotlib
Latest version
uv pip install -U shap
More from qinyan-academic-skills
All skills →
About this skill
What does the shap skill do?

Model interpretability and explainability using SHAP (SHapley Additive exPlanations). Use this skill when explaining machine learning model predictions, computing feature importance, generating SHAP plots (waterfall, beeswarm, bar, scatter, force, heatmap), debugging models, analyzing model bias or fairness, comparing models, or implementing explainable AI. Works with tree-based models (XGBoost, LightGBM, Random Forest), deep learning (TensorFlow, PyTorch), linear models, and any black-box model.

How do I install it?

Run `npx skills add LeonChaoX/qinyan-academic-skills --skill shap --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From LeonChaoX/qinyan-academic-skills, a repository with 759 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going