← 返回 Skills 市场
jvy

python

作者 jvy · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
1042
总下载
0
收藏
5
当前安装
1
版本数
在 OpenClaw 中安装
/install python3
功能描述
Use Python for practical project setup, dependency install, script execution, and environment troubleshooting with safe defaults. Use when tasks involve pypr...
使用说明 (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
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install python3
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /python3 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug python3
版本 1.0.0
许可证 MIT-0
累计安装 5
当前安装数 5
历史版本数 1
常见问题

python 是什么?

Use Python for practical project setup, dependency install, script execution, and environment troubleshooting with safe defaults. Use when tasks involve pypr... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1042 次。

如何安装 python?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install python3」即可一键安装,无需额外配置。

python 是免费的吗?

是的,python 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

python 支持哪些平台?

python 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 python?

由 jvy(@jvy)开发并维护,当前版本 v1.0.0。

💬 留言讨论