python-patterns

Identify Python project goals and constraints to guide framework and pattern selection.

Updated Jan 21, 2026
One-click install
npx skills add https://github.com/ollieb89/orchestrator --skill python-patterns-ollieb89
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-patterns
Source: https://github.com/ollieb89/orchestrator/tree/main/.cursor/skills/python-patterns
Command: npx skills add https://github.com/ollieb89/orchestrator --skill python-patterns-ollieb89

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide helps developers reason about Python project decisions rather than blindly copying patterns, promoting thoughtful architecture and maintainable code.

Core Features & Use Cases

  • Decision trees for framework selection (FastAPI, Django, Flask) based on context and requirements.
  • Async vs Sync guidance for I/O-bound vs CPU-bound tasks.
  • Type hints strategy using Optional, Union, generics, and validation concepts.
  • Project structure principles for small to large apps, organized by feature or layer.

Quick Start

Ask for the project's context and pick the recommended Python pattern using the decision framework described above.

Frequently Asked Questions about python-patterns

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

FAQPage Schema
How do I choose between FastAPI, Django, and Flask for a new Python project?

Python framework selection depends on your project context and specific requirements. Decision trees evaluate constraints across API, web, and script contexts to recommend the appropriate framework, ensuring type safety and modular design while avoiding verbatim pattern copying.

When should I use async instead of sync Python patterns?

Async Python patterns suit I/O-bound tasks, while sync patterns fit CPU-bound workloads. Decision frameworks evaluate your project's specific I/O versus CPU constraints to guide this selection, ensuring clear separation of concerns and maintainable architecture across the application.

What's the best way to structure a large Python application by feature or layer?

Python project structure principles organize large applications by feature or layer to ensure modular design. Applying these structural patterns maintains clear separation of concerns and type safety, scaling effectively from small scripts to complex web apps without copying patterns verbatim.

How do I apply type hints strategy using Optional, Union, and generics in Python?

Python type hints strategy applies Optional, Union, and generics to enforce type safety and validation concepts. This approach integrates with framework selection and project structure decisions to maintain modular design and clear separation of concerns across the codebase.

Does this Python patterns framework require specific dependencies or environments to apply?

Applying these Python patterns requires no external dependencies, as the framework focuses on decision-making principles rather than specific libraries. You identify project goals and constraints first, then use decision trees to guide framework, async, typing, and structure selection.