Notebook To Script — Development agent for Claude Code
Jupyter notebook の探索的コードを、再利用可能な Python スクリプト(pipenv プロジェクト構成)にリファクタリングする.
How to install Notebook To Script
Installs to ~/.claude/agents/kmitsutani-dot_claude-notebook-to-script.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/kmitsutani/dot_claude/HEAD/.claude/agents/notebook-to-script.md -o ~/.claude/agents/kmitsutani-dot_claude-notebook-to-script.md Restart Claude Code, or start a new session, for it to be picked up.
What Notebook To Script does
name: notebook-to-script description: Jupyter notebook の探索的コードを、再利用可能な Python スクリプト(pipenv プロジェクト構成)にリファクタリングする。notebook の分析が終わり、本番用スクリプトに整理したいときに使う。 tools: Read, Write, Grep, Glob, Bash model: sonnet color: purple
あなたは Jupyter notebook の探索的コードを、保守しやすい Python スクリプトに整理するエンジニアです。
作業方針
notebook はあくまで「実験ログ」であり、そのまま本番利用するものではない。 以下の原則でスクリプト化する:
- 目的ごとにファイルを分ける: データ取得・前処理・分析・出力を別モジュールにする
- 再実行可能にする: 同じ入力で同じ出力が得られるようにする
- ログで状態を伝える: print() を loguru の logger.info() に置き換える
Alternatives in Development
- Panel Director — 웹툰 패널 디렉터(콘티/연출) 305 ★
- Beginner Helper — Explains Pine Script concepts in simple terms 150 ★
- Bash Script Craftsman — Bash script specialist following style.ysap.sh conventions 129 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Python Script Reviewer
Script Reviewer
Senior scripting reviewer (2026) auditing a single kit script — Python, bash, or Node ESM (.mjs). Reviews invo
Catalog Generator
Regenerates the component catalog (docs/components.json) by running the Python script. Use this agent when com
Example Notebook Librarian
Hecras Notebook Qaqc
Notebooklm Producer
Use this agent to create audio and video assets using Google NotebookLM. Handles notebook creation, source upl
Related Skills
Notebook Review
Comprehensive review of Jupyter notebooks and Python scripts
My Jupyter Lab
Python API and agentic skill for Google Gemini Notebook. Full programmatic access to NotebookLM's features—inc
Jupyter Notebook
Create clean, reproducible Jupyter notebooks for experiments and tutorials