Sign in
Explore
Skills · SkillData & AIMachine learningReviewedWrites files

shap

Explains and audits machine-learning predictions with SHAP: choosing explainers and maskers, validating feature attributions and producing local or global plots.

Kind
Skill
Works with
Claude Code, Codex, Cursor, Gemini / Antigravity
Source
Scientific Agent Skills (K-Dense) @ 5f2bc0341354
Path
skills/shap/SKILL.md
Jobs
Review
Topics
Machine learning

Credit

Made by
K-Dense-AI
Original
github.com/K-Dense-AI/scientific-agent-skills/blob/5f2bc03413…
License
MIT

Listed by Skill Manifest; not made by us.

InstallInstall it by hand, following the source.
gh skill install K-Dense-AI/scientific-agent-skills shap
Install factsScanned 3 Nov 2026
Adds
  • .claude/skills/shap/ (the skill folder)
  • 8 file(s) the skill refers to
  • 9 other files in the folder: references/data-maskers.md, references/explainers.md, references/migration.md, references/modalities.md and 5 more
Runs scripts
Yes
  • scripts/tabular_report.py
  • allowed-tools includes Bash
  • shell block in the text
  • shell block in the text (references/migration.md)
Uses the network
Yes
  • downloads Python packages
  • downloads Python packages (references/migration.md)
  • downloads Python packages (references/troubleshooting.md)
Needs secrets
None found
Reads outside the project
  • /usr/bin/env (scripts/tabular_report.py)
Value without its scripts
High
  • The main file never tells the agent to run a bundled script, so the text works without them.
  • scripts/tabular_report.py: Generate a validated SHAP 0.52 tabular report from a built-in dataset.
Source revision
5f2bc0341354
Licence
MIT
Last activity
23 Nov 2026
Source changed after the scan
Yes
  • Last push 23 Nov 2026, scanned 3 Nov 2026; read it again before you rely on this scan
Review
Reviewed

Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.

# 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

1. Explain a fixed, evaluated model; do not use SHAP as a substitute for predictive validation.
…