/probabl-skills:add-python-packagefrom probabl-skills
Adds a Python dependency through the project environment manager (pixi, uv, pip) or asks the user when unmanaged. Handles editable installs, skore, and named packages.
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.
The only skill that knows python -m skore_skills env add. Callers
must not splice manager commands themselves.
Details: setup-workspace references/human_facing_prose.md.
Run python -m skore_skills … yourself. In questions and replies,
show the manager command from print-only stdout (pixi add …,
uv add …, pip install …) or a plain-language intent. Never
paste python -m skore_skills, env add, env add-skore, or
--feature / --group as something the user should run or choose.
Never paste env graphviz either; quote that command's
instructions or printed manager line.
Tick, then immediately run the matching sequence step. Do not stop after listing the boxes.
- [ ] status + env detect
- [ ] env.managed: null and setup-ml-project installed → load it and stop | null → say unresolved and stop | false and setup already chose unmanaged → name package and manager, return | false → ask, no --execute | true → continue
- [ ] classify: editable | add-skore | env route then env add
- [ ] skrub → env graphviz (install conda Graphviz and verify SVG when allowed)
python -m skore_skills status and env detect.
If policy.env.managed is null: env is unresolved. If
status.skills.setup-ml-project is true, load
setup-ml-project and stop. Do not ask whether to set up an
environment. Do not load setup-python-env. If that skill is
not installed, say the environment is unresolved and stop.
Do not bootstrap here.
Classify this turn before adding anything:
setup-ml-project selected that box. has_src
true is not enough.skrub, pandas, …). Never
--editable for a named dependency.If managed is false and setup-ml-project dispatched this
turn: the opening question already chose user-managed. Name
the package and the manager in words, then return. Do not run
env add — print-only refuses while managed is false. Do not
invent pixi add / uv add / pip install. Do not ask. Do
not wait. Do not say the turn continues after the user
confirms. Stop this sequence. Do not continue at step 5 or
step 6.
If managed is false on a standalone turn: do not
--execute. Run print-only env add (or env add --editable,
or env add-skore --mode <mode>) to obtain the manager line.
Every ask in this skill carries its context inline: name the
package(s), the manager and env the command would touch, and
what each option does.
Do not name the calling skill. A file link is an addition,
never the context. Ask with two options:
pixi add pandas). Do not wait;
return.Show exactly one manager command. Do not list agent extras,
optional extras, ask, or refuse unless env route JSON
this turn returned that scope. If print-only did not run,
name the package and the manager in words. Do not invent a
wrapper command.
If this turn is editable and has_src is true:
python -m skore_skills env add --editable --execute
Never pip install -e . in a pixi project. If has_src is
false, stop. Name setup-workspace only if it is installed.
A non-zero exit is not a successful install. Do not describe
it as done.
If the package is Skore, read the persisted policy.skore_mode
and run:
python -m skore_skills env add-skore --mode <mode> --execute
If the mode is unset, return to evaluate-ml-pipeline. Do not
spell skore[...] or pick conda vs PyPI yourself. See
add-python-package/references/skore_variant.md.
Else python -m skore_skills env route <pkg>. Use only the
scope returned this turn. Do not list other branches. Do
not guess default.
env route <pkg> and stop. Do not
env add --execute.refuse → stop. Quote message. Do not install.default → env add --execute <pkg>agent → env add --feature agent --execute <pkg>ask → One question, then stop. Two options only: the
project runtime, or a named optional extra / agent tools.
Do not add a context line, a manager command, or a flag to
either option. Do not preview pixi add. Record only
python -m skore_skills env route <pkg>. The install
command waits until the next turn, after they answer.When managed is true and scope is not refuse, pass
--execute on that one command. Never paste pixi add /
uv add / pip install from memory.
If this turn is skrub, Graphviz is required for DataOp HTML
graphs. An already-importable skrub still runs this step. Do
not return before it because import skrub succeeds. After
the add, run python -m skore_skills env graphviz. Then:
dot is set, or action is conda and managed →
python -m skore_skills env graphviz --execute (installs
conda Graphviz when needed, then verifies pydot can render
SVG in the composed env).action is system and dot is null → AskUserQuestion
with two options, quoting JSON instructions only:
env graphviz --execute to verify SVG rendering.--execute. Show command (conda) or
instructions (system) from print-only JSON.If --execute fails, quote its repair diagnostic and end this
install sequence. Return that diagnostic to the caller. Do not
discard analysis the caller already finished. When this turn's
only job was adding the package, that return ends the turn.
Never prescribe dot -c, admin rights, or a package-manager
repair from memory. Never invent brew / apt / dnf /
pacman / zypper / winget from memory. Do not pip-install
Graphviz or add it as a Python package on uv / poetry / hatch /
pip-venv. Refuse that in prose; do not paste
env add graphviz or uv add graphviz as a command fence.
Return when the import is available, when the user confirmed they installed it, when they chose to handle it themselves, or when this setup turn already chose user-managed and the package was named. That last return does not wait.
references/skore_variant.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
26 skills in this plugin
/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`.
npx claudepluginhub probabl-ai/skore-skills --plugin probabl-skillsOther plugins' skills for the same job