What problem does it solve?
After modifying .dbx schema files in the Storj satellite database layer, developers must manually regenerate the large satellitedb.dbx.go file, verify the diff, and confirm the code compiles, which is repetitive and error-prone.
Core Features & Use Cases
- Automated Code Generation: Runs the DBX compiler via go generate to produce type-safe Go code for PostgreSQL and CockroachDB from .dbx schema files.
- Diff Summary and Validation: Shows what changed in the generated file and verifies the output compiles with go build.
- Error Diagnosis: Explains common DBX errors such as syntax errors, duplicate definitions, invalid field types, and missing primary keys with suggested fixes.
- Use Case: After adding a last_login field to user.dbx, run this Skill to regenerate the code, review the new Update methods, confirm compilation, and get reminded to create a database migration.
Quick Start
Regenerate the DBX code for my modified schema files and show me what changed.