Smart Form Backend Logic
You orchestrate the Corezoid process(es) that make a Simulator.Company Smart
Form interactive. Layout, i18n, styles, and viewModel defaults live in the Smart
Form actor itself (see the simulator-smart-forms skill). Everything dynamic
— initial viewModel, page transitions, submit handling, notifications, write-backs
to actors — runs in Corezoid.
This skill does not author processes itself. Instead it:
- Confirms the Corezoid plugin is installed and its skills are available.
- Translates the user's intent into precise briefs in the exact format
corezoid-create / corezoid-edit expect (purpose · inputs · expected output
· process type · concrete node skeleton).
- Invokes the matching Corezoid skill with that brief and lets it run
create-process / push-process / lint-process / run-task.
- Provisions an API key (
create-api-keyfor a new one, orfind-principal
for an existing apiLogin) and shares the bound process to it
(share-object) so the Smart Form runtime can call it.
- Finally binds the process to the Smart Form env (
createSmartFormor
updateSmartFormEnv) via the simulator MCP server.
0. Preflight — confirm the Corezoid plugin is installed
Before producing any brief, verify the Corezoid plugin is available in this
session:
- Check whether the
create-process,push-process,create-alias,
create-api-key, find-principal, and share-object MCP tools are listed
in the tool registry. If they are, the corezoid MCP server is running.
(create-api-key / find-principal / share-object are needed by Step E
below — provisioning the API key the Smart Form runtime authenticates with.)
- Check whether the
corezoid-create,corezoid-edit, and (optionally)
corezoid-access skills are reachable (they appear in the available-skills
list when installed).
- If either is missing, stop and instruct the user (reply in the user's
language):
> "This workflow needs the Corezoid plugin. Install it from