/probabl-skills:triage-ml-taskfrom probabl-skills
Routes ambiguous ML task requests to the correct skill. Loads setup skills when prerequisites are pending, otherwise dispatches to lifecycle skills like explore, model, build, evaluate, or audit.
Ships in probabl-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This is the session owner. Stage skills do the work; you only route and ask. Do not execute another skill's methodology.
Details: setup-workspace references/human_facing_prose.md.
Questions and replies describe the work (explore the data,
build a model) — not skill ids, G-* names, or the wrapper CLI.
Run python -m skore_skills … yourself; do not quote it.
Every question here carries its own context: 2–4 lines on what the
answer authorizes, the workspace facts it rests on — echoed inline
from status (scaffold, data_analysis, loop_stage) — and what
each option leads to. A file link is an addition, never the
context.
Run python -m skore_skills status. Read skills, data_analysis,
loop_stage, setup.pending, and the filesystem snapshot. If .skore is
missing, that is expected. Do not treat a missing file as an
empty project when src/ or journal/ exist.
Certain request — load that skill, after the setup gate
below. Tell the user the work
you are starting, not the catalog id. Do not list the catalog.
status.skills is a per-id dict. Load the mapped skill only if
status.skills.<id> is true; else one-line skip and do not
invent that skill's steps:
Setup gate for a lifecycle skill. Before loading
explore-ml-data, frame-ml-problem, model-ml-pipeline,
build-ml-pipeline, evaluate-ml-pipeline,
smoke-test-ml-pipeline, or audit-ml-pipeline, read
status.setup.pending. If it is non-empty and
status.skills.setup-ml-project is true, load
setup-ml-project and stop. Tell the user the requested work
waits on those pieces. Do not show the entry menu. After setup
returns, load the certain lifecycle skill. Do not load setup
again on this turn. If setup.env or setup.workspace is
declined, stop in one line. A declined git or editable
does not block. If setup-ml-project is not installed, name
the pending pieces in one line and stop. Do not invent
git init, scaffold, or env init. Uncertain sessions skip
this gate.
| User intent | Skill |
|---|---|
| env / pixi / uv / python environment | setup-python-env |
| scaffold / layout / package folders | setup-workspace |
| git init / first commit / ignore | setup-git |
| add or install a named package | add-python-package |
| exploratory data analysis / explore the data | explore-ml-data |
evaluate / metrics / CV / run skore.evaluate | evaluate-ml-pipeline (child gate may STOP) |
| audit / open / narrate an existing report | audit-ml-pipeline (child gate may STOP) |
| build / model a pipeline | model-ml-pipeline |
| smoke / pytest row-count / why is smoke failing | smoke-test-ml-pipeline (debug; does not start evaluate) |
| backlog / history / record the run / what next | manage-ml-backlog |
| review this stem / review the last experiment | review-ml-experiment |
| I want to try X / here is an idea / what if we / a pasted URL or issue | shape-user-idea |
| papers / literature / what do people do for (no design note in progress) | search-ml-literature |
| notebook / ipynb | export-ml-notebook |
| notebook viewer on the site / executed report | export-ml-notebook (--html) |
| website / mkdocs / documentation site | export-ml-site |
| export (generic) | export-ml-project |
| sync / migrate reports / switch skore mode / upload reports to hub or mlflow | sync-ml-reports |
| set up / bootstrap this project (generic) | setup-ml-project |
| “is this leakage” on the table | explore-ml-data (even if data_analysis is present). Do not load research-ml-practice. |
| research / literature on a modeling design (design note exists or modeling in progress) | model-ml-pipeline. Do not load research-ml-practice. |
| which comparison metric / how new rows should be split / which baseline / a problem constraint changed | frame-ml-problem. Not a request to run evaluation. |
| what did we decide / show stored choices / change a stored project choice | review-ml-choices |
An explicit sync, generic export, or changed modeling
constraint still uses those rows. Do not send them through
review-ml-choices.
A git init, first commit, or ignore request loads setup-git
and stops. Do not write git init, a .gitignore, or a commit
plan. With no shell, the whole answer is that setup-git is
loaded. Do not describe the commands that skill will run.
"What should we try next?" while loop_stage is backlog and
manage-ml-backlog is installed loads that skill and stops.
Do not ask the user to choose explore, build, review, or export.
Certain EDA: run python -m skore_skills status. If
status.setup.pending is non-empty, load setup-ml-project
(setup gate above) and stop. Otherwise load
explore-ml-data and stop. Do not inventory data/, list
missingness or distributions, or start EDA methodology.
Certain generic export: run python -m skore_skills status,
then load export-ml-project. Do not list notebook / --html
/ site as sibling options.
Modeling while status.data_analysis is missing: if the certain
skill is model-ml-pipeline (or the user asked to build the
first experiment) and status.skills.explore-ml-data is
true, do not load modeling yet. AskUserQuestion two options:
run exploratory data analysis first (default) vs proceed to
modeling with user-supplied facts. Do not invent dataset facts
here. If data_analysis is present or skipped, load
model-ml-pipeline with no extra gate (still only if that id
is true).
Uncertain (open session, “what can you do”, finished stage,
mixed intent) — run python -m skore_skills triage choices.
Its choices array is the board: installed entry work only.
AskUserQuestion with exactly those rows, in order, each
row's label as the option and its skill as the load target.
Do not rebuild the board from memory, add a row, or offer a
not_offered row. One pick, then load that row's skill and
stop.
When recommended is set, say its recommendation_reason and
recommend that row first. Do not auto-load it. When choices
is empty, say in one line that no entry skill is installed (or
that the install status is unknown) and do not invent a menu.
The board never includes evaluate, audit, shaping an idea,
literature search, or internals (build-ml-pipeline,
smoke-test-ml-pipeline, frame-ml-problem,
choose-python-library, research-ml-practice,
plot-ml-figure, stack refs). Certain requests still load
those.
setup.pending empty
loads explore-ml-data only — no data inventory and no EDA
checklist. Pending setup loads setup-ml-project first..skore as an empty project when src/
or journal/ exist.evaluate-ml-pipeline or audit-ml-pipeline on the
uncertain entry board (certain requests still load them).triage choices left out of
choices, and do not rebuild the board by hand.shape-user-idea or search-ml-literature on the
uncertain entry board.frame-ml-problem on the uncertain entry board
(a certain metric, split, baseline, or changed-constraint
request still loads it).python -m skore_skills status,
load export-ml-project only — no sibling-skill menu.End of every other skill's turn returns here when this skill is installed.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
26 skills in this plugin
/add-python-packageAdd a dependency through the project env manager, or ask the user when the environment is user-managed. Trigger when a workflow needs a missing import, after choose-python-library picks a library, or for editable install of src/<pkg>/.
SKIP choosing between competing libraries (choose-python-library owns that). SKIP bootstrapping a missing manager directly (setup-python-env). When env.managed is null, load setup-ml-project if it is installed.
HOW TO USE: read status.policy.env.managed, env detect, and env route. Classify this turn first (editable | add-skore | named package). If managed is null, load setup-ml-project and stop. If managed, env add --execute (or --editable). If unmanaged, ask; default is the user handles it — do not wait. When setup-ml-project already chose user-managed this turn, name the package and the manager, then return. Do not ask and do not wait. Never --execute while managed is false.
/audit-ml-pipelineAudit a persisted skore report read-only and produce a reusable digest. Do not execute it. Run `materialize.py` once. Never call `skore.evaluate` or `project.put`.
TRIGGER when a completed run needs an audit, the user asks to audit, show, or re-audit an experiment, a re-run overwrote the same `put()` key, or they want a narrative of a past experiment without `journal/ideas/` files.
STOP when `status.setup.pending` is non-empty (load `setup-ml-project`), or when there is no approved design, no report, or no agent feature: explain and send the user to setup, `evaluate-ml-pipeline`, or `model-ml-pipeline`. Also stop for raw-data exploration or sourcing a future experiment.
HOW TO USE: confirm journal, experiment, smoke, and report; place the file from `templates/audit.py`; copy `templates/materialize.py` to scratch; execute once; derive G-AUDIT-FINDING; then the continue-or-close gate. Resolve skore symbols with `api get`.
/build-ml-pipelineDeclare a skrub DataOps graph from the data source to the predictor after framing is locked. Stateless steps use `.skb.apply_func`. Stateful steps use `.skb.apply`. After the graph exists, attach the locked splitter and any non-default score. No fit, tune, persistence, or `skore.evaluate`.
TRIGGER when writing or editing any link from data source to predictor (loaders, preprocessing, features, composition, the final estimator), including a pure-Python function on that path, a step added or reordered, a bare `sklearn.Pipeline` as the top-level, or a request to build a pipeline, classifier, or regressor.
HOW TO USE: before the first declarative line and on every structural edit. Read the stops and emit Pre-flight before code. Confirm new names with `python -m skore_skills api get`.
/choose-python-libraryResolve a library choice and add the selected dependency. Trigger for competing-library questions or an optional package not already fixed by the project stack — at first use (tabular exploration, pipeline, or eval extras), never during workspace setup.
/evaluate-ml-pipelineEvaluate one sklearn-compatible learner with the locked validation scheme and persist structured skore reports. The splitter and any non-default score are already on the DataOp from `build-ml-pipeline`. This skill writes the call without `splitter=`, persists the report, and records the locator. When the locked split is the training table and test table that shipped with the data, fit on the training table, then pass `splitter="prefit"` with only the test table. When `model-ml-pipeline` dispatched this turn, return the locator. A standalone turn owns the evaluate-stage close.
TRIGGER when code calls `cross_val_score`, `cross_validate`, `classification_report`, `.skb.cross_validate`, or a handwritten metric print, or the user asks to score, evaluate, or run CV on one learner. Narrative reads of a persisted report belong to `audit-ml-pipeline`.
HOW TO USE: before any evaluation call. Resolve G-SKORE-MODE, read the stops, and emit Pre-flight before code. Confirm symbols with `python -m skore_skills api get`.
/explore-ml-dataExplore the dataset before designing any model. Place `data_analysis/data_analysis.py` and do not execute it. Run `materialize.py` once, write `data_analysis.md` and JOURNAL § Data understanding. Never design the model, edit `src/<pkg>/`, or modify raw data files.
TRIGGER when the user asks to explore, profile, or understand the data; triage sent them here (`status.data_analysis` missing); a data source changed; they want to refresh a recorded EDA; or leakage or research arises on a recorded EDA.
STOP when `status.setup.pending` is non-empty (load `setup-ml-project`), when there is no data (send to triage), the request is not raw-data exploration, or EDA is recorded with no refresh and no methodology concern. Do not invent a package root or a root `JOURNAL.md` while setup is pending.
HOW TO USE: G-TABULAR via `add-python-package`, infer or ask the targets, load `plot-ml-figure` if installed, then ask the five-option continuation board, including Close.
npx claudepluginhub probabl-ai/skore-skills --plugin probabl-skillsOther plugins' skills for the same job