Patterns for Atlas database schema management covering HCL/SQL schema definitions, versioned and declarative migrations, linting analyzers, testing, and project configuration. Use when working with atlas.hcl, .hcl schema files, Atlas CLI commands, or database migrations.
93
Quality
89%
Does it follow best practices?
Impact
97%
1.10xAverage score across 3 eval scenarios
Advisory
Suggest reviewing before use
Atlas project configuration and HCL schema setup
HCL file extension
100%
100%
Docker dev-url
100%
100%
Variable for DB URL
100%
100%
Local env block
100%
100%
Prod env block
100%
100%
Migration dir config
100%
100%
SQL format config
100%
100%
Versioned for prod
100%
100%
HCL over SQL schema
100%
100%
Index naming convention
100%
100%
Without context: $0.2003 · 1m 4s · 14 turns · 21 in / 3,258 out tokens
With context: $0.4269 · 1m 29s · 24 turns · 29 in / 5,149 out tokens
Schema testing and migration transaction modes
txmode none directive
100%
100%
CONCURRENTLY keyword
100%
100%
test.hcl extension
100%
100%
test block structure
100%
100%
parallel = true
100%
100%
catch block for constraint
30%
100%
assert block
0%
100%
cleanup block
62%
100%
for_each parameterized test
100%
100%
txmode explanation
100%
100%
Without context: $0.3161 · 1m 32s · 17 turns · 23 in / 5,946 out tokens
With context: $0.5187 · 1m 41s · 24 turns · 30 in / 6,178 out tokens
Linting configuration and migration safety rules
Destructive lint error
100%
100%
Data-dependent lint error
100%
100%
Naming convention rule
100%
100%
Index naming rule
0%
100%
nolint directive
100%
100%
Docker dev-url in atlas.hcl
100%
100%
Variable for DB URL
0%
0%
idx_ index names in migration
100%
100%
Lint analyzer explanation
100%
100%
nolint use case
100%
100%
Without context: $0.4255 · 1m 50s · 23 turns · 29 in / 6,831 out tokens
With context: $0.4791 · 1m 47s · 24 turns · 29 in / 5,484 out tokens
5342bca
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.