python-env

python-env is a skill for Claude Code from flonat/flonat-research. It costs 40 tokens per session (562 once invoked), scanned A, original, MIT.

A tool for creating and maintaining Python project environments and dependencies with uv, a Python package and environment manager.

In plain words
What is it for?
Use it to create environments, add or synchronize dependencies, install packages, and run Python scripts.
Why use it?
It keeps packages and commands tied to the project environment and avoids inconsistent or unmanaged installations.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is uv run python scripts/task.py # Run a project script.

Good fit Use it to create environments, add or synchronize dependencies, install packages, and run Python scripts.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/flonat/flonat-research
agentmods
npx agentmods add skills/flonat/flonat-research/python-env

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/flonat/flonat-research/python-env/github.svg)](https://agentmods.dev/skills/flonat/flonat-research/python-env)
Your own site
<a href="https://agentmods.dev/skills/flonat/flonat-research/python-env"><img src="https://agentmods.dev/badge/skills/flonat/flonat-research/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/flonat/flonat-research/python-env"><img src="https://agentmods.dev/badge/skills/flonat/flonat-research/python-env.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 562 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00040 $0.00562
Opus 5.5 $0.00016 $0.00225
Sonnet 5.5 $0.00008 $0.00112
Haiku 4.5 $0.00004 $0.00056

Measured 2mo ago against content hash 823c9c6a5f1d, 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 2mo 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.

skills/python-env/SKILL.md · 62 lines

What it actually says

Python Environment Management

CRITICAL RULE: Never use pip directly. Always use uv. This applies to all Python package management.

Golden Rule

ALWAYS use uv for Python package and environment management. Never use pip directly.

Commands

Task Command
Create venv uv venv
Install package uv pip install <package>
Install from requirements uv pip install -r requirements.txt
Run script in project uv run python script.py
Run with dependencies uv run --with pandas python script.py
Install CLI tool globally uv tool install <tool>
Sync project deps uv sync
Add dependency uv add <package>

Project Setup

For new projects:

uv init
uv add <dependencies>
uv sync

For existing projects with pyproject.toml:

uv sync
uv run python main.py

Rules

  1. Never use pip install — always uv pip install or uv add
  2. Never install globally — use uv tool install for CLI tools
  3. Always work in a venv — created by uv venv or uv sync
  4. Use uv run — to execute scripts within the project environment

Typical Project

For a project with a Python entry point:

cd <project>
uv sync                           # Install dependencies
uv run python scripts/task.py     # Run a project script

On [HPC cluster] HPC

[HPC cluster] uses Miniconda3 + Lmod (not uv) because cluster users need to compose with module load CUDA/12.6.0 and other pre-built modules. The project-specific pattern is hpc/env-setup.sh (conda create + pip install) — see docs/guides/hpc.md and reference implementations under Projects/NLP/{example-project-a,example-project-b}/hpc/env-setup.sh. The local dev env still uses uv; HPC gets its own conda env with identical pins. Don't try to port uv to [HPC cluster] — the module system assumes conda.

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. 2mo ago Changed 823c9c6a5f1d
  2. 2mo ago First seen · 62 lines · 40 tokens per session scan A a1f69ab14e7b

Subscribe to this mod's changes

python-env is a skill published in the GitHub repository flonat/flonat-research (155 stars, last pushed 15d ago), licensed MIT. It adds 40 tokens to every session and 562 once invoked, about $0.0002 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-09-03.

Related

python-env compared with skills from other repositories

python-env next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
python-envflonat/flonat-researchSkill15515d agoMITA40Claude Code
python-backendWrongStack/WrongStackSkill444todayMITA93Claude Code, Codex
uv-package-managerGalaxy-Dawn/claude-scholarSkill6.1k3d agoMITC42Claude Code
agent-python-experttravisjneuman/.claudeSkill115yesterdayMITA37Claude Code
pypi-ops0xDarkMatter/claude-modsSkill866d agoMITA74Claude Code
python-performanceseaworld008/Commonly-used-high-value-skillsSkill75yesterdayMITA38Claude Code, Codex
python-async-ops0xDarkMatter/claude-modsSkill866d agoMITA40Claude Code