python-engineering

tao3k's avatarfrom tao3k

Python development utilities including linting, testing, and Pydantic standards

⭐2stars🔀0forks📁View on GitHub🕐Updated Jan 11, 2026⬇️1downloads

When & Why to Use This Skill

This Claude skill streamlines Python development by automating essential engineering tasks such as linting, formatting, and type checking. It ensures codebases adhere to PEP 8 standards and Pydantic patterns while facilitating robust testing with Pytest to improve overall software reliability, maintainability, and code quality.

Use Cases

  • Automated Code Quality Checks: Quickly identify and fix PEP 8 violations and formatting issues using Ruff and Black to maintain a clean and professional codebase.
  • Static Type Verification: Utilize Mypy and type hints to detect potential type-related bugs early in the development cycle, reducing runtime errors.
  • Test Suite Execution: Seamlessly run Pytest directly within the agent workflow to validate code changes, ensure logic correctness, and prevent regressions.
  • Data Validation Standardization: Implement and verify Pydantic models to ensure consistent data structures and robust validation logic across Python projects.
name"python_engineering"
version"1.0.0"
description"Python development utilities including linting, testing, and Pydantic standards"
authors["omni-dev-fusion"]

Python Engineering Skill Policy

Code is Mechanism, Prompt is Policy

Python Standards

When writing or editing Python code:

  1. Follow PEP 8 - Use 4 spaces, 79-char line limit, descriptive names
  2. Use type hints - All functions should have type annotations
  3. Pydantic patterns - Use pydantic.BaseModel for data classes
  4. Docstrings - Use Google style for function docstrings

Tools Available

  • lint_python_style - Check code with ruff/flake8
  • run_pytest - Execute test suite
  • check_types - Run mypy type checking
  • format_python - Format code with ruff/black

Routing Keywords

Python, lint, format, type check, pytest, pep8, pydantic, type hints, typing, ruff, black