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 trailofbits Verified Orgv1.6.2CC-BY-SA-4.0In 3 marketplaces
Sets up new Python projects and scripts with uv, ruff, ty and pytest, or migrates legacy pip/flake8/mypy setups. A session-start hook adds PATH shims that block bare python, pip and pipx commands and print the uv equivalent.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
Public GitHub repos that commit this plugin as enabled in their Claude Code settings
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
3 marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Modern Python tooling and best practices using uv, ruff, ty, and pytest. Based on patterns from trailofbits/cookiecutter-python.
Author: William Tan
Core Tools:
Security Tools:
Standards:
This plugin includes a SessionStart hook that prepends PATH shims for python, pip, pipx, and uv. When Claude runs a bare python, pip, or pipx command, the shell resolves to the shim, which prints an error with the correct uv alternative and exits non-zero. The suggested alternative always uses the exact command name python (never python3) so it also works outside a project; see the header comment in hooks/shims/python for the full rationale.
The shims sit on PATH, so they see every subprocess a tool spawns, not only what Claude types. That is why the intercepted set is narrow: it covers the invocations uv run and uv add genuinely replace, and passes the rest through to the real binary. python -c, python -m <module> and python - read a program from the command line, an installed module, or stdin, so none of them resolves a script against a project's dependencies; uv pip carrying --project, --directory or --target is a tool building an environment it owns. Redirecting those broke real tooling, including prek hook installation and any script piping into python3 - (#207).
| Intercepted Command | Suggested Alternative |
|---|---|
python ... | uv run python ... |
python -m pip | uv add/uv remove |
pip install pkg | uv add pkg or uv run --with pkg |
pip uninstall pkg | uv remove pkg |
pip freeze | uv export |
uv pip ... | uv add/uv remove/uv sync |
| (passed through) | python -c, python -m <module>, python -, and uv pip with --project, --directory or --target |
pipx install <pkg> | uv tool install <pkg> |
pipx run <pkg> | uvx <pkg> |
pipx uninstall <pkg> | uv tool uninstall <pkg> |
pipx upgrade <pkg> | uv tool upgrade <pkg> |
pipx upgrade-all | uv tool upgrade --all |
pipx ensurepath | uv tool update-shell |
pipx inject <pkg> <dep> | uv tool install --with <dep> <pkg> |
pipx list | uv tool list |
Commands like grep python, which python, and cat python.txt work normally because python is a shell argument, not the command being invoked.
/plugin install trailofbits/skills/plugins/modern-python
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
npx claudepluginhub trailofbits/skills --plugin modern-python