{"enrichment":{"faq":[{"a":"sqlalchemy-postgres guides you through initializing a production-ready async database layer with SQLAlchemy 2.0 and PostgreSQL. Start by configuring an async engine using `create_async_engine()` with an asyncpg driver URL, set up an async session factory with `AsyncSession`, and establish connection pooling. The skill covers proper initialization patterns, environment configuration, and best practices for async database connectivity in production environments.","q":"How do I set up SQLAlchemy 2.0 with async PostgreSQL?"},{"a":"sqlalchemy-postgres teaches the complete setup workflow: install SQLAlchemy 2.0+ with asyncpg, configure your PostgreSQL connection string, create an async engine with appropriate pool settings, initialize an AsyncSession factory, and integrate with your application framework. The skill emphasizes type-safe configuration, connection pooling optimization, and production-ready patterns for reliable database initialization.","q":"What is the sqlalchemy 2.0 postgres setup process?"},{"a":"sqlalchemy-postgres shows how to define SQLAlchemy ORM models with proper type annotations, then create corresponding Pydantic v2 schemas for validation and serialization. The skill covers deriving Pydantic models from SQLAlchemy models, handling relationships, configuring validation rules, and maintaining schema consistency. This approach provides type safety, runtime validation, and clean separation between database and API layers.","q":"How do I use SQLAlchemy with Pydantic for validation?"},{"a":"sqlalchemy-postgres provides patterns for implementing CRUD operations using async sessions. The skill covers creating, reading, updating, and deleting records with async/await syntax, using repository patterns for clean abstraction, executing queries with proper session management, and handling transactions. It emphasizes dependency injection for FastAPI integration, error handling, and query optimization for production applications.","q":"How should I implement async CRUD operations in sqlalchemy-postgres?"},{"a":"sqlalchemy-postgres guides you through creating and managing database migrations using Alembic. The skill covers initializing Alembic, auto-generating migrations from SQLAlchemy models, writing custom migrations, managing version control, and executing migrations safely in production. It includes best practices for schema evolution, rollback strategies, and maintaining migration history alongside your codebase.","q":"What is the Alembic migration workflow with sqlalchemy-postgres?"},{"a":"sqlalchemy-postgres demonstrates integrating SQLAlchemy's async sessions with FastAPI's dependency injection system. The skill covers creating session dependencies, managing session lifecycle within request handlers, using repository patterns for data access, and ensuring proper resource cleanup. This integration enables clean, testable API endpoints with type-safe database access and automatic session management per request.","q":"How do I integrate SQLAlchemy with FastAPI using dependency injection?"}],"shadow_tags":["orm-framework","async-database","schema-validation","data-persistence","migration-management","type-safe-queries","repository-abstraction","connection-pooling","api-serialization"],"summary_rewrite":"This skill provides expert guidance for building production-ready database layers using SQLAlchemy 2.0 with async support, Pydantic v2 validation, and PostgreSQL. It covers initialization, model definition with type-safe annotations, Alembic migrations, async CRUD patterns, and repository architecture for clean separation of concerns."},"files":[{"bytes":5031,"path":"skills/sqlalchemy-postgres/SKILL.md","sha256":"48cd16d8165d1158c2595d99a4f87f5c2e392f2f2fd4ee8ce1810713e39d10ba","url":"https://skillfed.io/files/cfircoo/claude-code-toolkit/sqlalchemy-postgres/3bb13b61/SKILL.md"}],"id":"cfircoo/claude-code-toolkit/sqlalchemy-postgres","links":{"html":"https://skillfed.io/cfircoo/claude-code-toolkit/sqlalchemy-postgres","md":"https://skillfed.io/cfircoo/claude-code-toolkit/sqlalchemy-postgres.md","repo":"https://github.com/cfircoo/claude-code-toolkit"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":1,"language":"Shell","last_updated":"2026-03-28","license":"MIT","name":"sqlalchemy-postgres","publisher":"cfircoo","stars":17},"relations":{"similar":[{"id":"hieutrtr/ai1-skills/python-backend-expert"},{"id":"manutej/luxor-claude-marketplace/sqlalchemy"},{"id":"bobmatnyc/claude-mpm-skills/sqlalchemy"},{"id":"majesticlabs-dev/majestic-marketplace/sqlalchemy-patterns"},{"id":"martinholovsky/claude-skills-generator/fastapi-expert"},{"id":"alinaqi/maggy/supabase-python"},{"id":"majiayu000/spellbook/python-project"},{"id":"personamanagmentlayer/pcl/python-expert"},{"id":"majesticlabs-dev/majestic-marketplace/fastapi-coder"},{"id":"manutej/luxor-claude-marketplace/fastapi"}]},"slug":{"owner":"cfircoo","repo":"claude-code-toolkit","skill":"sqlalchemy-postgres"},"version":"3bb13b61"}
