Set Up Python Environment
SkillAI & modelsSets up a ready-to-use Python environment for your project, installing core tools like ruff, IPython, and skore.
Available today. Use it from your connected AI after setup.
No other account needed.
Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
Then ask your AI: use the Set Up Python Environment skill
About this skill
Bootstrap a Python environment manager and three named envs (default runtime, agent tools, composed dev). Detect with `python -m skore_skills env detect`, persist manager and `env.managed`, then `env init --manager`, `env sync --execute`, install Skore for a recorded `hub` or `mlflow` destination (p
What this skill tells your AI
The instructions your AI receives, as published by probabl-ai/skills in skills/setup-python-env/SKILL.md and read by ahel’s review.
Bootstrap only. Direct packages this turn: ruff, ipython,
ipykernel, and plain skore. Skore supplies skore-skills as a
mandatory dependency. Other stage libraries go through
add-python-package.
Human-facing prose
Details: setup-workspace references/human_facing_prose.md.
Ask which manager to use and whether we manage the env in
plain language. Do not name G-ENV-MGR, skill ids, or the
wrapper CLI to the user. Do not mention skore-skills.
Pre-flight
Tick, then immediately run the matching sequence step. Do not stop after listing the boxes.
- [ ] env detect + status
- [ ] G-ENV-MGR: ask if none / ambiguous / mismatch; else keep recorded
- [ ] env.managed: ask (default true) and persist
- [ ] unmanaged → stop | managed → env init, env sync, add-skore (no --mode), env verify
Not this skill
A request to add a package outside ruff, ipython, ipykernel,
and plain skore is not bootstrap. Do not env init and do not
pixi add. Hand that package to the package-install step and
stop. The close names the package and that step in plain language.
Do not write the catalog id.
Sequence
-
python -m skore_skills env detectandstatus. -
G-ENV-MGR. Read the JSON fields, not sentinel strings: ask when
env_manageris"none",ambiguousis true, ormismatchis true. Userecommendedas the ask order. PATH is not permission. Do notcurl | sh. -
Ask whether we manage the env (default yes). Persist
python -m skore_skills policy set env.managed trueorfalse. -
Unmanaged: stop. Name ruff / ipython / ipykernel / skore; do not init. Do not mention
skore-skillsto the user. -
Managed:
policy set env_manager <manager>, thenpython -m skore_skills env init --manager <manager> python -m skore_skills env sync --execute python -m skore_skills env add-skore --execute python -m skore_skills env verify --executeDo not pass
--mode. Omitting it installs for a recordedhubormlflowdestination, and plain Skore otherwise.If the selected manager is pixi and
pixi.tomlalready exists, skipenv init; preserve that manifest and continue withenv sync --execute. Never replace it or try to add[tool.pixi]topyproject.toml.Do not hand-edit TOML. Do not run
pixi init. Do not createsrc/. Do not ask where reports go. Plain Skore is the early install when no destination is recorded;add-python-packageupgrades it for Hub or MLflow after that choice is recorded. Do not pass--mode local. If verify reports missingskoreorskore_skills, rerunenv add-skore --executethe same way; never addskore-skillsdirectly. If verify reports missing agent tools, loadadd-python-packagefor ruff / ipython / ipykernel (agent feature) when that skill is installed, not a secondenv init. Ifadd-python-packageis not installed, name ruff / ipython / ipykernel and stop.
Return and close
When dispatched by setup-ml-project, return to that caller after
verification. Standalone, run
python -m skore_skills git end-turn --stage setup. If JSON
action is invoke, load persist-ml-git only if
status.skills.persist-ml-git is true and stop; that skill
returns to triage. If persist is missing, name the pending
staged paths and stop. Otherwise load triage-ml-task only if
status.skills.triage-ml-task is true; else stop.
Three environments
Agent context only; do not narrate skore-skills to the user.
- default — project runtime; bootstrap installs plain
skore, which suppliesskore-skills, when the report destination is unset orlocal. A recordedhubormlflowdestination uses that install instead. - agent — ruff, ipython, ipykernel.
- dev — default + agent. Every later
python -m skore_skillscommand uses this composed environment;env verify --executemust pass before other skills run.
Signals
- GitHub stars
- 132
- Forks
- 9
- Last commit
- Sep 2026
ahel review
K1binfo
installs-packages (in evals/evals.json)
Automated review, not a security audit. Ruleset v1+k2.
Advanced
- Item type
- skill
- Key
setup-python-env- Source
- github.com/probabl-ai/skills