I figured out a prompting pattern for getting Claude to produce fully self-contained Python scripts that execute with "uv run" using PEP 723 inline script dependencies - and now I can one-shot useful Python utilities with it https://simonwillison.net/2024/Dec/19/one-shot-python-tools/
Here are my custom instructions which I'm using as part of a Claude Project, but I expect they'll work the same way with other LLMs too