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.
npx skills add Arasz/ai-raccoon --skill python-global-tool-managementgit clone --depth 1 https://github.com/Arasz/ai-raccoonWrote 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.
[](https://agentmods.dev/skills/arasz/ai-raccoon/python-global-tool-management)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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-environmentduringpip 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,
uvautomatically 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/
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.
- yesterday First seen · 67 lines · 18 tokens per session scan A d187bb953e36
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.
python-global-tool-management compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| python-global-tool-managementArasz/ai-raccoon | Skill | 7 | today | MIT | A | 18 | Claude Code, Codex |
| http-client-migrationGen-Verse/PAST-Bench | Skill | 40 | 4mo ago | Apache-2.0 | A | 14 | Claude Code, Codex |
| codingbojieli/ai-agent-book | Skill | 61k | yesterday | Apache-2.0 | A | 18 | Claude Code, Codex |
| quantum-qiskitaiming-lab/AutoResearchClaw | Skill | 15k | 3mo ago | MIT | A | 102 | Claude Code, Codex |
| prismer-python-debugpyPrismer-AI/PrismerCloud | Skill | 1.4k | 1mo ago | MIT | A | 19 | Claude Code, Codex |
| pyobfus-protectzhurong2020/pyobfus | Skill | 12 | 2d ago | Apache-2.0 | A | 130 | Claude Code |
| pyobfus-reviewzhurong2020/pyobfus | Skill | 12 | 2d ago | Apache-2.0 | A | 124 | Claude Code |