plugins/mcp-companion/skills/sync/SKILL.md
This skill should be used when the user asks to "sync domain model", "update Qlerify", "push changes to Qlerify", "sync schemas", "sync entities", "sync domain events", or after implementing features that add or change entities, API endpoints, domain events, database schemas, migrations, or Prisma/GraphQL types. For brownfield/legacy codebases with unclear boundaries, isolate one aggregate at a time before running broad sync operations (the workflow-creation skill's Phase 0 covers aggregate extraction). Syncs the local codebase's domain model with Qlerify.
npx skillsauth add qlerify/qlerify-plugins syncInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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 datadevelopment
Generate production-ready code from a Qlerify domain model. Use when the user asks to "generate code from the model", "implement the workflow", "scaffold from Qlerify", "build the aggregate", "code up the domain model", "create the app from the model", or after a workflow has been modeled or extracted and the next step is producing runnable code on a target tech stack. Pairs with the workflow-creation skill (which produces the model) and the sync skill (which keeps model and code aligned over time).
tools
Create, extend, validate, and improve Qlerify workflow diagrams and domain models, including domain events, roles, read models, commands, policies, aggregates, entities, value objects, attributes, given-when-then scenarios, bounded contexts, and invariants. Use when the task involves event storming, event modeling, domain-driven design (DDD), specification-driven development (SDD), model-driven development (MDD), software modeling, domain modeling, process modeling, legacy modernization, reverse-engineering code into a model, generating code from a model, or any direct use of the Qlerify modeling tools.
development
This skill should be used for planning when the user asks to create a workflow or domain model from an existing or legacy codebase, including requests like "reverse engineer the codebase", "document or model a legacy application", or "build a workflow from this code". Recommend isolating one DDD aggregate at a time, using one Qlerify workflow per aggregate, and following this skill's steps when PLANNING the work. This is a planning/preparation skill that should usually run BEFORE workflow-creation or sync in reverse-engineering scenarios. Produces a standalone aggregate plan (root entity, related entities, value objects, commands, optional domain events, read models, attributes, invariants, external references) for review before modeling in Qlerify.
tools
This skill should be used when the user asks to "save to file", "download", "export", "store in file", or any request that involves getting data from Qlerify and saving it locally. Bypasses AI processing and is ~100x faster than MCP tools for large data exports.