python-style

Execute Python scripts with temporary dependencies via uv run.

9|Updated Apr 25, 2012
One-click install
npx skills add https://github.com/hoelzro/dotfiles --skill python-style
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-style
Source: https://github.com/hoelzro/dotfiles/tree/main/claude/skills/python-style
Command: npx skills add https://github.com/hoelzro/dotfiles --skill python-style

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the challenges of maintaining consistent Python coding standards, adhering to best practices, and managing dependencies for quick scripts without polluting your environment. It automates the enforcement of style guides and simplifies script execution.

Core Features & Use Cases

  • Coding Conventions: Provides guidance on personal coding conventions for writing, reviewing, and refactoring Python code.
  • Best Practices: Ensures adherence to established Python best practices for robust and maintainable code.
  • Dependency Management: Facilitates running Python scripts with temporary, isolated dependencies using uv run, eliminating the need for virtual environments for one-off tasks.
  • Use Case: Automatically review an attached Python script to ensure it conforms to defined style guidelines, or execute a data processing script with specific versions of pandas and numpy without affecting your global Python setup.

Quick Start

Review the attached Python script 'data_analysis.py' for style and best practices, suggesting improvements based on the 'python-style' skill.

Frequently Asked Questions about python-style

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run Python scripts with specific package versions without virtual environments?

Use `uv run` to execute Python scripts with temporary, isolated dependencies. This pins package versions per-run without modifying your global Python environment or requiring virtual environment setup, ensuring reproducible results for ad hoc tasks and data processing.

What's the best way to enforce Python coding standards across a project?

Automate style review by checking scripts against defined coding conventions and best practices. This catches deviations early, ensures consistency across refactoring and code review, and maintains adherence to established guidelines without manual enforcement.

Can I manage dependencies for one-off scripts without polluting my system Python?

Yes. Dependency management through `uv run` lets you specify package versions inline for individual scripts, keeping your global Python clean and eliminating conflicts between projects or experimental runs.

How do I review Python code for style and best practices?

Submit your script for automated style review to identify deviations from coding conventions and best practices. The review suggests improvements for robustness, maintainability, and consistency with established guidelines.

When should I use temporary isolated dependencies instead of a virtual environment?

Use isolated dependencies for one-off data processing, quick experiments, and demonstrations where setup overhead isn't justified. This approach avoids virtual environment management while maintaining reproducibility and version isolation for temporary tasks.