Standalone Python Scripts
SkillDev toolsUse when writing standalone Python scripts (one-off scripts, utilities, not part of a larger Python project with pyproject.toml or setup.py). Provides UV shebang template and best practices.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Standalone Python Scripts skill
What this skill tells your AI
The instructions your AI receives, as published by edmundmiller/dotfiles in skills/catalog/python-scripts/SKILL.md and read by ahel’s review.
UV Shebang Template
For standalone Python scripts, always use the UV shebang format:
#!/usr/bin/env -S uv run --script
#
# /// script
# dependencies = [
# "requests",
# "click",
# ]
# [tool.uv]
# exclude-newer = "2025-08-23T00:00:00Z"
# ///
import requests
import click
# Your script code here
Key Points
- Self-contained: All dependencies declared in the file
- No virtual env needed: UV handles dependencies automatically
- Execution: Run directly with
uv run script.pyor./script.py(if executable) - Date pinning: The
exclude-newerensures reproducible builds - PEP 723 compliant: Uses the inline script metadata standard
When to Use
✅ Use this for:
- One-off automation scripts
- CLI utilities
- Data processing scripts
- Quick prototypes
- Scripts without a containing project
❌ Don't use this for:
- Files in a project with
pyproject.tomlorsetup.py - Modules meant to be imported
- Production services/applications
Example Script
#!/usr/bin/env -S uv run --script
#
# /// script
# dependencies = [
# "httpx",
# "rich",
# ]
# [tool.uv]
# exclude-newer = "2025-08-23T00:00:00Z"
# ///
import httpx
from rich import print
def main():
response = httpx.get("https://api.github.com")
print(f"Status: {response.status_code}")
if __name__ == "__main__":
main()
Making Scripts Executable
chmod +x script.py
./script.py # Run directly
Signals
- GitHub stars
- 80
- Forks
- 6
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
python-scripts- Source
- github.com/edmundmiller/dotfiles