Python Support
v1.0.0Python language support for OpenClaw agents. Provides environment setup, dependency management, linting, testing, and best practices for Python code executio...
Security Scan
OpenClaw
Benign
high confidencePurpose & Capability
Name/description (Python support) matches the SKILL.md content: environment checks, running scripts, dependency management, linting/testing guidance and a style guide. The skill does not request unrelated credentials, binaries, or config paths.
Instruction Scope
Instructions stay within Python tooling and best practices, but they explicitly recommend installing packages at runtime (pip install via subprocess). Runtime installs are expected for dependency management but allow arbitrary package code execution and network access—this is inherent to the task and should be handled cautiously. SKILL.md references additional reference files (testing-patterns.md, debugging-tips.md) that are not present in the package manifest.
Install Mechanism
Instruction-only skill with no install spec and no code files beyond documentation. Nothing is written to disk by the skill itself during installation.
Credentials
No environment variables, credentials, or config paths are requested. The skill does not require access to unrelated systems or secrets.
Persistence & Privilege
Default privileges (not always: true) and autonomous invocation allowed (platform default). The skill does not request permanent presence or system-wide changes.
Assessment
This skill appears to be what it says: a set of Python best-practice instructions and a style guide. Before using it, be aware that the guidance includes running pip install at runtime (including an example function that calls pip via subprocess). Installing packages dynamically can execute arbitrary code and access the network, so only install trusted, pinned packages, prefer using isolated virtual environments (venv/virtualenv), and consider running such operations in a sandbox. Also note two referenced docs (testing-patterns.md, debugging-tips.md) are missing from the package — verify the full documentation if you rely on those sections.Like a lobster shell, security has layers — review code before you run it.
latest
Python Support
Quick Start
Use this skill for all Python-related operations in OpenClaw.
Environment Check
Verify Python environment:
python3 --version
pip3 --list
which python3
Running Scripts
Always use absolute paths and specify Python interpreter explicitly:
python3 /path/to/script.py
Dependency Management
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])
Best Practices
- Shebang: Use
#!/usr/bin/env python3for executable scripts - Error handling: Always include try/except blocks for external operations
- Encoding: Specify
encoding="utf-8"for all file operations - Paths: Use
pathlib.Pathfor cross-platform path handling - Output: Prefer JSON or machine-readable formats for structured output
References
- See references/style-guide.md for Python style guidelines
- See references/testing-patterns.md for testing patterns
- See references/debugging-tips.md for debugging techniques
Comments
Loading comments...
