.claude/skills/sql-schema/SKILL.md
Database Architect skill. Use this when you need to modify the database schema, add tables, or seed data. This project uses RAW SQL SCRIPTS orchestrated by .NET Aspire, NOT Entity Framework Migrations.
npx skillsauth add cwoodruff/morespeakers-com sql-schemaInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
MoreSpeakers.com uses a "Script-Load" pattern via .NET Aspire (MoreSpeakers.AppHost) to initialize the SQL Server container. We DO NOT use dotnet ef migrations.
The database schema is defined in scripts/database/.
Determine if you need a new table, a modified column, or new seed data.
Check src/MoreSpeakers.AppHost/AppHost.cs. Look for the sqlText concatenation logic:
var sqlText = string.Concat(
File.ReadAllText(Path.Combine(path, @"../../scripts/database/create-database.sql")),
" ",
File.ReadAllText(Path.Combine(path, @"../../scripts/database/create-tables.sql")),
// ... other files
);
Option A: Modify Existing Files (Preferred for clean slate)
scripts/database/create-tables.sql.scripts/database/create-views.sql.Option B: Create New Script (For specific updates)
scripts/database/update-schema-features.sql.AppHost.cs to include this new file in the string.Concat list, or it will be ignored.IF NOT EXISTS (SELECT * FROM sys.tables WHERE name = 'MyTable')
BEGIN
CREATE TABLE MyTable (...)
END
AppHost.cs).dotnet run --project src/MoreSpeakers.AppHost.dotnet ef migrations adddotnet ef database updateOnModelCreating without adding corresponding SQL scripts.tools
Cross-platform path handling and command patterns
development
Update tests when changing APIs — no exceptions
development
Core conventions and patterns used in the Squad codebase
tools
Find and resume interrupted Copilot CLI sessions using session_store queries