python-runtime

python-runtime is a skill for Claude Code from desirecore/market. It costs 228 tokens per session (3,408 once invoked), scanned B, original, MIT.

A guide for installing, upgrading, switching, and troubleshooting Python and pip environments. Python is a programming language, while pip installs Python packages.

In plain words
What is it for?
Use it to install Python, manage multiple Python versions, create virtual environments, configure pip, and diagnose runtime or package problems.
Why use it?
It helps resolve problems such as missing Python commands, broken package imports, incompatible versions, virtual-environment issues, and installation errors.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Use it to install Python, manage multiple Python versions, create virtual environments, configure pip, and diagnose runtime or package problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/desirecore/market/python-runtime
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add desirecore/market --skill python-runtime
Clone the repo
git clone --depth 1 https://github.com/desirecore/market

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for python-runtime

README.md
[![agentmods](https://agentmods.dev/badge/skills/desirecore/market/python-runtime/github.svg)](https://agentmods.dev/skills/desirecore/market/python-runtime)
Your own site
<a href="https://agentmods.dev/skills/desirecore/market/python-runtime"><img src="https://agentmods.dev/badge/skills/desirecore/market/python-runtime/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for python-runtime

Your own site · 80×15
<a href="https://agentmods.dev/skills/desirecore/market/python-runtime"><img src="https://agentmods.dev/badge/skills/desirecore/market/python-runtime.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 228 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,408 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00228 $0.03408
Opus 5.5 $0.00091 $0.01363
Sonnet 5.5 $0.00046 $0.00682
Haiku 4.5 $0.00023 $0.00341

Measured 29d ago against content hash 9678a384fa92, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

python-runtime scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 29d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/probe-python.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

| Debian/Ubuntu | `sudo apt install python3 python3-pip python3-venv` |

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sk "${BASE}/python/available"
skills/python-runtime/SKILL.md · 235 lines

How it starts

The opening of the file, as written. The whole thing — 235 lines — stays where its author put it; the contents beside it link to each section on GitHub.

python-runtime Skill

L0: One-line Summary

When to use: The user needs to install Python / upgrade Python / switch between multiple Python versions / configure pip / create virtual environments (venv / pipx / conda) / troubleshoot python: command not found, pip: command not found, PEP 668 "externally-managed", SSL certificates, import failures, PATH anomalies, and other Python runtime issues; or when another skill (docx / pdf / xlsx / pptx) reports "Python unavailable".

How to do it: First check whether python3 already works: DesireCore appends a managed Python directory to its service PATH, so nothing usually needs installing. To install or switch versions, prefer DesireCore's built-in Hatch, executing through the four-tier fallback (HTTP API → Hatch CLI → system package manager brew/apt/dnf/winget → community solution pyenv).

L1: Overview and Use Cases

Capability Description

Procedural skill. Before each Python environment operation, first run scripts/probe-python.sh to obtain a JSON snapshot, then follow references/decision-tree (→ ../dev-environment-setup/references/decision-tree.md) to choose a path through the four-tier fallback.

Use Cases

  • "python not found" / "pip not found"
  • The user requests to install/upgrade Python
  • The user requests multi-version management (3.10/3.11/3.12 switching)
  • Create/activate/debug virtual environments (venv/pipx/conda)
  • "externally-managed-environment" (PEP 668) error
  • import failures, PATH issues, SSL certificate errors
  • Other skills (docx/pdf/xlsx/pptx) report Python unavailable

Core Value

  • DesireCore first: Hatch + HTTP API as mandatory L1/L2, avoiding pollution of system Python
  • JSON-driven decisions: the probe script outputs structured data that Claude can parse directly
  • Cross-platform consistency: macOS / Linux / Windows share a unified 4-tier fallback

L2: Detailed Specification

Step 1: Environment Probe (mandatory)

bash skills/python-runtime/scripts/probe-python.sh > /tmp/py-probe.json
cat /tmp/py-probe.json | jq .

Read the full file on GitHub · 235 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 29d ago Changed · +15 lines 9678a384fa92
  2. 2mo ago Changed · +1 lines 868c9e534251
  3. 3mo ago First seen · 219 lines · 228 tokens per session scan B fb3b0b4b599c

Subscribe to this mod's changes

python-runtime is a skill published in the GitHub repository desirecore/market (2 stars, last pushed today), licensed MIT. It adds 228 tokens to every session and 3,408 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

python-runtime compared with skills from other repositories

python-runtime next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
python-runtimedesirecore/marketSkill2todayMITB228Claude Code
uv-docspledgeandgrow/pledge-skillsSkill114mo agoMITC34Claude Code, Codex
mark2videoCoderWanFeng/python-officeSkill1.4k1mo agoApache-2.0A37Claude Code, Codex
search_specify_type_fileCoderWanFeng/python-officeSkill1.4k1mo agoApache-2.0A43Claude Code, Codex
courseCoderWanFeng/python-officeSkill1.4k1mo agoApache-2.0A38Claude Code, Codex
tao-run-on-virtualenvNVIDIA-TAO/tao-skill-bankSkill1025d agoApache-2.0A131Claude Code
env-managementLuuOW/meridian-mcpSkill01mo agoMITA61Claude Code, Codex