Agent skill
jupyter-notebook-executor
Jupyter notebook execution skill for running notebooks programmatically and extracting outputs.
Install this agent skill to your Project
npx add-skill https://github.com/a5c-ai/babysitter/tree/main/library/specializations/data-science-ml/skills/jupyter-notebook-executor
SKILL.md
jupyter-notebook-executor
Overview
Jupyter notebook execution skill for running notebooks programmatically, parameterizing inputs, and extracting outputs for ML workflows.
Capabilities
- Parameterized notebook execution
- Output extraction and validation
- Notebook conversion (to HTML/PDF)
- Cell execution control
- Error handling and reporting
- Environment management
- Kernel specification
- Timeout management
Target Processes
- Exploratory Data Analysis (EDA) Pipeline
- Model Interpretability and Explainability Analysis
- Experiment Planning and Hypothesis Testing
Tools and Libraries
- papermill
- nbconvert
- jupyter
- nbformat
Input Schema
{
"type": "object",
"required": ["action", "notebookPath"],
"properties": {
"action": {
"type": "string",
"enum": ["execute", "convert", "extract", "validate"],
"description": "Action to perform on the notebook"
},
"notebookPath": {
"type": "string",
"description": "Path to the Jupyter notebook"
},
"executeConfig": {
"type": "object",
"properties": {
"parameters": { "type": "object" },
"outputPath": { "type": "string" },
"kernel": { "type": "string" },
"timeout": { "type": "integer" },
"cwd": { "type": "string" }
}
},
"convertConfig": {
"type": "object",
"properties": {
"format": { "type": "string", "enum": ["html", "pdf", "markdown", "script"] },
"outputPath": { "type": "string" },
"template": { "type": "string" },
"excludeInput": { "type": "boolean" },
"excludeOutput": { "type": "boolean" }
}
},
"extractConfig": {
"type": "object",
"properties": {
"cellTags": { "type": "array", "items": { "type": "string" } },
"outputTypes": { "type": "array", "items": { "type": "string" } },
"variableNames": { "type": "array", "items": { "type": "string" } }
}
}
}
}
Output Schema
{
"type": "object",
"required": ["status", "action"],
"properties": {
"status": {
"type": "string",
"enum": ["success", "error", "timeout"]
},
"action": {
"type": "string"
},
"executionResult": {
"type": "object",
"properties": {
"outputPath": { "type": "string" },
"executionTime": { "type": "number" },
"cellsExecuted": { "type": "integer" },
"errors": { "type": "array" }
}
},
"conversionResult": {
"type": "object",
"properties": {
"outputPath": { "type": "string" },
"format": { "type": "string" }
}
},
"extractedData": {
"type": "object",
"properties": {
"variables": { "type": "object" },
"outputs": { "type": "array" },
"figures": { "type": "array", "items": { "type": "string" } }
}
}
}
}
Usage Example
{
kind: 'skill',
title: 'Execute EDA notebook with parameters',
skill: {
name: 'jupyter-notebook-executor',
context: {
action: 'execute',
notebookPath: 'notebooks/eda_template.ipynb',
executeConfig: {
parameters: {
data_path: 'data/train.csv',
output_dir: 'results/eda/',
sample_size: 10000
},
outputPath: 'notebooks/eda_results.ipynb',
kernel: 'python3',
timeout: 3600
}
}
}
}
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
gsd-tools
Central utility skill for GSD operations. Provides config parsing, slug generation, timestamps, path operations, and orchestrates calls to other specialized skills. Acts as the unified entry point that the original gsd-tools.cjs provided via its lib/ modules (commands, config, core, init).
model-profile-resolution
Resolve model profile (quality/balanced/budget) at orchestration start and map agents to specific models. Enables cost/quality tradeoffs by selecting appropriate AI models for each agent role.
verification-suite
Plan structure validation, phase completeness checks, reference integrity verification, and artifact existence confirmation. Provides the structured verification layer ensuring GSD artifacts are well-formed and complete.
state-management
STATE.md reading, writing, and field-level updates. Provides cross-session state persistence via .planning/STATE.md with structured fields for current task, completed phases, blockers, decisions, and quick tasks.
git-integration
Git commit patterns, formats, and conventions for GSD methodology. Provides atomic commits per task, structured commit messages, planning file commits, branch management, and milestone tag operations.
frontmatter-parsing
YAML frontmatter parsing and manipulation for .planning/ documents. Provides read, write, update, query, and validation operations on frontmatter blocks in GSD markdown artifacts.
Didn't find tool you were looking for?