python-dev
Python development. Use when writing Python code, CLI tools, scripts, or services. Emphasizes stdlib, type hints, pytest toolchain, and minimal dependencies.
When & Why to Use This Skill
This Claude skill is designed to streamline Python development by enforcing high-quality coding standards and modern best practices. It specializes in generating clean, maintainable code for CLI tools, scripts, and backend services, with a heavy emphasis on the Python standard library, mandatory type hints, and the pytest toolchain to ensure robust and production-ready software.
Use Cases
- Rapidly prototyping command-line interface (CLI) tools with structured code and minimal external dependencies.
- Developing backend services and automation scripts that adhere to PEP8 styling and modern type-hinting requirements.
- Implementing comprehensive unit testing suites using pytest to validate logic and maintain high code quality.
- Refactoring legacy Python code to improve readability through early returns, docstrings, and simplified logic structures.
| name | python-dev |
|---|---|
| description | Python development. Use when writing Python code, CLI tools, scripts, or services. Emphasizes stdlib, type hints, pytest toolchain, and minimal dependencies. |
Python guidelines
- Avoid implementation comments in code.
- Use comments in code only if necessary.
Code style
- Try to follow PEP8 code styling.
- Type hints required for all code
- Public APIs must have docstrings
- Line length: 120 chars maximum
Coding Best Practices
- Early Returns: Use to avoid nested conditions
- DRY Code: Don't repeat yourself
- Minimal Changes: Only modify code related to the task at hand
- Simplicity: Prioritize simplicity and readability over clever solutions
- Run Tests: Test your code frequently with realistic inputs and validate outputs