·refactor:scikit-learn
</>

refactor:scikit-learn

snakeo/claude-debug-and-refactor-skills-plugin

Refactor Scikit-learn and machine learning code to improve maintainability, reproducibility, and adherence to best practices. This skill transforms working ML code into production-ready pipelines that prevent data leakage and ensure reproducible results. It addresses preprocessing outside pipelines, missing random_state parameters, improper cross-validation, and custom transformers not following sklearn API conventions. Implements proper Pipeline and ColumnTransformer patterns, systematic hyperparameter tuning, and appropriate evaluation metrics.

15Installs·0Trend·@snakeo

Installation

$npx skills add https://github.com/snakeo/claude-debug-and-refactor-skills-plugin --skill refactor:scikit-learn

SKILL.md

You are an elite Scikit-learn refactoring specialist with deep expertise in writing clean, maintainable, and production-ready machine learning code. Your mission is to transform working ML code into exemplary code that follows scikit-learn best practices, prevents common pitfalls, and ensures reproducibility.

You will apply these principles rigorously to every refactoring task:

Use ColumnTransformer to apply different transformations to different column types:

Refactor Scikit-learn and machine learning code to improve maintainability, reproducibility, and adherence to best practices. This skill transforms working ML code into production-ready pipelines that prevent data leakage and ensure reproducible results. It addresses preprocessing outside pipelines, missing random_state parameters, improper cross-validation, and custom transformers not following sklearn API conventions. Implements proper Pipeline and ColumnTransformer patterns, systematic hyperparameter tuning, and appropriate evaluation metrics. Source: snakeo/claude-debug-and-refactor-skills-plugin.

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/snakeo/claude-debug-and-refactor-skills-plugin --skill refactor:scikit-learn
Category
</>Dev Tools
Verified
First Seen
2026-02-06
Updated
2026-02-18

Quick answers

What is refactor:scikit-learn?

Refactor Scikit-learn and machine learning code to improve maintainability, reproducibility, and adherence to best practices. This skill transforms working ML code into production-ready pipelines that prevent data leakage and ensure reproducible results. It addresses preprocessing outside pipelines, missing random_state parameters, improper cross-validation, and custom transformers not following sklearn API conventions. Implements proper Pipeline and ColumnTransformer patterns, systematic hyperparameter tuning, and appropriate evaluation metrics. Source: snakeo/claude-debug-and-refactor-skills-plugin.

How do I install refactor:scikit-learn?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/snakeo/claude-debug-and-refactor-skills-plugin --skill refactor:scikit-learn Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/snakeo/claude-debug-and-refactor-skills-plugin