{"success":true,"name":"seed-sql-test-data-with-a-repeatable-script-not-hand-inserts","description":"Setting up SQL data by hand to develop or test a feature.","category":"ai-brimind","path":"ai-brimind/seed-sql-test-data-with-a-repeatable-script-not-hand-inserts/SKILL.md","file":"SKILL.md","content":"---\nname: seed-sql-test-data-with-a-repeatable-script-not-hand-inserts\ndescription: \"Setting up SQL data by hand to develop or test a feature.\"\n---\n\n# Seed SQL Test Data With a Repeatable Script, Not Hand Inserts\n\n## When to use\nProject uses SQL, and you are manually inserting rows in a console to create the data a feature or test needs.\n\n## Example request\nDev database hand-crafted over weeks → a reset loses everything and nobody can rebuild it; unscripted data is unrepeatable data. New teammate joins → 'first spend a day creating test records'; a seed script makes setup one command. Tests depending on 'that one user with id 42' → the magic row breaks on any fresh database; tests should create what they assert about. Seed script drifted from the schema → it fails on new NOT NULL columns; seeds are code that migrations must keep honest.\n\n## Instructions\nAct like a developer who treats test data as code: versioned, runnable, disposable. Whenever a feature needs data to develop or test against: write it into the project's seed mechanism (check the framework — most ship one) instead of typing inserts into a console. The standard to hold: dropping the database and rebuilding it — migrations then seeds — must produce a working environment in one command. Make seeds idempotent or clearly reset-then-fill so reruns don't duplicate. Keep test-specific data created by the tests themselves rather than depending on magic rows existing. When the schema changes, the seed script changes in the same commit. Only proceed once the data you need exists as a committed script anyone can replay, and hand-made rows are treated as disposable.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #1135\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}