Back to skills
SkillHub ClubAnalyze Data & AIFull StackBackendData / AI

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.

Packaged view

This page reorganizes the original catalog entry around fit, installability, and workflow context first. The original raw source lives below.

Stars
6
Hot score
82
Updated
March 20, 2026
Overall rating
C1.1
Composite score
1.1
Best-practice grade
D41.1

Install command

npx @skill-hub/cli install snakeo-claude-debug-and-refactor-skills-plugin-refactor-scikit-learn
scikit-learnmachine-learningcode-refactoringpythonbest-practices

Repository

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

Skill path: plugins/debug-and-refactor/skills/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.

Open repository

Best for

Primary workflow: Analyze Data & AI.

Technical facets: Full Stack, Backend, Data / AI.

Target audience: Development teams looking for install-ready agent workflows..

License: Unknown.

Original source

Catalog source: SkillHub Club.

Repository owner: snakeo.

This is still a mirrored public skill entry. Review the repository before installing into production workflows.

What it helps with

  • Install refactor:scikit-learn into Claude Code, Codex CLI, Gemini CLI, or OpenCode workflows
  • Review https://github.com/snakeo/claude-debug-and-refactor-skills-plugin before adding refactor:scikit-learn to shared team environments
  • Use refactor:scikit-learn for development workflows

Works across

Claude CodeCodex CLIGemini CLIOpenCode

Favorites: 0.

Sub-skills: 0.

Aggregator: No.

refactor:scikit-learn | SkillHub