/simulator:simulator-smart-forms-runtimefrom simulator
Conversationally runs existing Smart Forms (CDU/script/mini-apps) by discovering apps, gathering inputs, filling pages, and submitting data. Use instead of clicking through the UI for wizards, forms, or document workflows.
Ships in simulator. 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.
None: SKILL.md is the whole skill.
You drive an existing Smart Form to completion on the user's behalf — gathering inputs
from the conversation (and any attached document), filling each page's forms, and walking the
flow step by step. You do not build or edit Smart Forms — that is the
simulator-smart-forms author skill.
A Smart Form is a server-driven UI state machine. Corezoid (its backend process) supplies the data, validation, control flow, and side effects (creating actors, running transactions). Your job is the part Corezoid and the GUI can't do: turn an unstructured request into the right field values, ask only for what's genuinely missing, confirm before irreversible steps, and report the result.
Read these references when driving:
$CLAUDE_PLUGIN_ROOT/docs/user-flows/cdu-page-protocol.md — the get/send protocol, the
Page → Grid → Form → Section → Item model, the component catalogue (§5), and the change
protocol (§7). This is the contract you speak.$CLAUDE_PLUGIN_ROOT/docs/user-flows/app-catalog.md — how to discover which app to run
(match intent against each Smart Form's native title + description; tags / linked actors
for scope). No custom catalog format.| Step | Tool(s) |
|---|---|
| Discover the app | filterActors (over the scripts system form) → match intent against each actor's title + description (tags / getRelatedActors to scope); or getActorByRef when the user names it |
| Render a page | appGetPage (accId, ref, envTitle, page, query) |
| Submit a form | appSendForm (accId, ref, envTitle, page, formId, buttonId, data, query) |
| Read an attached document | readAttachment |
| Report a result | buildLink (deep-link to a created actor/record) |
These two — appGetPage / appSendForm — are universal: the same two tools drive every
Smart Form. Nothing about the app is hard-coded; you interpret what the page returns.
1. Discover → choose app → (accId, ref, env, entryPage) # see app-catalog.md
2. page = appGetPage(accId, ref, env, entryPage)
3. loop until the flow ends:
a. Read page.forms[].sections[].content[] → the items to fill (see §4–5 of the protocol).
Read page.notifications[] → messages from the process.
b. Fill a data{} map: itemId → value, from the conversation / extracted document.
Only value-bearing, visible items (edit, select, multiselect, radio, check, toggle,
slider, phone, otp, date, upload, table, …). Respect `required`; honour `options`.
c. Ask the user ONLY for fields that are missing or ambiguous — never re-ask for what
you already know. Use the item `title`/locale to know what each field means.
d. CONFIRMATION GATE — if this submit has side effects (creates actors, moves money,
sends something), show the user a plain-language summary and get an explicit "yes"
BEFORE sending. Reads/navigation need no gate.
e. resp = appSendForm(accId, ref, env, page.id, formId, buttonId, data)
f. Handle resp by code (protocol §2.3):
200 → apply the `changes[]` to your view of the page (§7), read notifications,
continue on the same page (more fields, or a result).
205 → re-render: page = appGetPage(... resp.pageId ...) — a fresh (maybe different) page.
302 → navigate to resp.nextPage (internal page) or report resp.nextPage (external URL).
CARRY resp.query FORWARD: page = appGetPage(..., resp.nextPage, query=resp.query)
g. Self-correct: if notifications contain a validation error, read helperText, fix the
offending field (re-ask the user if needed), and re-submit the SAME formId.
4. Report: summarise success notifications and give a buildLink to what was created.
query across navigation — otherwise the session is lostA 302 answers {nextPage, query}, and that query is how a Smart Form carries per-session
state: the page protocol is stateless, hidden carrier fields survive a submit but not a
navigation, so a login handler typically returns the session in query and every later page reads
it as body.query.*.
So: pass resp.query straight into the next appGetPage(query=…), and pass the query you rendered
a page with into appSendForm(query=…) when you submit on it. Drop it and the next page renders as
if the user had arrived cold — you will see empty fields, "—" placeholders, or an empty table, and
it looks like a backend bug rather than a missing argument.
resp = appSendForm(..., page="index", buttonId="login_btn", data={…})
# → {code: 302, data: {nextPage: "home", query: {token: "…", cardCode: "…"}}}
page = appGetPage(..., page="home", query={"token": "…", "cardCode": "…"}) # ✅ logged in
page = appGetPage(..., page="home") # ❌ renders cold
Both tools put the object in the URL query string (?token=…&cardCode=…, exactly as the renderer
does) — including appSendForm, whose POST handler reads the query off the URL and forwards it to
the process as body.query. You pass the same shape either way.
A session token in the query is visible in the page URL. That is the platform's own documented pattern and fine for a token, but it is the reason a password must never be put there — see
app-generation.md§4.1a.
Detecting the end of a flow: the flow is done when a submit yields a terminal signal — a success notification with no further form to fill, a 302 redirect to a result/landing page, or a page with no submittable form. Don't loop forever; if a page repeats unchanged after a submit, stop and report what the process said.
Each item carries id (the key you submit under), class (the component), value,
visibility, required, and options. Map your data to the item id. Key components
(full catalogue in protocol §5):
edit (text/email/int/float/phone/multiline/date/password) — a scalar value.select / radio — one value from options[] (match by option value/label).multiselect — an array of option values.check / toggle — boolean.upload / attachment / signature / file — file values.button — carries the buttonId you submit with (and may carry buttonData).label / divider / image / table (display) — read for context; usually not submitted.If a field's meaning is unclear from its title/locale, ask the user rather than guessing.
The high-value case: the user drops a document and says "create smart contracts from this". The document is unstructured; the app's forms are structured. You bridge them.
1. Read the document:
getActorAttachments(<reaction or actor id>) → fileName(s)
readAttachment(fileName) → the document content
2. Extract structured records (this is YOUR job, not the platform's):
parse the document into N records, each a {field: value} map aligned to the app's inputs.
One document may describe several contracts → segment into N records. Keep a per-record
note of what you could NOT find (missing/uncertain fields).
3. Discover the app ONCE (title/description match), then for EACH record run the drive loop
above, prefilling the record's extracted values.
4. Gap-fill in BATCH: collect the missing/ambiguous fields across all records and ask the user
once (e.g. "currency is missing for Acme and Globex — which?"), not record-by-record.
5. BATCH CONFIRMATION GATE: show a compact summary of all N records (the key fields you will
submit) and get one explicit "yes" before sending the series. This is mandatory — each
submit creates real actors / transactions.
6. Run the per-record submits. On a per-record error: read its notifications, fix if you can,
otherwise SKIP that record and continue the rest — never abort the whole batch silently.
7. Aggregated report: "created N (links: …); M skipped (reason …)". Give a buildLink per
created record.
Rules for extraction:
select/radio
options (e.g. a currency string → the matching option), don't invent option values.When triggered from a reaction, you carry the reaction author's identity, so app access
(sharedWith / appSettings.groups) self-scopes — no extra auth wiring. Conduct the dialog as
reactions: ask clarifying questions and the confirmation gate as ai replies; the user's
follow-up reaction continues the same flow. Finish with a clear result + buildLink.
simulator-smart-forms. To generate a whole new app from a set of existing
Corezoid processes, switch to simulator-app-generator.send (created actors, money).
Show a summary; get an explicit yes.production unless the user is testing develop.code/nextPage rather than guessing the flow.notifications (success and error) to the user;
self-correct on validation errors instead of silently retrying.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
smart-forms, form-filling, workflow-automation, cdu, conversational-ui
npx claudepluginhub corezoid/simulator-ai-plugin --plugin simulator21 skills in this plugin
/simulatorUniversal Simulator.Company platform assistant. Use when the user asks anything about Simulator.Company, wants to work with the Simulator API, mentions actors, forms, graphs, layers, accounts, transactions, or any other Simulator entity. Also use when the user asks to "use simulator", "call the simulator API", or needs to manage business processes in Simulator. This skill provides deep knowledge of the platform model and guides you to use the simulator MCP tools correctly.
/simulator-accessSimulator.Company access-control specialist — who can view/modify/remove/sign/execute an object (actor, form, account, template, tree layer). Use when the user wants to share or unshare an object, grant or revoke permissions, list who has access, or bulk-share. Activate when the user says "share this with", "give access to", "grant permission", "revoke access", "who can see/edit this", "set permissions", "make read-only", "поділись з", "надай доступ", "забери доступ", "хто має доступ", "права доступу", "дай доступ", "открой доступ", "отзови доступ", "кто имеет доступ", "права доступа". Also activate when a tool fails because the caller has NO access to an object — "request access", "I can't see this actor", "access denied", "403", "no permission", "запроси доступ", "немає доступу", "немає прав", "відмовлено в доступі", "запроси доступ", "нет доступа", "доступ запрещён". For the object's own data use the domain skill (`simulator-actors` / `simulator-forms` / `simulator-finance`).
Other plugins' skills for the same job