python-global-tool-management

python-global-tool-management is a skill for Claude Code, Codex from Arasz/ai-raccoon. It costs 18 tokens per session (724 once invoked), scanned A, original, MIT.

A guide for installing Python command-line tools for one user without modifying system-managed Python packages. It covers `uv tool`, `pipx`, and isolated virtual environments under PEP 668, a Python packaging rule that protects system installations.

In plain words
What is it for?
Use it when installing or troubleshooting global Python tools such as formatters, linters, or other command-line applications on macOS or Linux.
Why use it?
It avoids the externally-managed-environment error and reduces the risk of breaking Homebrew or operating-system Python packages.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when installing or troubleshooting global Python tools such as formatters, linters, or other command-line applications on macOS or Linux.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arasz/ai-raccoon/python-global-tool-management
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 Arasz/ai-raccoon --skill python-global-tool-management
Clone the repo
git clone --depth 1 https://github.com/Arasz/ai-raccoon

Made for: Claude Code, Codex.

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-global-tool-management

README.md
[![agentmods](https://agentmods.dev/badge/skills/arasz/ai-raccoon/python-global-tool-management/github.svg)](https://agentmods.dev/skills/arasz/ai-raccoon/python-global-tool-management)
Your own site
<a href="https://agentmods.dev/skills/arasz/ai-raccoon/python-global-tool-management"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/python-global-tool-management/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-global-tool-management

Your own site · 80×15
<a href="https://agentmods.dev/skills/arasz/ai-raccoon/python-global-tool-management"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/python-global-tool-management.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 724 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.00018 $0.00724
Opus 5.5 $0.00007 $0.00290
Sonnet 5.5 $0.00004 $0.00145
Haiku 4.5 $0.00002 $0.00072

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

Security

Grade A, and why

python-global-tool-management 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 yesterday.

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.

.ai-badger/skills/learned/devops/python-global-tool-management/SKILL.md · 67 lines

How it starts

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

Global Python CLI Tool Management under PEP 668

Safely install and manage user-scoped Python CLI applications (e.g., semantica, llm, ruff, black) without violating PEP 668 (EXTERNALLY-MANAGED) or corrupting Homebrew/system site-packages.

Trigger Conditions

Use when:

  • Installing a global Python CLI tool or application on macOS or Linux.
  • Hitting error: externally-managed-environment during pip install.
  • Comparing or troubleshooting uv tool, pipx, or custom user virtual environments.

Preferred Tool Installation Hierarchy

1. Primary Recommendation: uv tool install <package>

Use uv tool install as the default approach for user-scoped Python applications.

uv tool install <package>

Why it outperforms alternatives:

  • Automatic Python Runtime Compatibility: If host Python (e.g. Homebrew Python 3.14) lacks pre-compiled binary wheels for C-extension dependencies, uv automatically downloads and uses a compatible standalone CPython build (e.g. 3.11 or 3.12).
  • Isolation: Creates an isolated venv in ~/.local/share/uv/tools/<package> and symlinks only application entry points into ~/.local/bin/.
  • Clean Uninstallation: uv tool uninstall <package> removes all symlinks and tool files cleanly.

2. Secondary Option: pipx install <package>

Use pipx when uv is not installed or when team conventions mandate pipx.

pipx install <package>

Critical Pitfall with Host Python 3.14+: pipx defaults to the host Homebrew Python interpreter. If a package (or its dependency, e.g. gensim==4.4.0) lacks wheels for the latest host Python version, C-extension builds will fail.

  • Fix: Override the Python version explicitly:
    pipx install --python python3.11 <package>
    

3. Advanced / Manual Option: Custom User Virtualenv

When third-party tool managers cannot be used:

uv venv ~/.local/venvs/<app> --python 3.11
uv pip install --python ~/.local/venvs/<app>/bin/python <package>
ln -sf ~/.local/venvs/<app>/bin/<app-binary> ~/.local/bin/

Read the full file on GitHub · 67 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. yesterday First seen · 67 lines · 18 tokens per session scan A d187bb953e36

Subscribe to this mod's changes

python-global-tool-management is a skill published in the GitHub repository Arasz/ai-raccoon (7 stars, last pushed today), licensed MIT. It adds 18 tokens to every session and 724 once invoked, about $0.0001 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-12-05.

Related

python-global-tool-management compared with skills from other repositories

python-global-tool-management next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
python-global-tool-managementArasz/ai-raccoonSkill7todayMITA18Claude Code, Codex
http-client-migrationGen-Verse/PAST-BenchSkill404mo agoApache-2.0A14Claude Code, Codex
codingbojieli/ai-agent-bookSkill61kyesterdayApache-2.0A18Claude Code, Codex
quantum-qiskitaiming-lab/AutoResearchClawSkill15k3mo agoMITA102Claude Code, Codex
prismer-python-debugpyPrismer-AI/PrismerCloudSkill1.4k1mo agoMITA19Claude Code, Codex
pyobfus-protectzhurong2020/pyobfusSkill122d agoApache-2.0A130Claude Code
pyobfus-reviewzhurong2020/pyobfusSkill122d agoApache-2.0A124Claude Code