name: python-support description: Python language support for OpenClaw agents. Provides environment setup, dependency management, linting, testing, and best practices for Python code execution. Use when running Python scripts, managing virtual environments, installing packages, debugging Python code, or ensuring code quality with linting and formatting.
Use this skill for all Python-related operations in OpenClaw.
Verify Python environment:
python3 --version
pip3 --list
which python3
Always use absolute paths and specify Python interpreter explicitly:
python3 /path/to/script.py
Install packages safely:
pip3 install --quiet package-name
For one-off scripts requiring dependencies, use inline installation with verification:
import subprocess import sys def ensure_package(package): try: __import__(package) except ImportError: subprocess.check_call([sys.executable, "-m", "pip", "install", "--quiet", package])发现更多技能插件,请访问7w4.net。
#!/usr/bin/env python3 for executable scriptsencoding="utf-8" for all file operationspathlib.Path for cross-platform path handling这个Skill质量中等偏上。优点是结构组织清晰、示例具体实用,提供了基础的Python开发指导。不足之处是内容覆盖不够完整,文档中提到的部分参考资料实际缺失,整体深度有限。如果你需要基础的Python环境配置和编码规范指导,这个Skill可以提供帮助;但对于复杂的Python项目开发,还需要补充更多内容。