/bpmnkit:formfrom bpmnkit
Creates and edits Camunda 8 forms (.form JSON) using @bpmnkit/core. Handles form creation, export, editing with ID preservation, and validation.
Ships in bpmnkit. 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.
Task: $ARGUMENTS
Follow this card. Start from its template or script, change it to fit the task, run it, and fix every lint error before you finish.
Write a Camunda 8 form (.form JSON) with @bpmnkit/core in one script: create, export, edit, validate. Run it with node --experimental-strip-types build.ts (Node 22.6+) or npx tsx build.ts. Never write form JSON by hand.
import { readFileSync, writeFileSync } from "node:fs"
import { Form, exportFormPreserving } from "@bpmnkit/core"
// 1. Create. "review-order" is the form id a userTask or startEvent references as formId.
const form = Form.create("review-order")
.text("## Review order")
.textfield("Customer", "customer", { validate: { required: true } })
.select("Decision", "decision", {
values: [
{ label: "Approve", value: "approve" },
{ label: "Reject", value: "reject" },
],
validate: { required: true },
})
.textarea("Comment", "comment")
.checkbox("Notify customer", "notify")
.build()
// 2. Export.
writeFileSync("review-order.form", Form.export(form))
// 3. Edit an existing file: parse, change, write with exportFormPreserving to keep key order and ids.
const original = readFileSync("review-order.form", "utf8")
const edited = Form.parse(original)
edited.components.push({
id: "Field_note",
type: "text",
text: "Reviewed orders ship the same day.",
})
writeFileSync("review-order.form", exportFormPreserving(original, edited))
// 4. Validate: it parses back with the id the process references.
const check = Form.parse(readFileSync("review-order.form", "utf8"))
if (check.id !== "review-order") {
console.error(`form id is ${check.id}, expected review-order`)
process.exit(1)
}
npm i @bpmnkit/core. The script writes review-order.form, re-opens it, adds a component without reordering the rest, and checks the form id.
Form.create(id) … .build() returns a FormDefinition; Form.export(form) gives the JSON.(label, key, options): textfield, textarea, select (values or valuesKey), checkbox; radio(label, key, values).text(markdown) is static text; group(label, (g) => g.textfield(...)) nests fields.options.validate: { required, minLength, maxLength }; defaultValue; id for a fixed component id.8.10.0; override with .executionPlatformVersion("8.8.0").Form.parse(json) → form.components.userTask(id, { zeebeUserTask: true, formId: "review-order" }) and startEvent(id, { formId }) must equal Form.create("review-order"), the JSON id, not the file name..form before an instance reaches the task. formId binds to the latest deployed form with that id: casen deploy deploy review-order.form first. With formBindingType: "deployment" it must be in the same deployment as the process.key is the process variable the field reads and writes. Keep keys equal to the variable names the process and its gateways use; a typo silently creates a new variable.zeebeUserTask: true) for a linked form; Camunda 8.10 deprecates job-worker user tasks.exportFormPreserving(original, edited); it keeps key order and component ids, so the diff shows only your change.The script re-parses the file and checks the form id. Before deploying, run casen check review-order.form order.bpmn --deploy: it lints the form and checks that every formId in the .bpmn names a form. Check by hand that each key is a variable the process expects.
Related cards: casen agent-card bpmn, casen agent-card dmn. More: npx bpmnkit-docs ask "form on a start event".
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub bpmnkit/bpmnkit --plugin bpmnkit12 skills in this plugin
/agentDesign and add a Camunda AI Agent Sub-process to a new or existing BPMN process — model, prompts, tools, and a mocked test scenario. Targets Camunda 8.10 (AI Agent Sub-process v2). Usage: /bpmnkit:agent [file] <description>/bpmn-scriptWrite or edit a Camunda 8 BPMN process with one `casen build` command (text spec or edit module; forms, lint and deploy included). Usage: /bpmnkit:bpmn-script <description>/connectWire an existing BPMN step to an external service via a Camunda connector template. Usage: /bpmnkit:connect <file> <step-id> <service>/deployGate a BPMN process on deploy-readiness, then deploy it to local Reebe or Camunda 8. Usage: /bpmnkit:deploy [file.bpmn] [--local|--camunda]/dmnWrite or edit a Camunda 8 DMN decision table with @bpmnkit/core (create, export, keep layout on edit, validate). Usage: /bpmnkit:dmn <description>/extendExtend an existing BPMN process from a natural-language change request — lifts it to a plan, applies a targeted delta, and merges. Usage: /bpmnkit:extend <file.bpmn> <change request>Other plugins' skills for the same job