Python package runtime

From X-School-Academy/skill-pilot · View interactive version

Python package runtime is an AI agent skill from the GitHub repository X-School-Academy/skill-pilot. Use when a task needs to install a new Python package, run a Python helper script, or a Python package CLI.

How to use this skill

Skill file

AI Builder - Python Package Runtime

Use this skill to install Python packages and run Python-based helpers in a consistent repo-safe way.

When to Use This Skill

Your Roles in This Skill

Role Communication

As an expert in your assigned roles, you must announce your actions before performing them using the following format:

As a {Role, and Role-XYZ if have more roles}, I will {action description}

This communication pattern ensures transparency and allows for human-in-the-loop oversight at key decision points.

Instructions

Follow these steps in order:

Step 1: Decide what kind of Python action is needed

Choose one path:

  1. Install one or more new Python packages
  2. Run a Python helper script
  3. Run a package-provided CLI from the engine virtualenv

Step 2: Install packages with the repo wrapper only

For any new Python package in this repo, always install it from repo root with:

core/bin/uv-install <package> [package...]

This wrapper runs uv add in core/engine/. Do not use pip install directly for new packages.

Step 3: Run Python scripts with the repo interpreter

Run helper scripts with:

core/bin/python path/to/script.py

core/bin/python points to core/engine/.venv/bin/python, so scripts run with the repo-managed environment and installed packages.

Step 4: Run package CLIs from the engine virtualenv

When a package provides a CLI entrypoint, run it from:

core/engine/.venv/bin/<cli-name>

If you need to confirm the binary name, inspect core/engine/.venv/bin/ first.

Step 5: Keep helpers and temp artifacts contained

Expected Output

Key Principles

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.