explainability-by-default

explainability-by-default is a skill for Claude Code from obielin/responsible-ai-skills. It costs 32 tokens per session (1,707 once invoked), scanned A, original, MIT.

A required design process for making prediction, classification, recommendation, and scoring systems able to explain their decisions. It considers explanations for affected people, staff, auditors, and developers.

In plain words
What is it for?
Use it before writing model code to choose an appropriate model design and decide what explanations each audience needs.
Why use it?
Without planned explanations, people may receive decisions or scores they cannot understand or challenge.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the responsible-ai-skills plugin — 9 skills shipped together

Good fit Use it before writing model code to choose an appropriate model design and decide what explanations each audience needs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/obielin/responsible-ai-skills/explainability-by-default
Install

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.

Any agent
npx skills add obielin/responsible-ai-skills --skill explainability-by-default
Clone the repo
git clone --depth 1 https://github.com/obielin/responsible-ai-skills

Made for: Claude Code.

Or install responsible-ai-skills, the plugin that ships this one along with the rest of its 9 skills.

Wrote 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.

agentmods badge for explainability-by-default

README.md
[![agentmods](https://agentmods.dev/badge/skills/obielin/responsible-ai-skills/explainability-by-default/github.svg)](https://agentmods.dev/skills/obielin/responsible-ai-skills/explainability-by-default)
Your own site
<a href="https://agentmods.dev/skills/obielin/responsible-ai-skills/explainability-by-default"><img src="https://agentmods.dev/badge/skills/obielin/responsible-ai-skills/explainability-by-default/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.

agentmods 80×15 button for explainability-by-default

Your own site · 80×15
<a href="https://agentmods.dev/skills/obielin/responsible-ai-skills/explainability-by-default"><img src="https://agentmods.dev/badge/skills/obielin/responsible-ai-skills/explainability-by-default.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,707 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.01707
Opus 5 $0.00016 $0.00853
Sonnet 5 $0.00006 $0.00341
Haiku 4.5 $0.00003 $0.00171

Measured 10d ago against content hash 0a7efa5259f4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

explainability-by-default 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 10d 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.

skills/explainability-by-default/SKILL.md · 233 lines

How it starts

The opening of the file, as written. The whole thing — 233 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Explainability by Default

Every AI system you build must be able to explain its decisions. This is not an add-on — it is a design constraint. Build explanation capability first, then the model.

The Explainability Design Question

Before choosing a model architecture, answer this:

Who needs to understand this decision, and what do they need to know?

Audience What They Need Approach
Affected citizen "Why was I declined/flagged/scored?" Plain-English local explanation
Frontline staff "What drove this score for this person?" Feature importance for this case
Auditor / regulator "How does this system work systematically?" Global model behaviour + documentation
Developer / data scientist "Is the model behaving as expected?" SHAP values, attention maps, partial dependence

Design for all relevant audiences before writing model code.


Step 1: Choose an Interpretable-First Architecture

Prefer interpretable models unless you have a clear, documented reason not to:

Decision tree → Logistic regression → Linear SVM
     ↓ (only if accuracy genuinely requires it)
Random Forest + SHAP → Gradient Boosting + SHAP
     ↓ (only if task genuinely requires it)
Deep neural network + explanation layer
     ↓ (last resort — requires extra governance)
Black-box model (requires independent audit)

Rule: Use the simplest model that meets your accuracy requirements. Document why you didn't use a simpler one.


Step 2: Add Explanation Capability at Build Time

For Scikit-learn Models

import shap

# Train model
model.fit(X_train, y_train)

# Build explainer at training time — not as an afterthought
explainer = shap.TreeExplainer(model)  # for tree-based models
# or
explainer = shap.LinearExplainer(model, X_train)  # for linear models
# or
explainer = shap.KernelExplainer(model.predict, shap.sample(X_train, 100))  # for any model

# Save explainer alongside model
import joblib
joblib.dump({'model': model, 'explainer': explainer}, 'model_artifacts/model_with_explainer.pkl')

Read the full file on GitHub · 233 lines

Changes

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.

  1. 10d ago First seen · 233 lines · 32 tokens per session scan A 0a7efa5259f4

Subscribe to this mod's changes

explainability-by-default is a skill published in the GitHub repository obielin/responsible-ai-skills (2 stars, last pushed 5mo ago), licensed MIT. It adds 32 tokens to every session and 1,707 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

visualize

Visualize the Semantica knowledge graph — topology, centrality, communities, paths, embeddings, decision insights, and temporal evolution. Uses GraphAnalyzer, CentralityCalculator, CommunityDetector, PathFinder, and ContextGraph analytics. Sub-commands: topology, centrality, community, path, decision-graph, insights…

semantica-agi/semantica · 0 tokens

embed

Generate, inspect, and use node/text embeddings in Semantica — compute Node2Vec embeddings, find similar nodes, score link predictions, batch similarity, and pairwise similarity. Uses NodeEmbedder, SimilarityCalculator, LinkPredictor, and AgentContext. Sub-commands: compute, similar, similarity, predict-link…

semantica-agi/semantica · 0 tokens

validate

Validate Semantica pipelines, extraction quality, graph schemas, and ontology consistency. Returns structured error/warning checklists. Uses PipelineValidator, PipelineBuilder.validatepipeline(), GraphValidator, and OntologyValidator. Sub-commands: pipeline, step, dependencies, extraction, graph, ontology, performance.

semantica-agi/semantica · 0 tokens

reason

Run reasoning over the Semantica knowledge graph — deductive logic, abductive hypothesis generation, Datalog programs, SPARQL queries, Rete network evaluation. Uses DeductiveReasoner, AbductiveReasoner, DatalogReasoner, SPARQLReasoner, ReteEngine. Sub-commands: deductive, abductive, datalog, sparql, rete, prove…

semantica-agi/semantica · 0 tokens

temporal

Temporal graph operations on Semantica — scoped queries at a point in time, graph snapshots, node change timelines, temporal causal analysis, and graph state reconstruction. Uses AgentContext.findprecedents(asof=), ContextGraph.stateat(), CausalChainAnalyzer.traceattime(), and TemporalQueryRewriter. Sub-commands…

semantica-agi/semantica · 0 tokens

extract

Run the full Semantica semantic extraction pipeline on a file or selected text — NER, relations, events, coreference resolution, triplets, and validation. Clears result cache before each run. Returns Markdown tables with entity/relation/event/triplet results and inline validator warnings.

semantica-agi/semantica · 59 tokens