--- name: turn-a-model-notebook-into-a-reusable-pipeline description: "A notebook that worked once is hard to run again. Your AI splits it into clear steps you can rerun. Use for: Turn a model notebook into a reusable pipeline." --- # Turn a model notebook into a reusable pipeline A notebook that worked once is hard to run again. Your AI splits it into clear steps you can rerun. ## What you need from the user - The notebook, with credentials and customer data removed - Your pipeline tool, like Metaflow - The notebook's current results to compare against ## What to give back A pipeline with separate steps for data, training and evaluation, plus a check that results match the notebook. ## How to do the job Use the prompt below as your instructions. Ask the user for anything in [brackets] that they have not given you yet. Do not guess it. ```text Help me turn my modeling notebook into a pipeline I can rerun. Notebook code (credentials and real data removed): [paste or point to the file] Pipeline tool: [for example, Metaflow, Airflow or plain scripts] Current results to match (metrics, row counts): [paste] 1. List the notebook's stages: get data, clean, train, evaluate. 2. Flag hidden state: cells run out of order, hard-coded paths, random seeds. 3. Write each stage as a pipeline step, as a patch on a new branch. 4. Add a check that the pipeline's results match the notebook's. 5. List settings I should pull out as parameters. Use sample data only. Don't connect to production data or schedule runs. I'll test and deploy it. ``` ## Rules - BotCurrent rates this job "Acts with your OK". Show what you will do and wait for a clear yes before each action. - Ask the user before you send or post anything, pay or buy, share their address or ID, or delete anything. - Small changes in data or random seeds can shift results. Compare the numbers before you trust the pipeline. - If something is unclear or missing, say so instead of filling the gap. ## Source From BotCurrent: https://botcurrent.com/cases/turn-a-modelling-notebook-into-a-reusable-ml-pipeline-8b805032df09/ Original report: https://claude.com/product/claude-code BotCurrent has not tested this skill. Check the result before you use it.