# /database

Command · Engineering kit · EC35

Describe a PostgreSQL problem in plain words and it picks one database prompt from this library, says why, and runs it read-only when it can reach the code and database. In Codex it's $database.

## Command

```text
/database
```

## Skills

- [database](https://atlasscope.dev/skills/database): Use only when the user explicitly invokes /database or $database.

## Related

- [Make this database easier to trust and operate](https://atlasscope.dev/prompts/make-this-database-easier-to-trust-and-operate): The broad starting point when the database feels hard to trust or costly, and you can't yet name one problem.
- [Can we independently prove these numbers?](https://atlasscope.dev/prompts/can-we-independently-prove-these-numbers): Important figures may be wrong even though their lineage is documented.
- [Find data that is internally consistent but wrong](https://atlasscope.dev/prompts/find-data-that-is-internally-consistent-but-wrong): Every check passes, but totals or outputs still look implausible.
- [Find where records silently change identity](https://atlasscope.dev/prompts/find-where-records-silently-change-identity): Sources use aliases, changing identifiers, share classes or inconsistent names for the same thing.
- [Reproduce what the database believed in the past](https://atlasscope.dev/prompts/reproduce-what-the-database-believed-in-the-past): Past reports, backfills, restatements or changed classification rules matter.
- [Map every place that writes to the database](https://atlasscope.dev/prompts/map-every-place-that-writes-to-the-database): Several jobs, functions, APIs or agents change the same data, or nobody is sure who owns it.
- [Stop rewriting data that hasn't changed](https://atlasscope.dev/prompts/stop-rewriting-data-that-hasnt-changed): Upserts and updates run at high volume, imports are costly, or vacuum and write-ahead log churn look high.
- [Is our ingestion process more complicated than necessary?](https://atlasscope.dev/prompts/is-our-ingestion-process-more-complicated-than-necessary): The import pipeline is long, slow to correct, or does the same work at several stages.
- [Can we rerun everything without damaging the data?](https://atlasscope.dev/prompts/can-we-rerun-everything-without-damaging-the-data): Imports get retried, schedulers overlap, files are replayed, or runs fail halfway.
- [Find where write logic should live](https://atlasscope.dev/prompts/find-where-write-logic-should-live): Business rules are split across SQL, triggers, edge functions, server routes and workers.
- [Which database objects no longer earn their keep?](https://atlasscope.dev/prompts/which-database-objects-no-longer-earn-their-keep): The list of views, functions and triggers has grown hard to reason about.
- [Are we storing the same truth multiple times?](https://atlasscope.dev/prompts/are-we-storing-the-same-truth-multiple-times): Caches, aggregates, materialized views or derived columns drift from the raw facts.
- [Can the schema be easier to understand without losing depth?](https://atlasscope.dev/prompts/can-the-schema-be-easier-to-understand-without-losing-depth): New developers or agents keep misunderstanding names, concepts or relationships.
- [Find the true sources of database waste](https://atlasscope.dev/prompts/find-the-true-sources-of-database-waste): The bill is high, CPU or disk usage is high, storage keeps growing, or you suspect bloat.
- [What will become expensive as the database grows?](https://atlasscope.dev/prompts/what-will-become-expensive-as-the-database-grows): Fact or history tables are growing fast, or you need to plan capacity.
- [Can we rebuild this database from its sources?](https://atlasscope.dev/prompts/can-we-rebuild-this-database-from-its-sources): You worry about disaster recovery, production-only state, or whether the data could be rebuilt.
- [Are our database changes safe before we merge?](https://atlasscope.dev/prompts/are-our-database-changes-safe-before-we-merge): A migration, or a change to functions, views, RLS, types or column meaning, is about to ship.
- [Which decisions should an expert agent make without me?](https://atlasscope.dev/prompts/which-decisions-should-an-expert-agent-make-without-me): Agents keep asking you to classify fields, match records or pick between sources.

Source: https://atlasscope.dev/prompts/database
