원클릭으로
db-schema-mgmt
Rules that MUST be followed when working on database schema related tasks with Atlas and GORM.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Rules that MUST be followed when working on database schema related tasks with Atlas and GORM.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
| name | db-schema-mgmt |
| description | Rules that MUST be followed when working on database schema related tasks with Atlas and GORM. |
This project uses Atlas for database schema management with GORM models.
When the schema changes, generate a new migration:
atlas migrate diff --env gorm <migration_name>
| Task | Command |
|---|---|
| Generate migration | atlas migrate diff --env gorm <name> |
| Validate migrations | atlas migrate validate --env gorm |
| Check status | atlas migrate status --env gorm |
| Fix checksums | atlas migrate hash --env gorm |
models/ directoryatlas migrate diff --env gorm add_description_fieldmigrations/atlas migrate validate --env gormgo test ./...⚠️ NEVER modify existing migration files - this breaks linear history
⚠️ ALWAYS create NEW migrations for schema changes
⚠️ Run atlas migrate hash if you must edit an unapplied migration
atlas migrate validate --env gorm
# Fix issues, then:
atlas migrate hash --env gorm
├── atlas.hcl # Atlas configuration
├── models/ # GORM models (source of truth)
│ └── todos.go
├── migrations/ # Atlas versioned migrations
│ ├── atlas.sum # Integrity checksums (don't edit)
│ └── *.sql # Migration files
The atlas.hcl uses atlas-provider-gorm to read GORM model definitions and compare them against the migrations directory.
SOC 직업 분류 기준
Comprehensive Atlas database schema management. Use when working with Atlas migrations, schema inspection, diffing, linting, or applying database changes.
A test skill that greets the user. Use when the user says hello or asks for a greeting.