← Back to Skills Marketplace
jvy

python

by jvy · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
1042
Downloads
0
Stars
5
Active Installs
1
Versions
Install in OpenClaw
/install python3
Description
Use Python for practical project setup, dependency install, script execution, and environment troubleshooting with safe defaults. Use when tasks involve pypr...
README (SKILL.md)

Python

Use this skill to keep Python workflows reproducible and low-risk across local/dev shells.

Safety Defaults

  • Prefer project-local virtual environments (.venv) over global installs.
  • Prefer python3 -m pip ... to avoid interpreter and pip mismatch.
  • Inspect dependency files before install (requirements*.txt, pyproject.toml).
  • Avoid executing unknown setup hooks or random install scripts without user approval.

Standard Workflow

  1. Detect current environment:
python3 --version
python3 -c "import sys; print(sys.executable)"
{baseDir}/scripts/python_env_tool.py doctor
  1. Create or refresh a venv:
{baseDir}/scripts/python_env_tool.py bootstrap --venv .venv --requirements requirements.txt
  1. Install project package (if pyproject.toml exists):
{baseDir}/scripts/python_env_tool.py install --venv .venv --editable
  1. Run tests/tools from the venv interpreter:
.venv/bin/python -m pytest -q
.venv/bin/python -m pip list --outdated

Task Recipes

# Install specific packages into venv
{baseDir}/scripts/python_env_tool.py install --venv .venv --package requests --package pydantic

# Install from requirements file
{baseDir}/scripts/python_env_tool.py install --venv .venv --requirements requirements-dev.txt

# Recreate corrupted venv from scratch
{baseDir}/scripts/python_env_tool.py bootstrap --venv .venv --recreate --requirements requirements.txt

Troubleshooting Rules

  • ModuleNotFoundError: verify command is run via .venv/bin/python, then reinstall deps.
  • externally-managed-environment: stop global install attempts; use venv.
  • Build failures on native deps: upgrade pip setuptools wheel, then retry.
  • Multiple Python versions: always print and confirm sys.executable before fixes.

Bundled Helper

Use the helper for repeatable environment setup and diagnosis:

{baseDir}/scripts/python_env_tool.py --help
{baseDir}/scripts/python_env_tool.py doctor
Usage Guidance
This skill appears to do exactly what it says: create/repair virtualenvs and install packages using the included python_env_tool.py helper. Before installing or running it: 1) review any requirements.txt/pyproject you plan to install—package install scripts can run code; only install from trusted sources; 2) note the bootstrap --recreate option will delete the venv directory if present; 3) the skill will call pip to fetch packages from the network (PyPI) so consider running it in an isolated environment if you handle sensitive data; 4) if you do not want the agent to invoke this skill autonomously, disable implicit/automatic invocation in your agent settings. Overall the skill is coherent and proportional to its stated purpose.
Capability Analysis
Type: OpenClaw Skill Name: python3 Version: 1.0.0 The skill provides a standard utility for managing Python virtual environments and dependencies. The helper script `scripts/python_env_tool.py` uses structured subprocess calls to wrap `pip` and `venv` commands, while the `SKILL.md` instructions explicitly emphasize safety defaults such as using local environments and inspecting dependency files before installation. No evidence of malicious intent, data exfiltration, or prompt injection was found.
Capability Assessment
Purpose & Capability
Name/description (Python environment helper) matches required binaries (python3, pip/pip3), the brew install of python, and the bundled python_env_tool.py script which implements venv bootstrap/install/doctor commands.
Instruction Scope
SKILL.md instructs running the bundled helper and standard Python tools (venv, pip, pytest). It does not request reading unrelated files or secrets. The guidance explicitly recommends safe practices (inspect dependency files, prefer venvs). The helper runs subprocesses to perform expected package installs and venv creation.
Install Mechanism
Install metadata uses the standard brew formula 'python' (and an apt alternative) to provide python3/pip. This is an expected, low-risk install mechanism for this purpose.
Credentials
No environment variables or credentials are requested (proportionate). One operational note: the skill installs packages from external sources (pip/PyPI) which can execute arbitrary code at install time—this is expected for a package installation helper but is an operational risk the user should consider before installing untrusted requirements.
Persistence & Privilege
always:false and no system-wide config changes are requested. The agents/openai.yaml permits implicit/automatic invocation (allow_implicit_invocation: true) which is normal for skills; there are no additional broad privileges or modifications to other skills.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install python3
  3. After installation, invoke the skill by name or use /python3
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of the "python" skill focused on safe project setup and reproducible Python workflows. - Added a standardized workflow for virtual environment creation, dependency installation, and script execution using a bundled helper script. - Emphasized best practices for avoiding interpreter mismatches and unsafe global installs. - Provided troubleshooting tips for common Python errors. - Included a new helper: `scripts/python_env_tool.py` for automating environment management.
Metadata
Slug python3
Version 1.0.0
License MIT-0
All-time Installs 5
Active Installs 5
Total Versions 1
Frequently Asked Questions

What is python?

Use Python for practical project setup, dependency install, script execution, and environment troubleshooting with safe defaults. Use when tasks involve pypr... It is an AI Agent Skill for Claude Code / OpenClaw, with 1042 downloads so far.

How do I install python?

Run "/install python3" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is python free?

Yes, python is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does python support?

python is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created python?

It is built and maintained by jvy (@jvy); the current version is v1.0.0.

💬 Comments