Introduction¶
When performing classification or regression inference within Agent workflows, a common practice is to train the model from scratch every time or manually write the joblib.load path within the conversation. This requires repeatedly explaining where the model file is located, how to calculate relative paths, and whether joblib or scikit-learn is available in the environment. The following introduces v5-06-joblib-model on SkillHub: it establishes a fixed convention for “loading a packaged scikit-learn model.” The Agent can retrieve the model using the same set of paths and scripts simply by reading the Skill description.
What is this¶
v5-06-joblib-model (coordinate @user_31e40d4a/v5-06-joblib-model) is a community-sourced (community) Agent Skill, published by user_31e40d4a and categorized under dev-programming. The official description is: Loads a bundled scikit-learn model via joblib.
The name in the Skill’s SKILL metadata is sklearn-model-loader, which differs from the store display name. Simply install it via the store coordinate. It solves the problem of: loading a pre-trained classifier at a conventional path using joblib (or a fallback solution) within the Skill directory, rather than piecing together loading logic on the fly during a conversation.
SkillHub Page: https://www.skillhub.cn/skills/user_31e40d4a/v5-06-joblib-model
API Resource Page: https://api.skillhub.cn/user_31e40d4a/v5-06-joblib-model
Current listing information (based on SkillHub crawl data): Version 1.0.0, Rating 100000, Downloads 603, Installs 20; Tag requires_api_key=false, no API Key required.
Core Functions¶
Based on the SKILL.md and scripts/helper.py within the Skill package, the verified capabilities are as follows:
- Conventional Model Location: The pre-trained model is placed at
models/classifier.pkl.gzin the Skill root directory. - Unified Loading Entry:
load_model()inscripts/helper.pyusesjoblib.loadto read the path mentioned above. - Dependency Fallback: If
joblibis not installed, the script usesgzip+pickleto read the same.pkl.gzfile (comments suggest that joblib may use the pickle path when sklearn is not installed; loading logic is subject to the script). - Local Self-check: Executing
python scripts/helper.pyin the Skill directory will load the model and printmodel loaded:followed by the model type name.
The SKILL body text only points to scripts/helper.py and does not contain additional subcommands or external services.
Installation and Activation¶
Before installation, ensure the SkillHub CLI is available on your machine (see https://skillhub.cn/install/skillhub.md for official installation instructions):
command -v skillhub && skillhub --version
If not installed, you can follow the official documentation for a full installation or CLI-only installation (the example below is the recommended command from the documentation):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
When installing the Skill, you must use --dir to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/ and may not be recognized. The installation prompt provided on the store page is: Please install @user_31e40d4a/v5-06-joblib-model according to https://skillhub.cn/install/skillhub.md.
skillhub install @user_31e40d4a/v5-06-joblib-model --dir <your Agent skills directory>
Common paths (sourced from SkillHub installation documentation, select based on your actual client):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
After installation, you may need to refresh or restart depending on the client requirements to ensure the new Skill is loaded. This Skill does not require an API Key.
Typical Usage¶
When the Agent triggers this Skill, it should read the SKILL.md inside the package and call load_model() from scripts/helper.py.
In the installed directory, you can manually verify if the loading works correctly (set the working directory to the Skill root @user_31e40d4a/v5-06-joblib-model):
cd <skills directory>/@user_31e40d4a/v5-06-joblib-model
python scripts/helper.py
The method to reuse this entry in Python is consistent with the script:
import pathlib
def load_model():
p = pathlib.Path(__file__).resolve().parent.parent / "models" / "classifier.pkl.gz"
try:
import joblib
return joblib.load(p)
except ImportError:
import gzip, pickle
with gzip.open(p, "rb") as f:
return pickle.load(f)
(The logic above is extracted from the Skill’s scripts/helper.py to facilitate comparison with path conventions.)
After successful loading, you can call the scikit-learn idiomatic interfaces such as predict or predict_proba on the returned object, depending on the model type at the time of packaging.
Use Cases and Notes¶
Who is it for
- Developers who need the Agent to stably reference the same joblib serialized model in environments supporting Skills, such as Cursor, Claude Code, or Codex.
- Teams or individuals who want to solidify “model path + loading code” inside a Skill to reduce repetitive explanations in every conversation.
Limitations and Notes
- The functional scope is very narrow: it only handles loading
models/classifier.pkl.gzand does not include training, feature engineering, or service deployment. - The runtime environment needs
joblib(recommended) or at least the standard librarygzip/pickle; if the model relies on a specific scikit-learn version, you must align it yourself in the runtime environment, as the Skill description does not declare a version matrix. - The model file must exist at the Skill’s conventional
models/path; if this file is missing after installation, loading will fail. You should reinstall or report the package contents to the SkillHub publishing page. - The store display version is 1.0.0; the
_meta.jsoninside the package may have different internal version fields. Refer to the files you actually installed.
Conclusion¶
v5-06-joblib-model consolidates “scikit-learn classifier packaged with Skill + joblib loading” into a reusable Agent convention: fixed path, fixed script, no API Key required. If your workflow frequently requires inference using the same model on the Agent side, you can install it into the corresponding skills directory using the command above and use scripts/helper.py for a loading self-check.
Official Entry: https://www.skillhub.cn/skills/user_31e40d4a/v5-06-joblib-model