zenstack-relation-naming-discovery
Installation
SKILL.md
ZenStack Relation Naming Discovery
Problem
When working with ZenStack (enhanced Prisma), the actual relation field names on model instances don't always match what you expect from reading the schema. This causes TypeScript errors and runtime failures when accessing related data.
Common scenario: Schema defines verificationRecord VerificationRecord? but the
actual field name is verification, not verificationRecord.
Context / Trigger Conditions
Use this pattern when you encounter: