Turn messy Jupyter notebooks into clean, reproducible scripts
Takes a Jupyter notebook with out-of-order cells, hidden state, and spaghetti code, and produces a clean .py script with proper structure, functions, error handling, and documentation. Also strips output for version control.
Create a skill called "Notebook Detox". When I give you a Jupyter notebook (.ipynb file), analyze it for: (1) Hidden state — variables defined in cells that have been deleted or are out of execution order. (2) Reproducibility — can the notebook run top-to-bottom in a fresh kernel without errors? (3) Code quality — inline code that should be functions, repeated logic, missing error handling. Then produce: (A) A clean .py script with the notebook's logic organized into functions with docstrings, proper imports, and type hints. (B) The original notebook with all output cells stripped (for Git). (C) A report listing hidden state issues, unreproducible cells, and suggested improvements. (D) Optionally, pytest tests for the key functions.
Jupyter notebooks are great for exploration but terrible for reproducibility.
Cells run out of order, variables linger from deleted cells, and the whole
thing is a JSON blob that Git can't diff. This skill converts the chaos into
clean, production-ready Python.
Fix "works in terminal, fails in notebook" by aligning kernelspecs.
Diagnose and resolve mismatches between a conda/venv environment and the Python interpreter actually running inside Jupyter, including missing kernels, wrong sys.executable, and ModuleNotFoundError.
Turn "Solving environment…" hangs into a deterministic fix workflow.
Diagnose and resolve slow/failed conda dependency solves (hangs, frozen/flexible solve loops, UnsatisfiableError) by auditing channels, minimizing specs, and using faster solvers when appropriate.
Real sources, named experts, actual quotes
Deep research that finds primary sources with named individuals, community sentiment from Reddit/HN/X, and news coverage. No summaries of summaries — actual quotes with URLs.
Local-first AI assistant that automates small daily tasks safely on your device
A personal, local-first AI assistant that automates small daily tasks—organizing files, setting reminders, and monitoring system events—without touching sensitive data or taking risky actions without your approval.