architecture-python-backend

Installation
SKILL.md

Architecture: Python Backend

Purpose

This skill establishes strict architectural guidelines for the Python/FastAPI backend, complementing the technology-specific fastapi-backend-patterns skill. It enforces layered design, explicit error boundaries, and feasibility checks before implementation.

When to Use

  • Gate 3 (PLAN): When designing a new backend feature or microservice.
  • Gate 4 (IMPLEMENT): When structuring routes, services, and repositories.
  • Gate 5 (VERIFY): When reviewing code for architectural violations (layer skipping).

Core Architecture Doctrine (Non-Negotiable)

1. Backend Feasibility & Risk Index (BFRI)

Before implementing complex backend logic, evaluate BFRI (Score from -10 to +10):

  • + (Positive): Architectural fit, testability.
  • - (Negative): Business logic complexity, data risk, operational risk. Rule: If BFRI < 3, require explicit design validation and extra testing (TDD).
Installs
3
GitHub Stars
28
First Seen
Jun 22, 2026