What problem does it solve?
This Skill eliminates the tedious, error-prone work of manually implementing SQLAlchemy boilerplate (repository patterns, service layers, session management, and migration setup) for web applications, especially when integrating with frameworks like Litestar, FastAPI, Flask, Sanic, or Starlette.
Core Features & Use Cases
- Opinionated Base Models: Auto-generated IDs, audit timestamps, and mixins for slugs, unique constraints, and optimistic locking, reducing model definition boilerplate.
- Built-in Repository & Service Layers: Async CRUD operations with lifecycle hooks for business logic, eliminating repetitive data access code.
- Multi-Framework Integration: First-party plugins for Litestar, FastAPI, Flask, Sanic, and Starlette with automatic session management, dependency injection, and Alembic CLI support.
- Use Case: A developer building a Litestar e-commerce API can use this Skill to instantly generate model, repository, and service code for orders and products, with automatic session handling and migration support, cutting development time significantly.
Quick Start
Use the advanced-alchemy skill to generate a complete UUIDAuditBase model, async repository, and service layer for a new 'Product' entity with slug support and Alembic migration setup for your Litestar application.