python-env-manager

Detects the project's Python environment manager and installs packages with the correct manager-specific commands.

1|Updated Jun 22, 2026
One-click install
npx skills add https://github.com/probabl-ai/ibm-workshop --skill python-env-manager-probabl-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-env-manager
Source: https://github.com/probabl-ai/ibm-workshop/tree/main/.bob/skills/python-env-manager
Command: npx skills add https://github.com/probabl-ai/ibm-workshop --skill python-env-manager-probabl-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Installing Python packages with the wrong environment manager (e.g., pip install inside a pixi-managed project) silently diverges the live environment from the manifest, causing unreproducible setups and broken LSP resolution. This Skill detects which manager a project uses and routes every install through the correct commands. ## Core Features & Use Cases - Manager detection: Identifies pixi, uv, poetry, hatch, conda/mamba, or pip+venv from project-root signals like pixi.toml, uv.lock, or poetry.lock. - Per-manager install commands: Provides the exact add/remove/upgrade/sync commands per manager, plus a fixed 3-bucket dependency layout (default / dev / agent) with automatic routing. - Agent feature install: Bundled scripts install ipython + pyright and generate a pyrightconfig.json pointing at the composed lsp environment. - Use Case: When a data-science workflow hits a missing dependency, this Skill detects the manager (e.g., uv), issues uv add --group dev pytest, and verifies the layout with verify_layout.sh. ## Quick Start Ask the agent to install a Python package in this project and it will detect the environment manager and use the correct install command.

Frequently Asked Questions about python-env-manager

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I install a Python package with the correct environment manager?

Detect the manager from project-root signals first: pixi.toml means pixi, uv.lock means uv, poetry.lock means poetry. Then use only that manager's command, such as pixi add, uv add, or poetry add, never mixing managers in one project.

What happens if I pip install inside a pixi or poetry project?

The package lands in the live environment but not in the manifest, so the next pixi install or poetry install silently removes it. This state divergence is why installs must always go through the project's detected manager.

How do I set up pyright for a pixi or uv Python project?

Install ipython and pyright into a dedicated agent group, then generate pyrightconfig.json with pythonPath pointing at the composed lsp environment's interpreter. Bundled per-manager scripts automate the install, substitution, and verification steps.

Should I use pixi, uv, or poetry for a new Python project?

Pixi is the default recommendation for fresh projects because it supports composed environments and conda-forge packages. Uv and poetry work well for PyPI-based stacks, while hatch and conda require duplicating dependencies across non-composing environments.

Why does pyright report unresolved imports after adding a new dependency?

The new dependency was installed into a feature or group that the lsp environment does not compose, so pyright never indexes it. Append the feature to the lsp environment's feature list and re-sync, then run verify_layout.sh to confirm.

When should I not use pip with venv for dependency management?

Pip with venv has no manifest, no reproducibility, and no shared cache between environments, so installs leave no audit trail. For anything beyond a throwaway script, migrate to a managed alternative like pixi or uv.