library/specializations/data-science-ml/skills/lime-explainer/SKILL.md
LIME-based local explanation skill for individual predictions across tabular, text, and image data.
npx skillsauth add a5c-ai/babysitter lime-explainerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
LIME-based local explanation skill for individual predictions across tabular, text, and image data using Local Interpretable Model-agnostic Explanations.
{
"type": "object",
"required": ["modelPath", "dataType", "instancePath"],
"properties": {
"modelPath": {
"type": "string",
"description": "Path to the trained model or prediction function"
},
"dataType": {
"type": "string",
"enum": ["tabular", "text", "image"],
"description": "Type of data to explain"
},
"instancePath": {
"type": "string",
"description": "Path to instance(s) to explain"
},
"tabularConfig": {
"type": "object",
"properties": {
"trainingDataPath": { "type": "string" },
"featureNames": { "type": "array", "items": { "type": "string" } },
"categoricalFeatures": { "type": "array", "items": { "type": "integer" } },
"classNames": { "type": "array", "items": { "type": "string" } }
}
},
"textConfig": {
"type": "object",
"properties": {
"classNames": { "type": "array", "items": { "type": "string" } },
"splitExpression": { "type": "string" }
}
},
"imageConfig": {
"type": "object",
"properties": {
"segmenter": { "type": "string", "enum": ["quickshift", "slic", "felzenszwalb"] },
"hideColor": { "type": "string" },
"numSamples": { "type": "integer" }
}
},
"explainerConfig": {
"type": "object",
"properties": {
"numFeatures": { "type": "integer" },
"numSamples": { "type": "integer" },
"kernelWidth": { "type": "number" }
}
}
}
}
{
"type": "object",
"required": ["status", "explanations"],
"properties": {
"status": {
"type": "string",
"enum": ["success", "error"]
},
"explanations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"instanceId": { "type": "string" },
"predictedClass": { "type": "string" },
"predictionProbability": { "type": "number" },
"features": {
"type": "array",
"items": {
"type": "object",
"properties": {
"feature": { "type": "string" },
"weight": { "type": "number" },
"contribution": { "type": "string" }
}
}
},
"localAccuracy": { "type": "number" }
}
}
},
"visualizations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"instanceId": { "type": "string" },
"plotPath": { "type": "string" }
}
}
}
}
}
{
kind: 'skill',
title: 'Generate LIME explanations for predictions',
skill: {
name: 'lime-explainer',
context: {
modelPath: 'models/classifier.pkl',
dataType: 'tabular',
instancePath: 'data/instances_to_explain.csv',
tabularConfig: {
trainingDataPath: 'data/train.csv',
featureNames: ['age', 'income', 'credit_score'],
categoricalFeatures: [0, 2],
classNames: ['reject', 'approve']
},
explainerConfig: {
numFeatures: 10,
numSamples: 5000
}
}
}
}
development
Model documentation skill for generating model cards following Google's model card framework.
development
MLflow integration skill for experiment tracking, model registry, and artifact management. Enables LLMs to log experiments, compare runs, manage model lifecycle, and retrieve artifacts through the MLflow API.
devops
Kubeflow Pipelines skill for ML workflow orchestration, component management, and Kubernetes-native ML.
tools
Jupyter notebook execution skill for running notebooks programmatically and extracting outputs.