shap
Model interpretability and explainability using SHAP (SHapley Additive exPlanations).
Skill by rafeeqinea
Chalk Labs
Need help deploying shap?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/rafeeqinea-shap
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: ml
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
shap- Description
- 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.
- License
- MIT
- Metadata
- skill-author: K-Dense Inc.
- Instructions
- 558 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- body: 558 lines (spec recommends under 500)
- files: referenced but missing: references/explainers.md, references/plots.md, references/workflows.md
Files (1)
- SKILL.md
SKILL.md (first lines)
# 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 interactions" - "Create model interpretation dashboard" ## Quick Start Guide ### Step 1: Select the Right Explainer **Decision Tree**: 1. **Tree-based model?** (XGBoost, LightGBM, CatBoost, Random Forest, Gradient Boosting) - Use `shap.TreeExplainer` (fast, exact) 2. **Deep neural network?** (TensorFlow, PyTorch, Keras, CNNs, RNNs, Transformers) - Use `shap.DeepExplainer` or `shap.GradientExplainer` 3. **Linear model?** (Linear/Logistic Regression, GLMs) - Use `shap.LinearExplainer` (extremely fast) 4. **Any other model?** (SVMs, custom functions, black-box models) - Use `shap.KernelExplainer` (model-agnostic but slower) 5. **Unsure?** - Use `shap.Explainer` (automatically selects best algorithm) **See `references/explainers.md` for detailed information on all explainer types.** ### Step 2: Compute SHAP Values ```python import shap # Example with tree-based model (XGBoost) import xgboost as xgb # Train model model = xgb.XGBClassifier().fit(X_train, y_train) # Create explainer explainer = shap.TreeExplainer(model) # Compute SHAP values shap_values = explainer(X_test) # The shap_values object contains: # - values: SHAP values (feature attributions) # - base_values: Expected model output (baseline) # - data: Original feature values ``` ### Step 3: Visualize Results **For Global Understanding** (entire dataset): ```python # Beeswarm plot - shows feature importance with value distributions shap.plots.beeswarm(shap_values, max_display=15) # Bar plot - clean summary of feature importance shap.plots.bar(shap_values) ``` **For Individual Predictions**: ```python # Waterfall plot - detailed breakdown of single prediction shap.plots.waterfall(shap_values[0]) # Force plot - additive force visualization shap.plots.force(shap_values[0]) ``` **For Feature Relationships**: ```python # Scatter plot - feature-prediction relationship shap.plots.scatter(shap_values[:, "Feature_Name"]) # Colored by another feature to show interactions shap.plots.scatter(shap_values[:, "Age"], color=shap_values[:, "Education"]) ``` **See `references/plots.md` for comprehensive guide on all plot types.** ## Core Workflows This skill supports several common workflows. Choose the workflow that matches the current task. ### Workflow 1: Basic Model Explanation **Goal**: Understand what drives model predictions **Steps**: 1. Train model and create appropriate explainer 2. Compute SHAP values for test set 3. Generate global importance plots (beeswarm or bar) 4. Examine top feature relationships (scatter plots)
From rafeeqinea/claude-academic-toolkit, MIT.
More from rafeeqinea/claude-academic-toolkit
- 0.409score
self-improve
rafeeqinea
Deep self-analysis and improvement.
SkillDFreshness: DClaude Code - 0.409score
reflect
rafeeqinea
End-of-session reflection.
SkillDFreshness: DClaude Code +9 - 0.409score
explain-file
rafeeqinea
Read a source file and explain every line in depth.
SkillDFreshness: DClaude Code - 0.406score
benchmark
rafeeqinea
Systematic benchmarking and comparison of algorithms, models, or approaches under identical conditions.
SkillDFreshness: DClaude Code +9 - 0.406score
drive-research
rafeeqinea
Search Google Drive for papers, datasets, documents, and pull files into the conversation.
SkillDFreshness: DClaude Code +9 - 0.406score
notebook-query
rafeeqinea
Query NotebookLM notebooks directly from Claude Code for grounded, citation-backed answers.
SkillDFreshness: DClaude Code +9 - 0.406score
notion-notes
rafeeqinea
Push research notes, experiment results, and session summaries to Notion.
SkillDFreshness: DClaude Code +9 - 0.406score
docs-lookup
rafeeqinea
Fetch the latest documentation for any programming library using Context7.
SkillDFreshness: DClaude Code +9 - 0.406score
experiment
rafeeqinea
Run, track, and compare ML experiments with structured logging.
SkillDFreshness: DClaude Code +9 - 0.406score
debug
rafeeqinea
Structured debugging workflow that teaches the debugging process, not just fixes the bug.
SkillDFreshness: DClaude Code +9 - 0.403score
derive
rafeeqinea
Perform step-by-step mathematical derivations with full explanations and LaTeX output.
SkillDFreshness: DClaude Code +9 - 0.403score
teach
rafeeqinea
Explain any concept from absolute scratch using first principles, analogies, examples, and progressive complexity.
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Mar 9, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.644score
shap
foryourhealth111-pixel
Model interpretability and explainability using SHAP (SHapley Additive exPlanations).
SkillAFreshness: A★ 3.8KClaude Code +9 - 0.304score
shap
HuuBar
Model interpretability and explainability using SHAP (SHapley Additive exPlanations).
SkillBFreshness: BClaude Code +9 - 0.265score
shap
lamm-mit
Model interpretability and explainability using SHAP (SHapley Additive exPlanations).
SkillCFreshness: C★ 250Claude Code +9
More from rafeeqinea
- 0.409score
self-improve
rafeeqinea
Deep self-analysis and improvement.
SkillDFreshness: DClaude Code - 0.409score
reflect
rafeeqinea
End-of-session reflection.
SkillDFreshness: DClaude Code +9 - 0.409score
explain-file
rafeeqinea
Read a source file and explain every line in depth.
SkillDFreshness: DClaude Code - 0.406score
benchmark
rafeeqinea
Systematic benchmarking and comparison of algorithms, models, or approaches under identical conditions.
SkillDFreshness: DClaude Code +9 - 0.406score
drive-research
rafeeqinea
Search Google Drive for papers, datasets, documents, and pull files into the conversation.
SkillDFreshness: DClaude Code +9 - 0.406score
notebook-query
rafeeqinea
Query NotebookLM notebooks directly from Claude Code for grounded, citation-backed answers.
SkillDFreshness: DClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get shap running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
shap skill. Agent Mart. https://agentmart.dev/skills/rafeeqinea-shap (last updated 2026-10-24)