Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add zjunlp/Mechanist --skill amortized-shapgit clone --depth 1 https://github.com/zjunlp/MechanistWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/zjunlp/mechanist/amortized-shap)<a href="https://agentmods.dev/skills/zjunlp/mechanist/amortized-shap"><img src="https://agentmods.dev/badge/skills/zjunlp/mechanist/amortized-shap/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/zjunlp/mechanist/amortized-shap"><img src="https://agentmods.dev/badge/skills/zjunlp/mechanist/amortized-shap.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00067 | $0.06517 |
| Opus 5 | $0.00034 | $0.03259 |
| Sonnet 5 | $0.00013 | $0.01303 |
| Haiku 4.5 | $0.00007 | $0.00652 |
Grade A, and why
fastshap scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 727 lines — stays where its author put it; the contents beside it link to each section on GitHub.
FastSHAP Skill
When to Use
Activate this skill when:
- You need to generate Shapley value explanations for a predictive model's outputs
- You want to train an amortized explainer (neural network) that produces explanations in a single forward pass rather than running KernelSHAP separately for each sample
- You are working with tabular data (census/adult-style datasets) and want feature attribution explanations
- You are working with image data (e.g., CIFAR-10, ImageNet) and need pixel/superpixel-level explanations
- You want to train a surrogate model that accepts masked/missing features to support the FastSHAP training process
- You need real-time or batch Shapley value estimates with lower computational overhead than KernelSHAP
- Keywords:
shapley values,SHAP,model explainability,feature importance,amortized inference,KernelSHAP,surrogate model,FastSHAP,local explanations,XAI,interpretability
Quick Reference
| Resource | URL |
|---|---|
| Paper (arXiv) | https://arxiv.org/abs/2107.07436 |
| GitHub Repository | https://github.com/iancovert/fastshap |
| TensorFlow implementation | https://github.com/neiljethani/fastshap |
| Census notebook | https://github.com/iancovert/fastshap/blob/main/notebooks/census.ipynb |
| CIFAR-10 notebook | https://github.com/iancovert/fastshap/blob/main/notebooks/cifar.ipynb |
| CIFAR-10 single model notebook | https://github.com/iancovert/fastshap/blob/main/notebooks/cifar%20single%20model.ipynb |
| Blog: Understanding SHAP/SAGE | https://iancovert.com/blog/understanding-shap-sage/ |
Installation / Setup
Prerequisites
- Python 3.7+
- PyTorch (install separately per your CUDA version)
- A machine learning model to explain (e.g., LightGBM, XGBoost, sklearn, PyTorch CNN)
Install from Source (Recommended)
# Clone the repository
git clone https://github.com/iancovert/fastshap.git
cd fastshap
# Install the package
pip install .
Install Dependencies for Notebooks
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 727 lines · 67 tokens per session scan A d5b050066bd1
fastshap is a skill published in the GitHub repository zjunlp/Mechanist (74 stars, last pushed 13d ago), licensed MIT. It adds 67 tokens to every session and 6,517 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
skypilot-multi-cloud-orchestration
Multi-cloud orchestration for ML workloads with automatic cost optimization. Use when you need to run training or batch jobs across multiple clouds, leverage spot instances with auto-recovery, or optimize GPU costs across providers.
create-atomic-context-provider
Build a BaseDynamicContextProvider that injects a named, titled block into an agent's system prompt at every run() — current time, user identity, retrieved RAG docs, session state, cached DB schema. Use when the user asks to "add a context provider", "inject X into the prompt", "give the agent dynamic context", "wire…
synalinks
Use for anything involving the Synalinks neuro-symbolic LM framework (Keras-inspired) — DataModel/Field/Input, JSON operators (+ & | ^ ), synalinks.ops, LanguageModel/EmbeddingModel and provider prefixes (openai/anthropic/ollama/groq/openrouter/bedrock/...); the Program class and its four building APIs…
nanoresearch-writing
Draft a LaTeX research paper from all previous stage outputs.
nanoresearch-experiment
Generate a Python code skeleton from an experiment blueprint.
nanoresearch-planning
Produce an experiment blueprint from a research hypothesis.