python-patterns

Guide Python architecture decisions with decision trees for frameworks and async patterns.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/BoraPerusic/agents --skill python-patterns-boraperusic
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-patterns
Source: https://github.com/BoraPerusic/agents/tree/main/skills/to%20try/antigravity-bundle-python-pro/skills/python-patterns
Command: npx skills add https://github.com/BoraPerusic/agents --skill python-patterns-boraperusic

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps Python developers think through architecture decisions instead of blindly copying patterns.

Core Features & Use Cases

  • Decision trees for framework and pattern selection (e.g., FastAPI, Django, Flask).
  • Async vs sync guidance and recommended use based on I/O vs CPU workloads.
  • Type hints strategy and project-structure guidance for small to large Python projects.
  • Use case: when designing a new microservice or refactoring a monolith, apply principled decisions to reduce rework and improve consistency.

Quick Start

Select your Python project context (API, web app, script, or library) and apply the decision tree to choose a framework, async pattern, and a recommended project structure.

Frequently Asked Questions about python-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose the right Python framework for my project?

Choosing the right Python framework involves applying decision trees to evaluate project context like API, web app, or library requirements. This skill provides principled guidance to select between FastAPI, Django, and Flask based on your specific project structure.

When should I use async vs sync patterns in Python?

Async vs sync patterns in Python should be chosen based on whether your workload is I/O or CPU bound. This skill provides decision-making guidance to match your concurrency patterns with your specific workload characteristics for optimal performance.

What is the best way to structure a large Python project?

The best way to structure a large Python project is by following principle-based guidance and recommended example structures. This skill helps you apply consistent architecture choices to reduce rework when designing microservices or refactoring monoliths.

How do I implement a type hints strategy for Python microservices?

Implementing a type hints strategy for Python microservices requires applying principled decisions to ensure consistency across your codebase. This skill offers type hint strategies tailored to different project scales to improve your overall project structure.

Does this Python architecture guidance work for refactoring a monolith?

Yes, this Python architecture guidance works for refactoring a monolith by providing decision trees and principle-based direction. It helps you apply consistent architecture choices during refactoring to reduce rework and improve design consistency.

Why use principle-based design over standard Python patterns?

Using principle-based design over standard Python patterns prevents blindly copying architectures without understanding the trade-offs. This skill helps you think through architecture decisions deliberately, ensuring your framework selection and async patterns fit your actual workload.