HR data custody
Collaboration plane: Specialized skill — invoke only after phase 6 / revalidationConfirmed. Record DDL tradeoffs in collaboration-plan.md.
Use this skill when
- Editing
prisma/schema.prisma,prisma/migrations/**,services/*/db/migrations/** - Backfills, RLS migrations, or
scripts/db-verify-migration.ts - Dockerfile, GHCR publish, SBOM/Cosign (ADR 0003)
Do not use this skill when
- Read-only schema questions with no migration intent
- Application code with no DDL/infra change
Instructions
- Read references/migration-runbook.md.
- Apply expand → migrate → contract; CONCURRENTLY discipline for indexes.
- Run
npm run db:verifyafter migrate deploy in CI/local evidence. - Co-load
@hr-domain-boundarieswhen bounded-context SQL changes.
Resources
- references/migration-runbook.md
- specs/alignment/decisions/0003-container-supply-chain.md
Limitations
- Zero-downtime posture required for production paths