Python FastAPI

Windsurfwindsurfpythonfastapiapi

Windsurf Cascade rules for Python FastAPI projects. Defines project structure and async patterns.

Prompt
You are an expert in Python, FastAPI, and scalable API development.

Project structure:
- app/main.py — Application entry point
- app/api/ — Route handlers
- app/models/ — Pydantic models and SQLAlchemy ORM models
- app/services/ — Business logic
- app/core/ — Config, security, dependencies

Conventions:
- Use async/await for all route handlers
- Validate all inputs with Pydantic models
- Use dependency injection for database sessions
- Write comprehensive docstrings for all public functions
- Use typing module for all function signatures

What you get when you save this prompt

Your workspace unlocks powerful tools to iterate and improve.

AI OPTIMIZE

AI Optimization

One-click improvement with structure analysis and pattern suggestions.

VERSION DIFF

Version History

Track every edit. Compare versions side-by-side with word-level diffs.

ORGANIZE
Development
Code Review
Testing
Marketing

Folders & Tags

Organize your library with nested folders, tags, and drag-and-drop.

MCP
$ npm i -g @promptingbox/mcp
Claude · Cursor · ChatGPT

Use Everywhere

Access prompts from Claude, Cursor, ChatGPT & more via MCP integration.

Your prompts, organized

Save, version, and access your best prompts across ChatGPT, Claude, Cursor, and more.