jcorpac/ai-skills-library/ds-notebook-refactor

Claude Code and agent skill by jcorpac/ai-skills-library

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Bridging the gap between exploratory Jupyter notebooks and production-ready Python modules.

Install

npx vskill@latest install jcorpac/ai-skills-library/ds-notebook-refactor

SKILL.md

The same SKILL.md was published earlier as jcorpac/ai-skills-library/ds-notebook-refactor.

Notebook Refactor

Jupyter notebooks are great for research but risky for production. This skill helps you safely migrate code out of cells and into testable modules.

The Refactor Checklist

  1. Identify Logic: Find the cells that actually perform data transformations (ignore the plotting cells for now).
  2. Extract Functions: Move cell code into well-named functions with type hints.
  3. Handle Config: Extract hard-coded paths and variables into a config.yaml or .env file.
  4. Parameterize: Ensure your main script can take arguments (e.g., input path).
  5. Unit Test: Write a small test for your new function using representative dummy data.

Before vs. After

  • Before: A notebook with 50 cells, global variables, and print() statements everywhere.
  • After: A single pipeline.py that imports functions from utils.py and logs progress.

Best Practices

  • Use a .ipynb to .py exporter for a head start, but always manually clean the result.
  • Keep your plotting logic separate from your transformation logic.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
8

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jcorpac/ai-skills-library/ds-notebook-refactor/badge)](https://verified-skill.com/skills/jcorpac/ai-skills-library/ds-notebook-refactor)

Something wrong with this skill or its page? Tell us.