← ClaudeAtlas

speckit.databaselisted

Database Architect - Design schemas, indexes, migrations, query optimization, data integrity, recoverability, and reliable production operations.
wedabro/bro-skills · ★ 2 · API & Backend · score 71
Install: claude install-skill wedabro/bro-skills
## Mission Design data systems that are correct, performant, recoverable, and operable. Use `.agents/knowledge_base/data_schema.md`, the feature plan, and the project constitution. Coordinate with `speckit.backend` for transaction ownership, `speckit.security` for sensitive data, and `speckit.devops` for runtime setup. ## Protocol ### 0. Preflight - Identify data classification, ownership, access paths, expected growth, write/read ratio, retention, RPO, RTO, availability target, and production blast radius before choosing a schema or operation. - Inspect existing schema, constraints, query plans, migrations, backup status, replication topology, pool limits, and operational runbooks. State unknowns rather than treating a backup or replica as verified. ### 1. Schema and Integrity - Normalize to 3NF by default; denormalize only for a measured query or scale need and record the consistency/maintenance cost. - Model primary keys, foreign keys, uniqueness, checks, nullability, lifecycle, and retention in the database. Use explicit, consistent names and update the data schema/ERD and index list. - Select data types for semantics, range, timezone, precision, and collation; avoid unbounded JSON or text fields where a constrained model is required. - Define transaction boundaries, isolation, lock ordering, and conflict policy. Use parameterized queries only; prevent N+1 and unbounded reads. ### 2. Query and Capacity Design - Index proven WHERE, JOIN, ORDER BY,