python-env

python-env is a skill for Claude Code from asgeirtj/system_prompts_leaks. It costs 89 tokens per session (635 once invoked), scanned A, original, CC0-1.0.

A Python project-environment setup helper. Python environments keep a project's packages separate from the operating system and from other projects.

In plain words
What is it for?
It helps create or manage a project-local .venv environment, install the project into it, and use uv when appropriate. uv is a tool for managing Python environments and dependencies.
Why use it?
It prevents package conflicts and avoids installing project dependencies into the system Python. It keeps the environment where editors and project tools expect to find it.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit It helps create or manage a project-local .venv environment, install the project into it, and use uv when appropriate. uv is a tool for managing Python environments and dependencies.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/asgeirtj/system_prompts_leaks/python-env
About the project

System Prompts Leaks is a collection of captured system instructions used to guide AI chatbots and coding agents before they receive user messages. It serves researchers and developers studying how different AI assistants are directed.

asgeirtj/system_prompts_leaks · 69,707 stars · on GitHub

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 asgeirtj/system_prompts_leaks --skill python-env
Clone the repo
git clone --depth 1 https://github.com/asgeirtj/system_prompts_leaks

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-env

README.md
[![agentmods](https://agentmods.dev/badge/skills/asgeirtj/system_prompts_leaks/python-env/github.svg)](https://agentmods.dev/skills/asgeirtj/system_prompts_leaks/python-env)
Your own site
<a href="https://agentmods.dev/skills/asgeirtj/system_prompts_leaks/python-env"><img src="https://agentmods.dev/badge/skills/asgeirtj/system_prompts_leaks/python-env/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-env

Your own site · 80×15
<a href="https://agentmods.dev/skills/asgeirtj/system_prompts_leaks/python-env"><img src="https://agentmods.dev/badge/skills/asgeirtj/system_prompts_leaks/python-env.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 635 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00089 $0.00635
Opus 5.5 $0.00036 $0.00254
Sonnet 5.5 $0.00018 $0.00127
Haiku 4.5 $0.00009 $0.00064

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

Security

Grade A, and why

python-env scanned grade A with 0 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 11d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Meta/muse-code/skills/python-env/SKILL.md · 73 lines

How it starts

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

Python environments

The environment is part of the project, not scratch space. A user who opens the project tomorrow, or clones it on another machine, should find the environment where their editor, their tooling, and their habits expect it.

Where it goes

Create it inside the project directory — .venv at the project root is the convention nearly every editor and tool auto-detects:

python3 -m venv .venv
source .venv/bin/activate
pip install -e .

For a greenfield project, prefer uv, which manages a project-local .venv for you and is much faster:

uv venv
uv pip install -e .      # or `uv sync` when there is a lockfile
uv run python -m yourpkg # runs in the project env without activating

Never put the environment in /tmp, ~/envs, or any other scratch location outside the project. It is invisible to the user's tooling, it is not what they will look for, and on /tmp it is deleted out from under them.

PEP 668: "externally-managed-environment"

Homebrew, Debian, and Ubuntu mark the system interpreter as externally managed, so pip install outside a virtualenv refuses with:

error: externally-managed-environment

That is the signal to create the project environment — not an obstacle to work around. Do not pass --break-system-packages, set PIP_BREAK_SYSTEM_PACKAGES, or delete the EXTERNALLY-MANAGED marker: those mutate an interpreter the OS owns, leave the project with no environment of its own, and can break other software on the machine.

Hand off commands the user can run

Write the run instructions against the project environment, so they work from a fresh shell in the project directory:

source .venv/bin/activate
python -m yourpkg ...

or, with uv, uv run python -m yourpkg ....

Do not hand back absolute paths into an environment outside the project (/tmp/whatever/bin/python -m yourpkg). Even when they work right now, they tell the user their project has no environment of its own.

Respect what is already there

Read the full file on GitHub · 73 lines

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. 11d ago First seen · 73 lines · 89 tokens per session scan A e9566702bb1f

Subscribe to this mod's changes

python-env is a skill published in the GitHub repository asgeirtj/system_prompts_leaks (69,707 stars, last pushed 2d ago), licensed CC0-1.0. It adds 89 tokens to every session and 635 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-05.