This skill should be used when the user asks to "sync domain model", "update Qlerify", "push changes to Qlerify", "sync schemas", "sync entities", or after implementing features that add or change...
Sync the local codebase's domain model with Qlerify. Detect entities, commands, read models, and domain event schemas in code and ensure they match Qlerify.
If this is a brownfield or legacy codebase and the aggregate boundaries are unclear, isolate one aggregate at a time before syncing — the workflow-creation skill's Phase 0 contains the aggregate extraction guidance.
list_workflows to get all accessible workflows.get_workflow to understand current state (events, entities, commands, read models, domain event schemas, bounded contexts).Scan for the following:
CreateOrder, UpdateCustomer, POST/PUT/DELETE
endpoints).GetOrderById, ListProducts).OrderPlacedEvent, PaymentConfirmedEvent).Search patterns:
src/domain/, src/models/, src/entities/, **/entity.ts, **/model.tssrc/commands/, src/handlers/, **/command.tssrc/queries/, src/read-models/, **/query.tssrc/events/, src/domain-events/, **/event.ts, **/*Event.ts, **/*Event.javasrc/routes/, src/api/, src/controllers/prisma/schema.prisma, **/schema.graphql, **/migrations/Also check git diff for recently changed schema files to detect field-level changes.
get_workflow to get all entities, commands, read models, and domain event schemas from Qlerify.addFields, updateFields, removeFields.Summarize:
| Code Type | Qlerify Type |
|---|---|
string, varchar, text, char |
string |
number, int, float, decimal, bigint |
number |
boolean, bool |
boolean |
Foreign key, relation, @relation |
Set relatedEntity + cardinality |
Nested object, JSON, jsonb |
object |
When creating/updating entities:
isRequired: true for non-nullable fieldsrelatedEntity ($ref path) and cardinality to express entity relationships from the owning entity's perspectiveWhen creating commands:
hideInForm: truefields with relatedEntity ($ref path) to reference related entitiesWhen creating read models:
entity ($ref path)isFilter: true for query parameters, omit for returned data fieldsfields with relatedEntity ($ref path) for return fields that reference other entitiesWhen creating domain event schemas:
entity ($ref path)orderId) so event consumers can correlateplacedAt, confirmedAt)fields with relatedEntity ($ref path) for embedded event data