python-fastapi-development
Original:🇺🇸 English
Translated
Python FastAPI backend development with async patterns, SQLAlchemy, Pydantic, authentication, and production API patterns.
5installs
Added on
NPX Install
npx skill4agent add sickn33/antigravity-awesome-skills python-fastapi-developmentTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Python/FastAPI Development Workflow
Overview
Specialized workflow for building production-ready Python backends with FastAPI, featuring async patterns, SQLAlchemy ORM, Pydantic validation, and comprehensive API patterns.
When to Use This Workflow
Use this workflow when:
- Building new REST APIs with FastAPI
- Creating async Python backends
- Implementing database integration with SQLAlchemy
- Setting up API authentication
- Developing microservices
Workflow Phases
Phase 1: Project Setup
Skills to Invoke
- - Application scaffolding
app-builder - - Python scaffolding
python-development-python-scaffold - - FastAPI templates
fastapi-templates - - Package management
uv-package-manager
Actions
- Set up Python environment (uv/poetry)
- Create project structure
- Configure FastAPI app
- Set up logging
- Configure environment variables
Copy-Paste Prompts
Use @fastapi-templates to scaffold a new FastAPI projectUse @python-development-python-scaffold to set up Python project structurePhase 2: Database Setup
Skills to Invoke
- - Prisma ORM (alternative)
prisma-expert - - Schema design
database-design - - PostgreSQL setup
postgresql - - Pydantic models
pydantic-models-py
Actions
- Design database schema
- Set up SQLAlchemy models
- Create database connection
- Configure migrations (Alembic)
- Set up session management
Copy-Paste Prompts
Use @database-design to design PostgreSQL schemaUse @pydantic-models-py to create Pydantic models for APIPhase 3: API Routes
Skills to Invoke
- - FastAPI routers
fastapi-router-py - - API design
api-design-principles - - API patterns
api-patterns
Actions
- Design API endpoints
- Create API routers
- Implement CRUD operations
- Add request validation
- Configure response models
Copy-Paste Prompts
Use @fastapi-router-py to create API endpoints with CRUD operationsUse @api-design-principles to design RESTful APIPhase 4: Authentication
Skills to Invoke
- - Authentication
auth-implementation-patterns - - API security
api-security-best-practices
Actions
- Choose auth strategy (JWT, OAuth2)
- Implement user registration
- Set up login endpoints
- Create auth middleware
- Add password hashing
Copy-Paste Prompts
Use @auth-implementation-patterns to implement JWT authenticationPhase 5: Error Handling
Skills to Invoke
- - FastAPI patterns
fastapi-pro - - Error handling
error-handling-patterns
Actions
- Create custom exceptions
- Set up exception handlers
- Implement error responses
- Add request logging
- Configure error tracking
Copy-Paste Prompts
Use @fastapi-pro to implement comprehensive error handlingPhase 6: Testing
Skills to Invoke
- - pytest testing
python-testing-patterns - - API testing
api-testing-observability-api-mock
Actions
- Set up pytest
- Create test fixtures
- Write unit tests
- Implement integration tests
- Configure test database
Copy-Paste Prompts
Use @python-testing-patterns to write pytest tests for FastAPIPhase 7: Documentation
Skills to Invoke
- - API documentation
api-documenter - - OpenAPI specs
openapi-spec-generation
Actions
- Configure OpenAPI schema
- Add endpoint documentation
- Create usage examples
- Set up API versioning
- Generate API docs
Copy-Paste Prompts
Use @api-documenter to generate comprehensive API documentationPhase 8: Deployment
Skills to Invoke
- - Deployment
deployment-engineer - - Containerization
docker-expert
Actions
- Create Dockerfile
- Set up docker-compose
- Configure production settings
- Set up reverse proxy
- Deploy to cloud
Copy-Paste Prompts
Use @docker-expert to containerize FastAPI applicationTechnology Stack
| Category | Technology |
|---|---|
| Framework | FastAPI |
| Language | Python 3.11+ |
| ORM | SQLAlchemy 2.0 |
| Validation | Pydantic v2 |
| Database | PostgreSQL |
| Migrations | Alembic |
| Auth | JWT, OAuth2 |
| Testing | pytest |
Quality Gates
- All tests passing (>80% coverage)
- Type checking passes (mypy)
- Linting clean (ruff, black)
- API documentation complete
- Security scan passed
- Performance benchmarks met
Related Workflow Bundles
- - General development
development - - Database operations
database - - Security testing
security-audit - - API patterns
api-development