/bpmnkit:bpmn-scriptfrom bpmnkit
Writes and edits Camunda 8 BPMN processes using `casen build` from text specs or edit modules. Handles forms, linting, and deployment.
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.
Self-sufficient (no dist/*.d.ts search). Do not plan in prose or read other docs: write the spec directly with the Write tool from the template that fits, run casen build <spec> once, fix what it reports.
casen build writes the laid-out .bpmn and a .form per user task, lints like c8ctl and, with --deploy, deploys them.
| Task | Write | Run |
|---|---|---|
| New process, one pool | order.txt (template 1) | casen build order.txt --deploy |
| Pools, lanes, message flows, data | shop.txt (template 2) | casen build shop.txt --deploy |
Change an existing .bpmn | edit.mjs (template 3) | casen build edit.mjs --edit order.bpmn --deploy |
✓ order.bpmn + 2 forms (…) · lint clean · process order, tasks 4, gateways 2, forms 2 · Camunda 8.10.0. It is the proof: do not inspect the XML. Otherwise one ✖ line per problem: fix the spec, run again..bpmn plus the listed .form files, answer in one line. The layout is final: never move DI by hand or render images.-o out.bpmn sets the output. .dmn/.form files after the spec are linted and deployed with it.--deploy goes to ZEEBE_REST_ADDRESS (+ the CAMUNDA_* client variables), else the casen profile, else local Reebe. No casen on PATH? npm i -D @bpmnkit/cli, then npx casen ….# Expense approval | id=expense
[start Expense submitted] > [user Review expense] > [xor Approved?]
Approved? >(Yes: approved = true) [service Pay expense] > [end Expense paid]
Approved? >(No: default) [user Rework expense] > Review expense
[boundary:error Payment failed | on=payExpense error=PAY_FAILED] > [send Notify submitter] > [end Submitter notified]
# Name | id=<process id>: the process id is the deploy key. camunda=8.8 for an older cluster (default 8.10).a > b > c is a path. Declare a node once: [kind Name | attrs]; its id is the name in camelCase ([user Review expense] is reviewExpense), or write id[kind Name]. Later write its id or its exact name. A path that stops gets an end event.start end task user service rule send receive script manual call sub xor and or eventgw catch throw boundary adhoc. Triggers: <event kind>:message|timer|condition|error|signal|escalation|terminate, e.g. start:timer, boundary:error, end:message.gw >(Label: FEEL condition) x per branch, exactly one gw >(Label: default) y. Branches that meet are joined for you; parallel work: and split, and join.fields= gets a field per variable the next decisions read (approved = true → checkbox, amount > 1000 → number, risk = "low" → select). fields=key[:number|checkbox|textarea|date|select(a|b)],… sets them; form=<id> links your own.job= (service, send, message end) is the id kebab-cased (pay-expense); msg= is the name kebab-cased. Other attributes: key=<FEEL> (every message caught after the start) · after=PT1H, every=R/PT1H, at=2026-01-31T09:00:00Z (a timer start takes only a literal date; catch:timer at==<FEEL> a variable) · cond=<FEEL> (last) · error=, signal=, escalation= · on=<task id>, nonint (boundary) · result=<var> · called=<process id> · each=<list var> · in.x=, out.x= · feel=<FEEL> (script, last) · retries=3, header.k=v · assignee= groups=a;b users= due=P2D priority=0-100.decision=<id>, default its name kebab-cased ([rule Assess risk] calls assess-risk). Pass the .dmn too: casen build order.txt risk.dmn --deploy.# Order fulfilment
[annotation Orders ship within two days]
## Shop | id=shop
### Sales
[start:message Order placed] > [service Check stock] > [send Request payment]
Request payment > [catch Payment received | key=orderId] > [sub Pack order]
Pack order {
[start Packing started] > [user Pick item | each=items] > [user Box items] > [end Packed]
}
### Warehouse
Pack order > [user Ship order] > [end Order shipped]
Check stock ..> [store Stock DB]
Ship order ..> [object Packing slip]
[annotation Fragile items get extra padding] ..> Pack order
## Restock | id=restock
[start:condition Stock low | cond=stock < 10] > [service Reorder stock] > [end Stock reordered]
## Bank | blackbox
## Customer | blackbox
Customer ~> Order placed: Order
Request payment ~> Bank: Payment request
Bank ~> Payment received: Payment confirmed
## Name | id=<process id> starts a pool with its own process; ## Name | blackbox a partner pool (id: id= or the name kebab-cased).### Lane: nodes declared after it go in that lane; repeat a header to switch back.a ~> b: label is a message flow between nodes or pools (ids or names) of different pools. A plain start it reaches becomes a message start. A same-name store in several pools is one data store.[object Name] ..> task: the task reads it; task ..> [store Name]: it writes it. objects marks a collection.[sub Name], then Name {, its paths (own start and end), }: an expanded sub-process. Bodies nest.[annotation Text]: on the collaboration before the first ##; [annotation Text] ..> task links it. Ids are global across pools.// Insert a step after "reviewExpense" with an error path that loops back to it.
export default (kit, model) =>
kit.Bpmn.continueProcess(model, "expense")
.insertAfter("reviewExpense")
.serviceTask("validate", { name: "Validate receipt", taskType: "validate-receipt" })
.withBoundary("invalid", { name: "Receipt invalid", errorCode: "INVALID" }, (b) =>
b.userTask("fix", { name: "Fix receipt" }).connectTo("validate"),
)
--edit order.bpmn rewrites it in place: existing shapes and forms stay, shapes right of the insertion move only as needed, new user tasks get forms. --camunda 8.10 sets executionPlatformVersion. kit is @bpmnkit/core, model the parsed file.
continueProcess(model, processId): .insertAfter(id) splices in after id; .at(id) continues from a node without outgoing flow.serviceTask(id, { name, taskType }) · userTask(id, { name, formId, assignee, candidateGroups }) · intermediateCatchEvent(id, { name, messageName, correlationKey: "=orderId" }) or { timerDuration: "PT1H" } · endEvent(id, { name }) · .connectTo(id)..exclusiveGateway(id, { name }).branch("yes", (b) => b.condition("=x > 1").label("Yes")…).branch("no", (b) => b.defaultFlow().label("No")…). Boundary: .withBoundary(id, { errorCode } | { timerDuration } | { messageName, correlationKey }, (b) => …).model and return it. Builder FEEL starts with =; text-spec conditions do not.Event sub-processes, transactions, compensation, groups, nested lanes: write flow.mjs, export default (kit) => kit.Bpmn.createProcess("id")… (pools: createDiagram; .eventSubProcess(id, (b) => …), .transaction(…)), run casen build flow.mjs.
✖ order.bpmn pay: <message> [<rule id>, .bpmnlintrc "<key>"]: the key is c8ctl's rule name. Fix the model; do not silence rules unless the task says so.formId and decision ids must equal the deployed form's and decision's ids. Generated forms already do; a hand-written .form next to the output is used instead.key=; a message start does not. An eventgw is followed only by catch events.casen build refuses what Camunda 8 cannot deploy, one line per problem, - <id>: <message> (zeebe/<rule>), and writes nothing.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>/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>/formWrite or edit a Camunda 8 form (.form JSON) with @bpmnkit/core (create, export, keep ids on edit, validate). Usage: /bpmnkit:form <description>Other plugins' skills for the same job