Install
openclaw skills install db-designDeep database design workflow—entities and relationships, keys and constraints, normalization vs denormalization, indexing strategy, integrity, and operational concerns. Use when designing OLTP schemas or reviewing greenfield data models.
openclaw skills install db-designGood OLTP design balances integrity, write paths, query patterns, and evolution—not “third normal form everywhere.”
Trigger conditions:
Initial offer:
Use six stages: (1) domain & access patterns, (2) entities & relationships, (3) keys & constraints, (4) normalization trade-offs, (5) indexing & performance, (6) operations & evolution). Confirm RDBMS and scale expectations.
Goal: List critical queries and writes: QPS, joins, filters, hot rows.
Exit condition: Top access paths ranked by business importance.
Goal: ER model; cardinality; optional vs required relationships.
Goal: Primary keys (surrogate vs natural); foreign keys with explicit ON DELETE policy; unique constraints for business rules.
tenant_id on rows that need isolation; composite keys or indexes as appropriateGoal: Normalize to reduce update anomalies; denormalize read hotspots with documented trade-offs.
Goal: Indexes serve real queries; watch write amplification and index bloat.
Goal: Migration strategy (expand/contract); backup/restore; PII columns flagged.