Simulator Smart Forms Runtime 标志

Simulator Smart Forms Runtime

组织
corezoid
simulator-smart-forms-runtime

Simulator.Company 智能表单运行时驱动器——代表用户以对话方式运行/执行现有智能表单(CDU/Script/小型应用),而不是让用户自行点击界面。当用户想要走完智能表单流程时使用:创建/提交应用生成的内容(例如智能合约)、填写表单、完成多步骤向导,或将文档提交给应用。它与负责构建表单的 `simulator-smart-forms` 编写技能相对应。遇到“run the app”“use the smart form”“fill the form”“create a smart contract”“submit”“go through the flow”“complete the wizard”“запусти застосунок”“пройди смартформу”“заповни форму”“створи смарт контракт”“оформи договір”“запусти приложение”“заполни форму”或“создай смарт контракт”时触发。

Add to TypingMind

概览

发布者corezoid
代码仓库simulator-ai-plugin
技能名称simulator-smart-forms-runtime
星标数
61
复刻数
13
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 corezoid 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Simulator Smart Forms Runtime AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/corezoid/simulator-ai-plugin/tree/main/plugins/simulator/skills/simulator-smart-forms-runtime
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/corezoid/simulator-ai-plugin.git /tmp/simulator-ai-plugin
mkdir -p .claude/skills
cp -r /tmp/simulator-ai-plugin/plugins/simulator/skills/simulator-smart-forms-runtime .claude/skills/simulator-smart-forms-runtime
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Simulator Smart Forms Runtime,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Simulator Smart Forms Runtime。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Simulator Smart Forms Runtime 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Simulator.Company Smart Form Runtime

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.

Tools you use

StepTool(s)
Discover the appfilterActors (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 pageappGetPage (accId, ref, envTitle, page, query)
Submit a formappSendForm (accId, ref, envTitle, page, formId, buttonId, data, query)
Read an attached documentreadAttachment
Report a resultbuildLink (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.


The drive loop

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.

Carry the query across navigation — otherwise the session is lost

A 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.


Filling forms — reading the components

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.


Entry modes

  • Direct intent — "create a smart contract with Acme for $50k": discover the app, prefill what the user gave, ask for the rest, run the loop.
  • Named app — "open the onboarding app": resolve the ref directly and run.
  • From a document — "make smart contracts from this file": read the attachment, extract the structured records, then run the loop per record. (Detailed below.)

Document → many records (batch)

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:

  • Show, don't assume. Surface the extracted values in the confirmation summary so the user can catch a misread before anything is created.
  • Never fabricate a required field. If you can't find it and can't infer it safely, ask.
  • Respect the form's options. Map extracted values onto the page's select/radio options (e.g. a currency string → the matching option), don't invent option values.

In the reaction → AI-agent context

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.


Key rules

  • You run apps; you don't edit them. For building/editing pages, switch to simulator-smart-forms. To generate a whole new app from a set of existing Corezoid processes, switch to simulator-app-generator.
  • Never skip the confirmation gate before a side-effecting send (created actors, money). Show a summary; get an explicit yes.
  • Prefer production unless the user is testing develop.
  • Ask for the minimum. Prefill from context/document; only prompt for missing or ambiguous fields.
  • Trust the protocol, not assumptions. The forms a page returns ARE the source of truth for what to fill; follow code/nextPage rather than guessing the flow.
  • Surface what the process says. Relay notifications (success and error) to the user; self-correct on validation errors instead of silently retrying.
  • Respond in the user's language; keep these instructions' logic intact.

常见问题

Simulator Smart Forms Runtime AI 技能有什么作用?

Simulator.Company 智能表单运行时驱动器——代表用户以对话方式运行/执行现有智能表单(CDU/Script/小型应用),而不是让用户自行点击界面。当用户想要走完智能表单流程时使用:创建/提交应用生成的内容(例如智能合约)、填写表单、完成多步骤向导,或将文档提交给应用。它与负责构建表单的 `simulator-smart-forms` 编写技能相对应。遇到“run the app”“use the smart form”“fill the form”“create a smart contract”“submit”“go through the flow”“complete the wizard”“запусти застосунок”“пройди смартформу”“заповни форму”“створи смарт контракт”“оформи договір”“запусти приложение”“заполни форму”或“создай смарт контракт”时触发。

为什么在 TypingMind 中使用 Simulator Smart Forms Runtime?

因为您只需安装一次,就能搭配任何模型使用。Simulator Smart Forms Runtime 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Simulator Smart Forms Runtime?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/corezoid/simulator-ai-plugin/tree/main/plugins/simulator/skills/simulator-smart-forms-runtime。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Simulator Smart Forms Runtime?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Simulator Smart Forms Runtime 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Simulator Smart Forms Runtime 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Simulator Smart Forms Runtime AI 技能免费吗?

是的。corezoid 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇