Skip to content
Back to skills

Legacy Factories

ASecurity

"Routes legacy scikit-plot factory-injection and deprecated

  • 247 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 9, 2026
toolsapi

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill legacy-factories --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Legacy Factories?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Legacy Factories
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-legacy-factories/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-legacy-factories)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: legacy-factories
description: "Routes legacy scikit-plot factory-injection and deprecated
  plotters-module requests to safe migration and compatibility guidance."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Legacy factories

Use this sub-skill when the user is maintaining older scikit-plot code that calls `classifier_factory`, `clustering_factory`, or imports plotting helpers from the deprecated `scikitplot.plotters` module.

## Route here

- Inject plotting methods into a classifier instance with `classifier_factory`.
- Inject plotting methods into a clusterer instance with `clustering_factory`.
- Diagnose warnings about missing methods, method-name collisions, or deprecation.
- Migrate old `scikitplot.plotters` imports to current modules.
- Validate compatibility quickly with `scripts/legacy_factories_smoke.py`.

## Prefer modern routes for new work

Use direct module functions for new code:

- Metric curves and silhouette: `../metrics/SKILL.md`.
- Feature importance and learning curves: `../estimators/SKILL.md`.
- Elbow curves: `../clustering/SKILL.md`.
- PCA plots: `../decomposition/SKILL.md`.

The factory layer is useful when the user must preserve old bound-method code, but it is deprecated in this snapshot.

## Inputs to check first

1. A classifier passed to `classifier_factory` must expose `fit`, `score`, and `predict`.
2. Probability-based injected methods also need `predict_proba`.
3. A clusterer passed to `clustering_factory` must expose `fit` and `fit_predict`.
4. Existing methods with the injected names may be overwritten with warnings.
5. The same SciPy/Matplotlib compatibility window from the root skill still applies.

## Reroute

- If the user wants exact behavior of the underlying plot, route to the owning sub-skill after identifying the injected method.
- If the user only needs an import migration from `scikitplot.plotters`, read `references/workflows.md`.
- If a factory warning is the main issue, read `references/troubleshooting.md` before changing model code.

## Read next

- `references/api-reference.md` for injected method names and verified contracts.
- `references/workflows.md` for classifier, clusterer, and deprecated-module migration patterns.
- `references/troubleshooting.md` for missing-method, override, and deprecation failures.
- `scripts/legacy_factories_smoke.py` for a tiny Agg-backed compatibility smoke run.

Files in this skill

  • SKILL.md2.4 KB
  • references/api-reference.md2.6 KB
  • references/troubleshooting.md2.4 KB
  • references/workflows.md2.7 KB
  • scripts/legacy_factories_smoke.py2.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.