Agent skill

python-script

Creates standalone Python scripts using uv with PEP 723 inline script metadata.

Stars 0
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/yurifrl/cly/tree/main/.agents/skills/python-script

SKILL.md

Python Script with uv

Template

python
#!/usr/bin/env -S uv run --quiet --script
# /// script
# requires-python = ">=3.11"
# dependencies = ["dep1", "dep2"]
# ///
"""Brief description."""

import argparse


def main():
    parser = argparse.ArgumentParser(description="Description")
    # args...
    args = parser.parse_args()
    # implementation...


if __name__ == "__main__":
    main()

Rules

  • Shebang: #!/usr/bin/env -S uv run --quiet --script
  • PEP 723 block with requires-python and dependencies
  • Only list external dependencies (not stdlib)
  • Use argparse for CLI
  • Always use if __name__ == "__main__": main()

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results