Setup Python Env logo

Setup Python Env

Organization
probabl-ai
setup-python-env

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. TRIGGER when the user asks for the env manager, pixi, uv, or a Python environment, or when none is recorded yet. SKIP later packages (add-python-package). SKIP scaffolding src/ (setup-workspace). HOW TO USE: detect, ask managed vs user-managed, ask the manager when needed, then env init, env sync, add Skore, and env verify. When setup-ml-project dispatched this turn, skip each ask whose answer is already recorded. One recorded answer does not skip the other ask.

Overview

Publisherprobabl-ai
Repositoryskore-skills
Skill namesetup-python-env
Stars
144
Forks
9
Bundled files
1
LicenseBSD-3-Clause
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by probabl-ai on GitHub. Read the source before you install it.

Installation

Install the Setup Python Env AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/probabl-ai/skore-skills/tree/main/skills/setup-python-env
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/probabl-ai/skore-skills.git /tmp/skore-skills
mkdir -p .claude/skills
cp -r /tmp/skore-skills/skills/setup-python-env .claude/skills/setup-python-env
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Setup Python Env in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Setup Python Env on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Setup Python Env is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Callerpolicy.env_managerpolicy.env.managedManager questionManaged question
dispatchedsettrue or falseskipskip
dispatchedsetnullskipask
dispatchedunsettrue or falseask when detect is none, ambiguous, or mismatchskip
dispatchedunsetnullask when detect is none, ambiguous, or mismatchask
standaloneanyanyask when detect is none, ambiguous, or mismatchask

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

  1. python -m skore_skills env detect and status.

  2. When setup-ml-project dispatched this turn, skip each question on its own. policy.env_manager set → do not ask which manager. policy.env.managed true or false → do not ask whether we manage the env. A recorded manager with env.managed still null still asks that one question. A recorded env.managed with no policy.env_manager does not reopen the managed question. A standalone request still asks, including when a manager is only recorded and nothing is on disk yet (env_manager is "none").

  3. G-ENV-MGR. Skip when step 2 skipped it. Otherwise read the JSON fields, not sentinel strings: ask when env_manager is "none", ambiguous is true, or mismatch is true. Use recommended as the ask order. PATH is not permission. Do not curl | sh.

  4. Skip when step 2 skipped it. Otherwise ask whether we manage the env (default yes). Persist python -m skore_skills policy set env.managed true or false.

  5. Unmanaged: stop. Name ruff / ipython / ipykernel / skore; do not init. Do not mention skore-skills to the user.

  6. Managed: policy set env_manager <manager> when it is not already recorded, then

    bash
    python -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 --execute

    Do not pass --mode. Omitting it installs for a recorded hub or mlflow destination, and plain Skore otherwise.

    If the selected manager is pixi and pixi.toml already exists, skip env init; preserve that manifest and continue with env sync --execute. Never replace it or try to add [tool.pixi] to pyproject.toml.

    Do not hand-edit TOML. Do not run pixi init. Do not create src/. Do not ask where reports go. Plain Skore is the early install when no destination is recorded; add-python-package upgrades it for Hub or MLflow after that choice is recorded. Do not pass --mode local. If verify reports missing skore or skore_skills, rerun env add-skore --execute the same way; never add skore-skills directly. If verify reports missing agent tools, load add-python-package for ruff / ipython / ipykernel (agent feature) when that skill is installed, not a second env init. If add-python-package is 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 supplies skore-skills, when the report destination is unset or local. A recorded hub or mlflow destination uses that install instead.
  • agent — ruff, ipython, ipykernel.
  • dev — default + agent. Every later python -m skore_skills command uses this composed environment; env verify --execute must pass before other skills run.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Setup Python Env AI skill do?

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. TRIGGER when the user asks for the env manager, pixi, uv, or a Python environment, or when none is recorded yet. SKIP later packages (add-python-package). SKIP scaffolding src/ (setup-workspace). HOW T...

Why use Setup Python Env on TypingMind?

Because you install it once and use it with any model. Setup Python Env is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Setup Python Env in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/probabl-ai/skore-skills/tree/main/skills/setup-python-env. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Setup Python Env?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Setup Python Env?

As many as you like. As long as a model supports skills, you can use Setup Python Env with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Setup Python Env AI skill free?

Yes. It is published on GitHub by probabl-ai under the BSD-3-Clause license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇