Atlas best practices

From alleneubank/claude-code · View interactive version

Atlas best practices is an AI agent skill from the GitHub repository alleneubank/claude-code. Use when working with atlas.hcl, Atlas CLI commands, schema HCL/SQL files, or migration planning and reviews, including Atlas v1.1 security, data, and exporter capabilities.

How to use this skill

Skill file

Atlas Best Practices

Atlas supports declarative and versioned schema workflows. Keep this file minimal and load only the reference file needed for the current task.

Workflow Selection

Default Execution Flow

  1. Confirm the target env in atlas.hcl.
  2. Confirm dev is configured and isolated from production.
  3. Plan first, then lint/test/validate, then apply.
  4. Run production changes through CI/CD or approved deployment workflow.

Quick Commands

# Declarative
atlas schema apply --env local

# Versioned
atlas migrate diff add_change --env local
atlas migrate lint --env local --latest 1
atlas migrate apply --env local

# Integrity
atlas migrate validate --env local
atlas migrate status --env local

Reference Map

Use for environment config, schema-as-code patterns, declarative vs versioned workflows, baselining, and ORM provider loading.

Use for lint analyzers, transaction modes, schema tests, pre-execution checks, and CI patterns.

Use for Atlas v1.1 coverage (released on 2026-02-03), including security as code, declarative data, new drivers/platform support, Slack integration, schema exporters, and MySQL TLS.

Use for Atlas CLI capabilities and edge cases agents often miss: planning workflows, migration directory maintenance commands, URL/TLS pitfalls, feature availability, and version policy constraints.

Guardrails

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.