atlas

atlas is a skill for Claude Code, Codex from fmind/dot. It costs 37 tokens per session (870 once invoked), scanned A, original, MIT.

A workflow for managing database schema changes with Atlas. A schema describes tables, columns, indexes, and other database structure.

In plain words
What is it for?
Maintain schema files, create versioned migrations, test changes against a disposable PostgreSQL database, and apply them during deployment.
Why use it?
It lets developers preview, lint, version, and apply schema changes instead of changing shared or production databases by hand.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/fmind/dot/atlas
Any agent
npx skills add fmind/dot --skill atlas
Clone the repo
git clone --depth 1 https://github.com/fmind/dot

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for atlas

README.md
[![agentmods](https://agentmods.dev/badge/skills/fmind/dot/atlas.svg)](https://agentmods.dev/skills/fmind/dot/atlas)
Your own site
<a href="https://agentmods.dev/skills/fmind/dot/atlas"><img src="https://agentmods.dev/badge/skills/fmind/dot/atlas.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 870 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00037 $0.00870
Opus 5 $0.00018 $0.00435
Sonnet 5 $0.00007 $0.00174
Haiku 4.5 $0.00004 $0.00087

Measured yesterday against content hash 26059d819237, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

atlas scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/atlas/SKILL.md · 56 lines

How it starts

The opening of the file, as written. The whole thing — 56 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Atlas

Manage the database schema as code with the Atlas CLI: a declarative schema.sql (or HCL) is the desired state, atlas plans changes against a throwaway dev database, and versioned migration files carry them to Cloud SQL. Query code generation stays with sqlc in go-stack; provisioning Cloud SQL belongs to google-cloud.

Workflow

  1. Project file: commit atlas.hcl with one env per target; dev is a disposable Docker database Atlas uses to normalize and lint.
    env "local" {
      src = "file://schema.sql"
      url = getenv("DATABASE_URL")
      dev = "docker://postgres/17/dev?search_path=public"
      migration { dir = "file://migrations" }
      lint { latest = 1 }
    }
    
  2. Declarative (dev and prototypes): edit schema.sql, preview, then apply.
    atlas schema apply --env local --dry-run
    atlas schema apply --env local --auto-approve
    
  3. Versioned (shared and production): generate a migration from the schema change, lint it, and apply it as a deploy step.
    atlas migrate diff add_users --env local
    atlas migrate lint --env local
    atlas migrate apply --env local --dry-run
    atlas migrate apply --env local
    
  4. Pair with sqlc: point sqlc.yaml schema: at the same schema.sql (or at migrations/, whose Atlas files sqlc parses) so generated Go types and migrations never disagree; run sqlc generate after every diff.
  5. Cloud SQL: connect through the Cloud SQL Auth Proxy or private IP with a least-privilege migration user; run atlas migrate apply from CI or a Cloud Run job before the new revision takes traffic, never at application start.
  6. Verify: atlas migrate status --env <env> shows no pending files and atlas schema inspect --env <env> matches schema.sql.

Gotchas

  • atlas.sum is a checksum: change migration files only through atlas migrate edit or re-hash with atlas migrate hash; a stale sum aborts apply.
  • Dev database is mandatory: diff and lint need dev, so Docker must be running.
  • Destructive changes: migrate lint flags drops and non-additive changes; keep them in a separate, reviewed migration.
  • No schema apply in production: it plans against the live database; production takes reviewed, versioned files only.
  • Secrets: keep url behind getenv(...), never a literal.

Read the full file on GitHub · 56 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 56 lines · 37 tokens per session scan A 26059d819237

Subscribe to this mod's changes

atlas is a skill published in the GitHub repository fmind/dot (4 stars, last pushed today), licensed MIT. It adds 37 tokens to every session and 870 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.