Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

notebook-to-module

Skill by makifbaysal

Guides an assistant to move Jupyter or marimo notebook logic into tested Python modules. Useful when a notebook needs productionising or scheduling, or when work is tempted into a notebook.

  • Score 55
  • 123 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install notebook-to-module

Built from the published package, never by AI.

git clone --depth 1 https://github.com/makifbaysal/tasktrooper /tmp/tasktrooper && mkdir -p ~/.claude/skills && cp -r /tmp/tasktrooper/catalog/agents/data-scientist/skills/notebook-to-module ~/.claude/skills/notebook-to-module

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install notebook-to-module in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

notebook-to-module is an agent skill for tasks that touch Jupyter or marimo notebooks. It tells the assistant to treat a notebook as a thin front end, not the deliverable. Logic is extracted cell by cell into an importable module under src/, with tests written first on small fixtures. The notebook then imports the module and shows the results.

The skill also covers running a notebook before changing it, keeping notebooks thin and reproducible, and committing them the way the repository already does, for example with nbstripout, jupytext or marimo. Scheduled notebooks should become pipeline entrypoints, and papermill-parameterised notebooks keep their logic in the package. It is aimed at developers and data teams who need notebook work to be tested and reproducible.

Written from the project's SKILL.md and checked against it.

What it can do

  • Run before changingExecutes the notebook top to bottom on a fresh kernel and records whether it runs.
  • Extract logic test-firstMoves cell logic into functions in src/ and writes a failing test before each move.
  • Keep notebooks thinLimits notebooks to imports, one step per cell and no absolute paths or credentials.
  • Follow repo commit conventionsWorks with nbstripout, jupytext or marimo setups already used by the repository.
  • Handle scheduled notebooksTurns scheduled notebooks into pipeline entrypoints or papermill parameter cells.
  • Keep notebook tests greenKeeps notebooks passing when the repository runs them with nbmake or nbconvert in CI.

What you need

  • uv, used in the example commands
  • Jupyter nbconvert to execute notebooks
  • papermill for parameterised notebooks
  • nbstripout, jupytext or marimo, if the repository uses them

Try asking

  • Move the logic in notebooks/churn.ipynb into a tested module under src/.
  • Run notebooks/churn.ipynb top to bottom on a fresh kernel and report the result.
  • Turn this scheduled notebook into a pipeline entrypoint that calls the package.

Good to know

  • If a notebook cannot be executed in the current environment, the assistant must say so.
  • Adding a new notebook tool to a repository is treated as a separate decision.
  • Extracted bugs can change the numbers the notebook used to show, and this must be reported.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: catalog/agents/data-scientist/skills/notebook-to-module/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to notebook-to-module

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

notebook-to-module: common questions

When should I use notebook-to-module?

Use it when a task touches a Jupyter or marimo notebook, asks to productionise or schedule notebook logic, or tempts you to do the work in a notebook.

Does the notebook stay the deliverable?

No. The source says a notebook is never the deliverable, and logic moves into an importable module with tests that the notebook calls.

Does it support marimo notebooks?

Yes. The source says marimo notebooks are plain .py files that can be edited with marimo edit or run with python.

How do I install notebook-to-module?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is notebook-to-module free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is notebook-to-module safe to use?

It scores 55 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to notebook-to-module?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

notebook-to-module Install

Add to stack

Loading.