python-engineering
Python development utilities including linting, testing, and Pydantic standards
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:
- Follow PEP 8 - Use 4 spaces, 79-char line limit, descriptive names
- Use type hints - All functions should have type annotations
- Pydantic patterns - Use pydantic.BaseModel for data classes
- Docstrings - Use Google style for function docstrings
Tools Available
lint_python_style- Check code with ruff/flake8run_pytest- Execute test suitecheck_types- Run mypy type checkingformat_python- Format code with ruff/black
Routing Keywords
Python, lint, format, type check, pytest, pep8, pydantic, type hints, typing, ruff, black