scikit-learn · eyadsibai — Claude Code skill: what it does, how to install
scikit-learn — a skill for classical ML in Python: it picks the algorithm and wires the pipeline so test data stays out of the fitting.
no license 124 installs ★ 7 updated 2026-01-15
npx skills add eyadsibai/ltk --skill scikit-learn -a claude-codeWhat scikit-learn does
When a request mentions sklearn, classification, clustering or tuning, the skill hands the agent a selection table. Logistic regression as a baseline, random forest for everyday work, gradient boosting when accuracy on tabular data is the goal, SVM for wide feature spaces. Clustering and dimensionality reduction get their own tables, down to the parameter that decides the result, like n_clusters for KMeans or eps for DBSCAN.
Pipelines take up the middle of the file. Pipeline keeps every transform inside the training fold, ColumnTransformer routes different transforms to different columns, and the suggested preprocessing order is impute, then scale, then encode. For evaluation there are KFold, StratifiedKFold, TimeSeriesSplit and LeaveOneOut, plus a metric table per task.
Some limits are stated plainly. HalvingGridSearchCV needs sklearn 0.24 or newer. With lopsided classes, accuracy hides more than it shows, so the skill pushes you toward F1 or ROC-AUC. Fitting a scaler before the split is the leak it warns about hardest.
What it helps with
- pick an algorithm for a tabular classification task
- keep preprocessing inside the training fold
- tune hyperparameters without a full grid sweep
- choose a metric when classes are imbalanced
- read learning curves to spot overfitting
Example prompts for the agent
- Build a pipeline for this CSV:
ColumnTransformerfor the categoricals,StandardScalerfor the numeric columns. - Split the data, run
StratifiedKFold, and report F1 per fold. - Tune
RandomForestClassifierwithRandomizedSearchCVand show me the best params.
How to install scikit-learn
1Skills CLI (Vercel)
npx skills add eyadsibai/ltk --skill scikit-learn -a claude-code2Manually: put the files in place
~/.claude/skills/scikit-learn/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/scikit-learn/
1Skills CLI (Vercel)
npx skills add eyadsibai/ltk --skill scikit-learn -a codex2Manually: put the files in place
.agents/skills/scikit-learn/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add eyadsibai/ltk --skill scikit-learn -a cursor2Manually: put the files in place
.cursor/skills/scikit-learn/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install eyadsibai/ltk plugins/ltk-data/skills/scikit-learn2Manually: put the files in place
.github/skills/scikit-learn/SKILL.md1Skills CLI (Vercel)
npx skills add eyadsibai/ltk --skill scikit-learn -a gemini-cli2Platform CLI
gemini skills install https://github.com/eyadsibai/ltk --path plugins/ltk-data/skills/scikit-learnManually: put the files in place
.devin/skills/scikit-learn/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add eyadsibai/ltk --skill scikit-learn -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about scikit-learn
How do I install the scikit-learn skill in Claude Code?
Run npx skills add eyadsibai/ltk --skill scikit-learn -a claude-code. The skill lands at ~/.claude/skills/scikit-learn/SKILL.md.
What does this skill do?
It gives the agent a reference for classical ML: which estimator fits the task, how to arrange preprocessing in a pipeline, and which metrics or cross-validation scheme to use.
Why fit the scaler on training data only?
Transforms should only see the training split, otherwise the test rows shape the preparation and your score comes out too high. The skill suggests keeping the scaler inside Pipeline or fitting it on train alone.
Similar skills
All skills for AI and ML →scikit-learn by other authors comes first.