python-env-manager
Skill2 starsChanged 7 months agoMITView on GitHub
Manage Python environment in OpenClaw-Module; handle ModuleNotFoundError, install package via pip wrapper, and standardize to current glibc-runner runtime.
- Installs packages
In this repository47 other files it gives its agents.
- brainstormingSkill
- claude-code-termux-runbookSkill
- cli-patcherSkill
- code-review-workflowSkill
- commit-commandsSkill
- consulting-analysisSkill
- context7-cleanSkill
- data-analysisSkill
- deep-researchSkill
- edit-tool-compat-guardSkill
- env-managerSkill
- executing-plansSkill
- feature-devSkill
- firecrawlSkill
- frontend-designSkill
- gateway-device-pairingSkill
- githubSkill
- glibc-prebuilt-bundleSkill
- gogSkill
- image-generationSkill
- memory-setupSkill
- module-auditorSkill
- module-scaffoldSkill
- openclaw-config-guardianSkill
- openclaw-ollama-runtime-kbSkill
- plugin-cutover-guardianSkill
- plugin-runtime-guardianSkill
- self-improving-agentSkill
- simplify-and-hardenSkill
- skill-benchSkill
- skill-creatorSkill
- skill-unificationSkill
- skill-vetterSkill
- socratic-groundingSkill
- subagent-orchestrationSkill
- systematic-debuggingSkill
- tailscale-oauth-bridgeSkill
- termux-packagerSkill
- termux-runnerSkill
- test-driven-developmentSkill
- vercel-deploy-claimableSkill
- verification-before-completionSkill
- video-generationSkill
- workspace-cleanupSkill
- writing-plansSkill
- yt-dlp-ingest-firstSkill
- zero-downtime-cutoverSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 34
If you need a compiler:
- Very specific: line 48
Don't call pip naked; prioritize python -m pip via wrapper.
- Very specific: line 49
Do not export LD_LIBRARY_PATH global to run Python.
- Very specific: line 50
When you need to install/upgrade prebuilt Python runtime: follow skill glibc-prebuilt-bundle (artifact policy + backup + smoke + rollback).
- Distinctive: line 72
Check results, state validation, and next steps.
- Distinctive: line 75
If input/permissions are missing: state what is missing and clearly ask for it.
- Distinctive: line 76
If there is a runtime/tool error: return a brief error + possible cause + proposed fix.
- Distinctive: line 77
If there is policy/safety risk: stop and escalate according to the approval checkpoint.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Python Environment Manager
This skill standardizes Python operation according to OpenClaw-Module's glibc-runner runtime.
Indexed Reference Map
- @[SKILL.md#L1-L77] Frontmatter + compatibility.
- @[SKILL.md#L10-L77] Python error handling process + rules.
- @[../glibc-prebuilt-bundle/SKILL.md#L1-L63] Canonical flow when needing to install/upgrade prebuilt Python.
- @[scripts/list_packages.sh#L1-L3] Script lists installed packages.
Handle ModuleNotFoundError
- Identify missing modules
- Get the module name from the error line:
ModuleNotFoundError: No module named '...'.
- Get the module name from the error line:
- Install the correct runtime using wrapper
- Always use:
/data/adb/openclaw/node/bin/python -m pip install <package-name>- Or if PATH is correct:
python -m pip install <package-name>.
- Native build (when the package needs to be compiled)
- If you need a compiler:
CC=clang CXX=clang++ /data/adb/openclaw/node/bin/python -m pip install <package-name> - Verify site-packages correct current path
ls /data/adb/openclaw/python/lib/python3.12/site-packages/ - Re-test the original task
- Rerun the previous script/job to confirm the actual fix.
Rules
- Don't call
pipnaked; prioritizepython -m pipvia wrapper. - Do not export
LD_LIBRARY_PATHglobal to run Python. - When you need to install/upgrade prebuilt Python runtime: follow skill
glibc-prebuilt-bundle(artifact policy + backup + smoke + rollback).
Available scripts
scripts/list_packages.sh: list packages in the current Python runtime.
Trigger Rules
- Positive: Activate when the user request matches
python-env-manageraccording to the description: Manage Python environment in OpenClaw-Module; handle ModuleNotFoundError, install packages via pip wrapper, and standardize to the current glibc-runner runtime. - Negative: Do not activate for requests outside scope or that do not need this skill's workflow/expertise.
- Escalation: If there is external action/network write or a sensitive operation, add an approval checkpoint before execution.
Output Contract
- Deliverable: results aligned with the goal of
python-env-manager; clearly state artifacts/paths/steps performed (if any). - Validation: report
PASS/FAILstatus together with the main checks run. - Failure mode: when there is an error, state the root cause + proposed fix.
Scope
- In-scope: tasks matching the skill description: Manage Python environment in OpenClaw-Module; handle ModuleNotFoundError, install packages via pip wrapper, and standardize to the current glibc-runner runtime.
- Out-of-scope: requests outside the domain or against system policy.
SOP
- Determine whether the request is within the skill's scope.
- Execute the skill's main workflow/instructions in a safe order.
- Check results, state validation, and next steps.
Error Handling
- If input/permissions are missing: state what is missing and clearly ask for it.
- If there is a runtime/tool error: return a brief error + possible cause + proposed fix.
- If there is policy/safety risk: stop and escalate according to the approval checkpoint.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

