From db-postgres
Use when implementing PostgreSQL database code with frameworks — enforces patterns for EF Core/Npgsql (JSONB, enums, identity), SQLAlchemy/Alembic (models, revisions), Flyway, and Dapper with Npgsql
How this skill is triggered — by the user, by Claude, or both
Slash command
/db-postgres:postgres-frameworksThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- Map PostgreSQL enums: `modelBuilder.HasPostgresEnum<OrderStatus>()`
modelBuilder.HasPostgresEnum<OrderStatus>()builder.Property(o => o.Metadata).HasColumnType("jsonb")UseIdentityAlwaysColumn() instead of UseIdentityColumn()HasDefaultSchema("public") for PostgreSQL conventionbuilder.HasIndex(o => o.Metadata).HasMethod("gin")dotnet ef migrations script --idempotentNpgsqlModelBuilderExtensions for PostgreSQL-specific featuresDeclarativeBase (SQLAlchemy 2.0+)JSONB dialect type, not generic JSONserver_default for database-level defaults__table_args__ for schema and constraints--autogenerate for migration creationop.execute() for raw SQL when needed (e.g., creating enums)op.execute("CREATE TYPE order_status AS ENUM ('pending', 'completed')")V1__create_orders_table.sqlIF NOT EXISTS for idempotent DDLNpgsqlConnection directly$1, $2 parameters internally, but Dapper's @Name syntax works via NpgsqlNpgsqlConnection.GlobalTypeMapper.MapEnum<T>()NpgsqlDbType.Jsonb for JSONB parametersnpx claudepluginhub gagandeepp/software-agent-teams --plugin db-postgresGuides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Enforces test-driven development: write failing test first, then minimal code to pass. Use when implementing features or bugfixes.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.