From db-sqlserver
Use when implementing SQL Server database code with frameworks — enforces patterns for EF Core (Code First, migrations, DbContext), Dapper (query patterns, multi-mapping), DbUp (script naming, runners), and Flyway (versioned migrations)
How this skill is triggered — by the user, by Claude, or both
Slash command
/db-sqlserver:sqlserver-frameworksThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- One DbContext per bounded context
IEntityTypeConfiguration<T> for entity configuration (separate files)ApplyConfigurationsFromAssemblyHasDefaultSchema("dbo") for explicit schemaUseIdentityColumn() for auto-incrementHasIndex() and HasDatabaseName()AddCustomerEmailColumn, CreateOrdersTabledotnet ef migrations script --idempotentdotnet ef database update <PreviousMigration>QuerySingleOrDefaultAsync for single-row lookups (returns null if not found)QueryAsync for multi-row queriesExecuteAsync for INSERT/UPDATE/DELETEsplitOnusing for connections — let them be disposedIDbConnectionFactory for testabilityV001__Create_Orders_Table.sql — versioned, runs onceSchemaVersions tracks applied scriptsV1__Create_orders_table.sql (runs once, in order)R__Create_views.sql (re-runs when checksum changes)U1__Create_orders_table.sql (rollback)flyway info to check status before flyway migrate.sqlproj per databasedbo/Tables/, dbo/StoredProcedures/, auth/Tables/dotnet build on the .sqlproj after any schema change — require zero errors before testsdotnet build <path-to>.sqlprojdotnet build <path-to>.sln.dacpac in bin/Debug/ (or bin/Release/) — use it for SqlPackage deploymentsnpx claudepluginhub gagandeepp/software-agent-teams --plugin db-sqlserverGuides 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.