setup-python-env
Skill144 starsChanged 17 days agoBSD-3-ClauseView on GitHub
Detect the env manager and bootstrap the runtime, agent-tools, and composed development environments. Detect with `python -m skore_skills env detect`, persist the manager and `env.managed`, then `env init --manager`, `env sync --execute`, install Skore for a recorded hub or mlflow destination (plain Skore when unset or local), and `env verify --execute`. Does not add other stage ML libraries.
- Pipes a download into a shell
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- probabl-ai/skillsword for word, first seen Oct 27, 2026
Other versions1 project uses a version of this.
Word for word · 1
- probabl-ai/skills★ 144100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- add-python-packageSkill
- audit-ml-pipelineSkill
- build-ml-pipelineSkill
- choose-python-librarySkill
- evaluate-ml-pipelineSkill
- explore-ml-dataSkill
- export-ml-notebookSkill
- export-ml-projectSkill
- export-ml-siteSkill
- frame-ml-problemSkill
- manage-ml-backlogSkill
- model-ml-pipelineSkill
- persist-ml-gitSkill
- plot-ml-figureSkill
- research-ml-practiceSkill
- review-ml-choicesSkill
- review-ml-experimentSkill
- search-ml-literatureSkill
- setup-gitSkill
- setup-ml-projectSkill
- setup-workspaceSkill
- shape-user-ideaSkill
- smoke-test-ml-pipelineSkill
- sync-ml-reportsSkill
- triage-ml-taskSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 1 is distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 36
Ask which manager to use and whether we manage the env in plain language.
- Very specific: line 42
Run env detect and status first.
- Distinctive: line 66
Do not write the catalog id.
- Very specific: line 71
When setup-ml-project dispatched this turn, skip each question on its own.
- Very specific: line 100
Do not pass --mode. Omitting it installs for a recorded hub or mlflow destination, and plain Skore otherwise.
- Very specific: line 103
If the selected manager is pixi and pixi.toml already exists, skip env init.
- Very specific: line 108
Do not hand-edit TOML. Do not run pixi init.
- Very specific: line 112
Do not pass --mode local. If verify reports missing skore or skore_skills, rerun env add-skore --execute the same way.
- Very specific: line 113
If verify reports missing skore or skore_skills, rerun env add-skore --execute the same way.
- Very specific: line 118
If add-python-package is not installed, name ruff / ipython / ipykernel and stop.
- Very specific: line 123
When dispatched by setup-ml-project, return to that caller after verification.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Set Up Python Environment
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.
Lookup
Run env detect and status first. Take the first row that
matches, then run Sequence steps 3–6 only where the row says ask
or continue. Do not stop after reading the table.
| Caller | policy.env_manager | policy.env.managed | Manager question | Managed question |
| dispatched | set | true or false | skip | skip |
| dispatched | set | null | skip | ask |
| dispatched | unset | true or false | ask when detect is none, ambiguous, or mismatch | skip |
| dispatched | unset | null | ask when detect is none, ambiguous, or mismatch | ask |
| standalone | any | any | ask when detect is none, ambiguous, or mismatch | ask |
A standalone turn still asks when a manager is only recorded and
nothing is on disk yet (env_manager is "none"). After the
questions this row allows: env.managed false stops at step 5;
true runs step 6 (env init, env sync, env add-skore with
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.- When
setup-ml-projectdispatched this turn, skip each question on its own.policy.env_managerset → do not ask which manager.policy.env.managedtrueorfalse→ do not ask whether we manage the env. A recorded manager withenv.managedstill null still asks that one question. A recordedenv.managedwith nopolicy.env_managerdoes not reopen the managed question. A standalone request still asks, including when a manager is only recorded and nothing is on disk yet (env_manageris"none"). - G-ENV-MGR. Skip when step 2 skipped it. Otherwise 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. - Skip when step 2 skipped it. Otherwise 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>when it is not already recorded, 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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

