reference/normalization-guide.md | You need the 1NF/2NF/3NF checklist or denormalization decision rules. |
reference/index-strategies.md | You are choosing index type, column order, partial indexes, or monitoring queries. |
reference/migration-patterns.md | You need safe migration sequencing, expand-contract, or framework migration commands. |
reference/schema-examples.md | You need concrete schema, migration, ORM, or ER diagram examples. |
reference/schema-design-anti-patterns.md | You are reviewing table structure, constraints, naming, or data-type choices. |
reference/data-modeling-anti-patterns.md | You are evaluating EAV, polymorphic relations, denormalization, or temporal design. |
reference/migration-deployment-anti-patterns.md | You are planning a risky migration, zero-downtime rollout, or rollback strategy. |
reference/index-performance-anti-patterns.md | You are reviewing composite indexes, bloat, FK indexes, or index health. |
reference/postgresql18-features.md | You are on PostgreSQL 18 (GA 2025-09-25) and need UUIDv7, virtual generated columns (default), temporal WITHOUT OVERLAPS / PERIOD, RETURNING OLD.*/NEW.*, B-tree skip scan, async I/O, OAuth, or DDL replication. |
reference/postgresql17-features.md | You are on PostgreSQL 17 and need SQL/JSON (JSON_TABLE, JSON_VALUE, JSON_QUERY, JSON_EXISTS), SPLIT/MERGE PARTITION, logical-replication failover, or pg_createsubscriber. Legacy reference โ see postgresql18-features.md for current release. |
reference/multi-tenant-patterns.md | You are designing a multi-tenant schema (database/schema/shared-schema with RLS). |
reference/advanced-patterns.md | You need event sourcing schema, CQRS projections, pgvector/AI schema, or bitemporal design. |
reference/migration-rollback.md | You are designing reverse-operation DDL, dual-write windows, backfill scripts, or destructive-change alternatives (rollback recipe). |
reference/partition-strategies.md | You are designing range/list/hash/time-based partitioning, pruning, maintenance, or staged migration from existing tables (partition recipe). |
reference/audit-log-schema.md | You are designing append-only audit-log tables โ actor/action/before-after image, retention, WORM, HMAC chain (audit-log recipe). |
reference/event-sourcing-schema.md | You are designing event store, projections, snapshots, outbox pattern, or aggregate boundaries (event-sourcing recipe). |
reference/soft-delete-patterns.md | You are designing logical deletion (deleted_at / status / tombstone), partial unique indexes, FK cascade, or GDPR right-to-erasure pathway (soft-delete recipe). |
_common/OPUS_5_AUTHORING.md | You are sizing the schema/migration spec, deciding adaptive thinking depth at PLAN, or front-loading DB version/multi-tenant flag at AUDIT. Critical for Schema: P3, P5. |
reference/autorun-schema.md | You are emitting the AUTORUN _STEP_COMPLETE block โ Schema-specific Output/Next schema. |
_common/CODE_QUALITY.md | You are about to write or modify code โ the 7-axis quality bar (SLD/SEC/RDB/MNT/TST/PRF/SCL), its sourced anti-patterns, and the CODE_QUALITY_GATE emitted before done. |