If you need to explain why your ML model made a prediction, this gets you SHAP values and visualizations fast. Works with XGBoost, LightGBM, neural nets, basically anything. The skill walks you through picking the right explainer (TreeExplainer for tree models, DeepExplainer for neural nets, KernelExplainer for black boxes), computing feature attributions, and generating the standard plots: waterfall for individual predictions, beeswarm for global importance, scatter for relationships. The workflow sections are solid, especially the debugging and fairness analysis bits that show you how to catch data leakage or check for bias across demographic groups. Good reference if you're tired of Googling which SHAP plot does what.

skills.sh installs
2.1K
GitHub stars
56.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add k-dense-ai/scientific-agent-skills --skill shap --agent claude-code

Installs into .claude/skills of the current project.

Files

SHAP

Use SHAP to describe how a fitted predictive model maps inputs to outputs. Work from the modern shap.Explanation API, make the explained output and background distribution explicit, and validate every explanation before interpreting it.

This skill is aligned with SHAP 0.52.0 (released 2026-05-28). That release requires Python 3.12 or newer.

The maintained examples were checked on Python 3.12.10 with SHAP 0.52.0, NumPy 2.5.3, pandas 3.0.6, scikit-learn 1.9.1, and matplotlib 3.11.2. Native tests cover small tree, exact, permutation, partition, linear, additive, kernel, text, and constant-image games; additional numeric XGBoost 3.4.1 smoke checks cover raw, probability, loss, and interaction outputs. Reference snippets that require a project model, framework, or data are adaptation templates; optional pretrained/deep, GPU, and distributed integrations remain illustrative and require their own runtime validation.

Operating Rules

Sponsors

Details

Repository
github.com/k-dense-ai/scientific-agent-skills
Categories
Documentation, AI & Agent Building, Data Science & ML
First seen
Jun 3, 2026

More from k-dense-ai/scientific-agent-skills

All 137
1brightdata avatarbrightdata-clibrightdata/skillsGuide for using the Bright Data CLI (`brightdata` / `bdata`) to scrape websites, search the web, extract structured data from 40+ platforms, manage proxy zones,2.1Kskills.sh installs
2jwynia avatargodot-best-practicesjwynia/agent-skillsGuide AI agents through Godot 4.x GDScript coding best practices including scene organization, signals, resources, state machines, and performance optimization.2.1Kskills.sh installs
3calm-north avatarbuild-clusterscalm-north/seojuice-skillsBuild a topical authority cluster from a seed keyword or topic. Use when the user asks about topic clusters, content silos, pillar pages, topical authority, con2.1Kskills.sh installs
4k-dense-ai avatarstable-baselines3k-dense-ai/scientific-agent-skillsProduction-ready reinforcement learning algorithms (PPO, SAC, DQN, TD3, DDPG, A2C) with scikit-learn-like API. Use for standard RL experiments, quick prototypin2.1Kskills.sh installs
5koreal6803 avatarfinlabkoreal6803/finlab-aiComprehensive guide for FinLab quantitative trading package across global stock markets (TW, US, KR, JP, HK; both single-name equities and ETFs/funds). Use when2Kskills.sh installs
6github avatarmicrosoft-agent-frameworkgithub/awesome-copilotCreate, update, refactor, explain, or review Microsoft Agent Framework solutions using shared guidance plus language-specific references for .NET and Python.2Kskills.sh installs