python-scripting

Python Scripting Skill

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "python-scripting" with this command: npx skills add 89jobrien/steve/89jobrien-steve-python-scripting

Python Scripting Skill

Creates self-contained Python scripts using uv and PEP 723 inline script metadata.

What This Skill Does

  • Creates standalone Python scripts

  • Uses PEP 723 inline dependencies

  • Sets up argument parsing

  • Handles input/output

  • Configures reproducible builds

When to Use

  • Standalone utility scripts

  • One-off automation tasks

  • Quick data processing

  • CLI tools

  • Scripts that need dependencies

Reference Files

  • references/UV_SCRIPT.template.py
  • Python script template with PEP 723 metadata

PEP 723 Format

#!/usr/bin/env -S uv run --script

/// script

requires-python = ">=3.12"

dependencies = [

"requests",

"rich",

]

///

Running Scripts

uv run script.py [args]

Dependencies install automatically on first run.

Best Practices

  • Use exclude-newer for reproducibility

  • Include docstring with usage examples

  • Use argparse for CLI arguments

  • Return exit codes (0 success, non-zero error)

  • Keep scripts focused on one task

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

dead-code-removal

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

ai-code-cleanup

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

developer-experience

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

spec-driven-development

No summary provided by upstream source.

Repository SourceNeeds Review