What problem does it solve?
This Skill provides comprehensive standards and architectural guidance for developing secure, maintainable, and scalable Python backend services, addressing challenges in code quality, dependency management, and architectural design.
Core Features & Use Cases
- Coding Standards: Enforces PEP-8 compliance, type hinting, and code structure best practices.
- Architectural Patterns: Guides implementation of Hexagonal Architecture for clear separation of concerns.
- Data Validation: Promotes Pydantic models for robust data validation and schema-driven development.
- Testing: Mandates unit tests for public methods and outlines strategies for pytest.
- Security: Emphasizes parameterized queries and secure handling of sensitive data.
- Use Case: Develop a new microservice using FastAPI, ensuring all data models are Pydantic-based, business logic is isolated in the domain layer, and all API inputs/outputs are validated against OpenAPI schemas.
Quick Start
Apply the python-backend skill to refactor the existing Flask application to adhere to hexagonal architecture principles and implement Pydantic models for request validation.