aeondave/malskill/scikit-learn

Claude Code and agent skill by aeondave/malskill

Trust tier 2
  • community
LLM review pending
Source check pending

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

scikit-learn model inspection workflow for loading persisted estimators, pipelines, and tree models. Use when you need to inspect `joblib` or pickle-based model artifacts, view parameters, feature names, importances, or pipeline structure, or run lightweight predictions for analysis.

Install

npx vskill@latest install aeondave/malskill/scikit-learn

SKILL.md

scikit-learn

Use this when the artifact is an estimator, pipeline, or tree model rather than a deep-learning checkpoint.

When to use scikit-learn

Use scikit-learn when you need to:

  • load persisted estimators or pipelines from joblib or pickle files
  • inspect parameters, pipeline stages, and feature handling
  • read feature importances or linear coefficients
  • export or reason about decision-tree structure

Quick Start

python
import joblib
model = joblib.load("model.joblib")
print(type(model))
print(model.get_params().keys())

High-Value Workflows

Pipeline inspection
python
if hasattr(model, "named_steps"):
print(model.named_steps)
if hasattr(model, "get_feature_names_out"):
print(model.get_feature_names_out())
Feature importance or coefficients
python
if hasattr(model, "feature_importances_"):
print(model.feature_importances_)
if hasattr(model, "coef_"):
print(model.coef_)
Tree export helpers
python
from sklearn.tree import export_text
if hasattr(model, "tree_"):
print(export_text(model))

Practical Notes

  • joblib is the common persistence format for sklearn models with large NumPy arrays.
  • Pipelines often carry more insight than the final estimator alone, so inspect named_steps early.
  • feature_names_in_ and get_feature_names_out() are high-value clues when reconstructing model inputs.
  • For untrusted `.pkl` / `.joblib` artifacts, prefer `skops.io` (skops.io.dump / skops.io.load) — it persists without pickle and forces explicit trusted=[...] allowlisting of any non-primitive types on load, converting the silent RCE surface of pickle into a visible whitelist decision.
python
import skops.io as sio
untrusted = sio.get_untrusted_types(file="model.skops")
print(untrusted) # inspect what the file wants to instantiate
model = sio.load("model.skops", trusted=untrusted) # only after review

Caveats

  • joblib.load and pickle are unsafe for untrusted files.
  • Cross-version loading is not guaranteed to be stable.
  • Some estimators expose rich introspection, while others offer almost none beyond get_params().

Resources

No bundled scripts/, references/, or assets/. Use the official scikit-learn persistence and pipeline docs for version and API specifics.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

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

Source

Popularity

Repository stars
22
Repository forks
1
7-day trend score
21

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/aeondave/malskill/scikit-learn/badge)](https://verified-skill.com/skills/aeondave/malskill/scikit-learn)

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