/qlerify:connector-buildingfrom Qlerify
Builds, tests, fixes, and schedules Qlerify Live connectors that populate workflow tables from sources like HubSpot, Postgres, or APIs. Use when users need data ingested, connectors created or debugged, or tables synced.
Ships in Qlerify. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Qlerify Live runs a Qlerify workflow model as a live app. Each entity in the model becomes a table. A connector is a small JavaScript module that fills one table from a source. After every ingest the platform works out which domain events the landed rows imply and groups them into cases, one case per end-to-end run of the workflow. So a connector is only right when its rows produce the right cases and events, not merely when rows land.
You work through the Qlerify Live MCP server. Every tool except list_workflows and create_workflow takes a
workflowId. When the user wants a whole live view, from modeling to a figure and a link, the live-view skill runs
the full path and uses this one for the connectors.
If no qlerify-live tools are available, the MCP server is not connected. Tell the user: in Qlerify Live, open
Organization admin, then the MCP tab, create a token, and run the command it shows. Building connectors needs
organization admin rights, so a refusal that names a permission means the token's owner lacks them.
list_workflows, then get_workflow_definition for the one the user means. It lists every
event in order with its acceptance criteria (Given/When/Then) and every entity with its fields and allowed values.
Those acceptance criteria are the spec your connectors must satisfy. Then list_model_kinds shows the tables per
system and the connectors already on them, and list_table_rows shows what a table already holds. If the model is
in the modeler but not yet in Live, load it first with create_workflow: once with dryRun: true, which reports
problems without creating anything, then without.orderId holding an Order.id). So fill parents before children: the root table first, then the tables that
point at it, and so on down. A table no event is rooted on is reference data; fill it before any connector that
reads it. A table its read models describe gets one connector per read model, and a table no read model
describes one for the whole table (connector-rules section 13). Repair an existing one instead of creating a
second.create_connector, credentials if the source needs them,
get_connector_brief, a read model's filters (connector-rules section 13), write the code, test_connector_code
until it is right, save_connector_code, set_connector_date_roles, build_trigger_rules for every step in the
connector's eventsNeedingRules (connector-rules section 7), adapter_dry_run, then ingest_connector with a
small first batch. Check it, then
ingest the rest without a limit: a connector that copies a source loads all of it in the background, and
get_connector_load follows it. Pass any other connector a limit above the table's size, since without
one it lands 25 rows. Check the table, or build the tables that link to it, once get_adapter_config shows
completeAt (connector-rules section 12). That first batch lands for real: if checking it makes you change the
row ids or the linking, empty the table with clear_table before ingesting again, since an ingest never removes
rows. Details in "Writing a connector".references/connector-rules.md, "Keeping connectors running".Tell the user briefly which table you are on and what you found. Do not stop to ask permission for steps the user already asked for; "When to ask" lists the exceptions.
Write the code yourself. get_connector_brief returns exactly what the platform's own code writer is told: the
target fields with their descriptions and allowed values, the read models the workflow reads from this table, the
events this table drives with their acceptance criteria, real ids from parent tables, fields already seen at the
source, and the code contract (fetchRows(ctx), what ctx offers, the re-run rules). Follow it: it is the contract
the platform runs your code against.
test_connector_code runs the code you pass, unsaved, in the platform's sandbox, against the live source and real
snapshots of the workflow's tables, and saves nothing. Iterate with it. Read missingRequired,
missingReadModelFields (fields a read model lists that no returned row carries), the error and the trace;
extraFields are source fields the model does not declare, which are kept, not an error. A test is a full
pull from the first row: to try the next batch of a connector that returns more: true, pass the cursor the
test returned. For a read model it also reports readModelProblems, and takes given for the filters given each
time and lookup to run lookupRows for some ids.save_connector_code stores the code. Pass instructions: a plain description of the source and of what the code
does, including filters and re-run behaviour. It replaces the stored description, so send the whole of it every
time. A later rebuild works from it.set_connector_date_roles next: which fields hold the source's creation date and last-change date, and in
events, each step whose own date the source records mapped to that field ({"Order Shipped": "shippedAt"}).
Saving code does not work these out. Without them event dates fall back to a guess, and a step that is not mapped
shares its row's last-change date, which makes lead times near zero. Events already in the log keep their dates
until rebuild_events.adapter_dry_run runs the saved connector the way an ingest will, still landing nothing: the last check before
ingest_connector. Use test_connector_code while you are still changing the code.build_connector makes the platform's AI write the code from instructions instead. Use it only when you cannot
write and test code yourself: it is slower and it bills the organisation.The rules that matter most in the code: authenticate only from ctx.credentials, and keep secrets out of the code,
log lines and returned rows (a stored credential value in a tool result shows as [credential <field> hidden]);
pass a token the code gets while running (a sign-in, OAuth or installation token) through ctx.hide, in a
connector or a listener: const token = ctx.hide(await signIn()); return every field the source has, not just the
model's; give each row a stable id taken from the source's natural key; return at most ctx.limit rows, which is
always a number. The brief has the rest.
Keep going without asking for anything the user asked you to do. Stop and ask first when:
actuator: say
so, name the system, and get a yes before create_connector. Running it performs those actions for real, whether
through ingest_connector or a test with confirmActions, so say what the first run will do and get a yes first.remove_connector; clear_table on a table holding data you did not load yourself, or
on an actuator's table, whose rows are the record of the actions it took, so its next run may take them again (the
tool refuses that without confirmActions); reimport_connector, which empties a table already in use;
reload_model with rebuild: "full"; or reload_model answering needsConfirmation because stored values would
be lost.request_connector_credentials: one field per value, a label in plain words, a hint on where to find it, and
optional: true for a value the connector code works without. Give the user the formUrl it returns: they enter
the values in Live's form, so the values never pass through this conversation. Once they say they have saved,
check that list_connector_credentials shows no missingFields. Only if the user prefers to paste values here,
store them with set_connector_credentials, which replaces everything stored before, and tell them first that
pasted values pass through the AI. When another connector already holds them, list_connector_credentials and
copy_connector_credentials reuse them without anyone typing them again.A connector is done when the cases are right.
list_table_rows: the rows are there, the fields are filled, the values look like the source.list_cases: one case per row of the workflow's root table, with how far each has come. count is the total, and
the list comes in pages; nextOffset fetches the next one. Pass summary: true to get only each case's id and
progress; get_case_details takes it too and leaves out source records and event payloads.find_case also matches rows of other tables and returns the case they belong to, naming the row in matchedVia.get_case_details and check that the child
events are there and belong to that parent. A child whose linking field does not match a parent id exactly joins
no parent's case, and nothing reports it.get_case_details on a few cases: the events that fired should match each row's state. An order that is only
placed must not have a "shipped" event.rebuild_events emits none for the table), check
the model before anything else. A step without a command is never worked out from data, and trigger rules are
refused for it: reload_model and rebuild_events name such steps in eventsWithoutCommand. Every step fires
only from its trigger rule, so a step listed in eventsNeedingRules stays empty until one is built. Then check
each rule against its step's acceptance criteria and, for a dated step, its date role. Fix the model ("When the
model is wrong").build_trigger_rules, passing what was wrong as errorReport, check each with preview_trigger_rule
and read its code with view_trigger_rules, then run rebuild_events. Ingesting again only adds events; it never
removes wrong ones.clear_table and an ingest do it. On a table
already in use, run reimport_connector: it empties that one table, fetches every connector that fills it again,
looks up the records that are in none of its lists any more, and works its steps out again as history, so no
listener acts on them. It answers first with what it will empty: tell the user that and wait for their yes before
calling again with confirm: true, then report gone, more and failures from its answer.list_table_rows with your
test output and tell the user if the platform changed the value.get_lead_time gives the median and P85 lead time over the cases, with how many it measured and left out, and
reportsUrl, the Reports page with the same window; groupBy splits it by a field of the case's record. Use it
for any figure over many cases rather than adding up events case by case. export_case_timeline returns each
case's steps with their dates, a page at a time, for a figure it does not give.list_cases, find_case, get_case_details, get_event_log) group events by the workflow's own
case unless you pass caseType, and that default view is the one to check connectors in. Another entity as
caseType regroups the same events around that object, one case per order for instance: an event can then sit in
several cases, and events no case of that type holds are left out. Use the same caseType in every call of one
check, or the answers will not line up.Data sometimes shows the model is missing something: a field the source has and the events need, a status value the model does not allow, an event that never fires because nothing in the rows can show it. Do not bend a connector to hide that. Tell the user what you found, and once they agree:
qlerify server, with this plugin's
workflow-creation skill). list_workflows in Live gives each workflow's modelLink, and
https://app.qlerify.com/workflow/<projectId>/<workflowId> names the modeler workflow to edit.reload_model in Live. It reconciles tables in place. If it answers needsConfirmation, tell the user which
stored values would be lost before calling it again with confirm: true.reload_model already works the events out again when
the change affects them. If acceptance criteria behind trigger rules changed, compile those rules again with
build_trigger_rules, then run rebuild_events. A connector whose table was renamed or removed moves to the new
table with repoint_connector; check its code against that table before the next ingest. If its polling stopped
because the old table was gone (get_adapter_config shows the reason in its schedule), turn it back on with
set_connector_schedule.get_connector_history or list_table_rows before running it again, or it may happen twice. A
connector's own run is killed at 180 seconds (connector-rules section 12).[credential <field> hidden] in a result: a stored credential's value was there. Never write the placeholder into
code: read the value from ctx.credentials.<field>, and stop logging or returning it.[hidden value] in a result: a value the code passed to ctx.hide was there. Stop logging or returning it: a run
whose rows or cursor hold it fails, and ctx.ai refuses a prompt that holds it.adapterId that create_connector returned. The optional id you pass it is only a short
name.Read references/connector-rules.md before the first connector of a session. It covers in depth the connector types,
the questions to settle before building, linking rows into cases, re-run behaviour, demo data, value objects, trigger
rules, reading other tables and the event log, AI inside a connector, keeping connectors running, read-model
connectors and listeners.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
qlerify-live, connectors, data-ingestion, workflow-automation
npx claudepluginhub qlerify/qlerify-plugins --plugin qlerify6 skills in this plugin
/code-generationGenerate 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)./downloadThis 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.
/live-viewTurn a business process and the data behind it into a live view in Qlerify Live, from one request: model the workflow in the Qlerify modeler, load it into Qlerify Live, build and run the connectors that fill it, then answer with figures such as the median lead time and give a link to the dashboard. Use it when the user asks for a "live view", a "dashboard" or "KPIs" of a business process and its data, "lead time" or "cycle time" of a process, "track this process with our data", "use the open data", or "show the workflow with real data", also when they do not name Qlerify or Live. It needs the Qlerify Live MCP tools, and the Qlerify modeler MCP tools to build a new view./syncKeep a codebase and its Qlerify domain model in agreement, in both directions. Use when the user asks to "sync domain model", "update Qlerify", "push changes to Qlerify", "sync schemas/entities/domain events", or after implementing features that add or change entities, API endpoints, commands, domain events, database schemas, migrations, or Prisma/GraphQL types — sync applies that code drift into the Qlerify model. Also use when the Qlerify model has been edited (new entities, changed commands, new acceptance criteria) and the code needs to catch up — sync detects the model-side drift and hands off to the code-generation skill. For brownfield/legacy codebases with unclear boundaries, isolate one aggregate at a time first (the workflow-creation skill's Phase 0 covers aggregate extraction)./workflow-creationCreate, 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.