This is a comprehensive setup guide for building database layers with SQLAlchemy 2.0, Pydantic, and PostgreSQL. It walks you through the modern async stack with proper type safety using Mapped[] annotations, separating ORM models from Pydantic schemas, and implementing the repository pattern. The workflows cover everything from initial setup to migrations with Alembic, and it pushes you toward production-ready patterns like connection pooling and async sessions with FastAPI. The auto-detection is smart enough to kick in when you mention database-related terms. Honestly, this is less of a quick reference and more of an opinionated project structure, which is exactly what you want when starting a new FastAPI project with a database.
npx skills add https://github.com/cfircoo/claude-code-toolkit --skill sqlalchemy-postgres