scikit-learn — Claude Code skill: what it does, how to install
A skill for Python machine learning tasks: classification, regression, clustering, preprocessing, and building ML pipelines with scikit-learn 1.9.1.
npx skills add K-Dense-AI/scientific-agent-skills --skill scikit-learn -a claude-codeWhat scikit-learn does
Provides reference documentation for algorithms, data preprocessing methods, and pipeline construction. Inside: five capability groups (supervised and unsupervised learning, model evaluation, preprocessing, composition), ready-to-run scripts for classification and clustering. Scripts use local datasets, no API keys required.
Requires Python 3.11 or later. Dependencies include NumPy, SciPy, joblib; scripts need pandas and matplotlib. The skill emphasizes one rule: fit preprocessing inside a Pipeline, or test data leaks into training during cross-validation and metrics lie.
Useful when you need to compare algorithms, tune hyperparameters, or build a production pipeline for tabular data and text.
What it helps with
- build a classification or regression model with preprocessing
- compare multiple clustering algorithms on one dataset
- tune hyperparameters with GridSearchCV or RandomizedSearchCV
- create a pipeline with transformers for mixed feature types
- evaluate model quality with metrics and cross-validation
Example prompts for the agent
- Build a Random Forest classifier with scaling for the data in `train.csv`
- Compare K-Means and DBSCAN on this dataset, show silhouette scores
- Create a `Pipeline` with `StandardScaler` and `OneHotEncoder` for numeric and categorical features
How to install scikit-learn
1Skills CLI (Vercel)
npx skills add K-Dense-AI/scientific-agent-skills --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 K-Dense-AI/scientific-agent-skills --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 K-Dense-AI/scientific-agent-skills --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 K-Dense-AI/scientific-agent-skills scikit-learn2Manually: put the files in place
.github/skills/scikit-learn/SKILL.md1Skills CLI (Vercel)
npx skills add K-Dense-AI/scientific-agent-skills --skill scikit-learn -a gemini-cli2Platform CLI
gemini skills install https://github.com/K-Dense-AI/scientific-agent-skills --path 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 K-Dense-AI/scientific-agent-skills --skill scikit-learn -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set120
The whole set →Similar
Questions about scikit-learn
How to install the scikit-learn skill in Claude Code?
Run the command npx skills add K-Dense-AI/scientific-agent-skills --skill scikit-learn -a claude-code. The skill will appear in ~/.claude/skills/scikit-learn/SKILL.md.
What does the scikit-learn skill do?
Provides documentation and examples for machine learning with the scikit-learn library: classification, regression, clustering, preprocessing, model evaluation, and pipeline construction. Includes ready-made scripts for common tasks.
What Python version is required for the skill?
Python 3.11 or later. The skill targets scikit-learn 1.9.1, which requires this minimum interpreter version.