advanced-alchemy-getting-started

Installation
SKILL.md

Getting Started

Execution Workflow

  1. Confirm prerequisites: Python 3.9+, SQLAlchemy 2.x, and whether the project needs sync or async database access.
  2. Install advanced-alchemy, or advanced-alchemy[cli] if database migration commands are required.
  3. Choose the correct config pair: SQLAlchemyAsyncConfig plus AsyncSessionConfig or SQLAlchemySyncConfig plus SyncSessionConfig.
  4. Start with one model, one repository, and one service before wiring framework-specific plugins or middleware.
  5. Decide early whether the app will use Litestar, FastAPI, Flask, or standalone SQLAlchemy patterns.

Implementation Rules

  • Prefer the smallest viable setup before adding service layers, framework helpers, or multiple binds.
  • Keep session configuration explicit, especially expire_on_commit=False in request-driven applications.
  • Choose sync versus async once per integration boundary and avoid mixing styles casually.
  • Keep the first CRUD path runnable end-to-end before introducing migrations, seeding, or custom types.

Example Pattern

Related skills

More from alti3/litestar-skills

Installs
7
GitHub Stars
5
First Seen
Mar 9, 2026