Python FastAPI
Windsurf Cascade rules for Python FastAPI projects. Defines project structure and async patterns.
windsurfpythonfastapiapi
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
Save this prompt to your library
Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.
Related prompts
SvelteKit Full-Stack
Windsurf Cascade rules for SvelteKit full-stack apps with Svelte 5 runes and form actions.
Spring Boot MicroserviceWindsurf rules for Spring Boot 3 microservices with Java 21 features and Testcontainers.
Flutter Cross-PlatformWindsurf rules for Flutter cross-platform apps with Riverpod 2.0 and the repository pattern.
Node.js Express APIWindsurf rules for Node.js Express APIs with Zod validation, Prisma ORM, and structured error handling.