Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By rishubilMITIn 1 marketplace
PreToolUse hook that enforces uv for all Python use, blocking direct python/pip invocations in every directory where the plugin is enabled.
Claude loads one when your task matches it, or you run it by name.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code plugin that enforces uv for all Python use: direct python, pip, and uv pip install invocations are blocked before they run.
While installed, this plugin adds a PreToolUse hook that fires before every Bash command Claude runs. It applies in every directory, not only in uv-managed projects: all Python must go through uv. The hook blocks the command and prints the uv equivalent.
Direct python:
Hint: direct python detected. The uv plugin is enabled, so all Python must go through uv in every directory.
Use `uv run python ...` (or `uv run --no-project python ...` for a standalone script inside a project), or `uvx <tool>` for tools.
Direct pip (including python -m pip):
Hint: direct pip detected. The uv plugin is enabled, so all Python must go through uv in every directory.
Inside a uv project use `uv add <pkgs>`; outside one use `uv run --with <pkgs> ...`, inline script metadata, or `uvx <tool>`.
Suggested command: uv add requests
uv run pip install or uv pip install:
Hint: `uv pip install` detected. The uv plugin is enabled, so all Python must go through uv in every directory.
Inside a uv project use `uv add <pkgs>`; outside one use `uv run --with <pkgs> ...`, inline script metadata, or `uvx <tool>`.
Suggested command: uv add requests
Python that is the argument of uv run, uvx, or uv tool run passes through.
Every command position in the Bash command is judged independently, so uv run a.py && python3 b.py is still blocked. Detected:
python, python3, python3.12, pythonw, pip, pip3, pip3.12, and any path ending in those (/usr/bin/python3, .venv/bin/python).&&, ||, ;, |, newlines, (, $(, backticks, !, {, and then/do/else.VAR=value, sudo, env, exec, time, nohup, nice, timeout <dur>, xargs, command.bash -c '...', sh -c "...", eval, and heredocs fed to a shell (bash <<EOF).Not matched: words that merely mention Python (grep python file, brew info python, cat scripts/python3-notes.txt), pipx, pipenv, and heredoc bodies that are plain data (git commit -F - <<EOF).
/plugin marketplace add rishubil/skills
/plugin install uv@rishubil-skills
Or install into a specific project's .claude/settings.json from the command line:
claude plugin marketplace add rishubil/skills --scope project
claude plugin install uv@rishubil-skills --scope project
After installation, Claude automatically avoids direct python/pip calls and uses uv run / uv add / uv run --with / uvx instead. No extra prompting is needed — the hook fires silently on every Bash call.
The plugin also activates the uv skill, which provides Claude with guidance on the correct uv workflow for script execution, dependency management, and tool invocation.
The hook inspects only the Bash command text. A script run through its own shebang (./tool.py with #!/usr/bin/env python3) or Python launched indirectly by another program is not caught.
| Path | Purpose |
|---|---|
scripts/uv-hook.sh | Dispatcher: tries uv, then python3, then python (3.x) |
scripts/uv-hook.py | Hook logic: tokenizes the command, detects direct Python/pip, outputs hint, exits 2 |
The hook script (uv-hook.py) requires one of:
uv (preferred)python3python at version 3.xHook logic based on mitsuhiko/agent-stuff.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground