/bpmn-to-code:create-worker <element id or job type>from bpmn-to-code
Generates BPMN job worker, JavaDelegate, or external-task handler code for a single service task, translating engine data to domain types and calling one use case.
Ships in bpmn-to-code. 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.
Read when SKILL.md points to them.
Write one inbound adapter: the class the engine calls for one BPMN element. It translates engine data into domain types, calls one use case, and translates the result back. The engine-specific code shape lives in resources/.
Names come from the generated API only:
ServiceTasks.XFlowNodes.<Node>.Variables.X.value in code, or ProcessVariables.X where an annotation needs a compile-time constant (@Variable(name = …))Errors.X.codeNo string literals. If a name is missing from the API, the model does not declare it. Tell the user what to declare in the model (Zeebe I/O mapping, Camunda 7 additionalInputVariables / additionalOutputVariables), regenerate, then continue.
One handler per element, one use case per handler. No business logic in the handler.
Error mapping: a business error that the model catches with an error boundary event becomes a BPMN error with Errors.X.code. Everything else is a technical failure and goes to retry or incident.
Never edit generated files.
*ProcessApi.kt / *ProcessApi.java next to ServiceTasks. If it is missing, run /setup-bpmn-to-code first. If it is older than the BPMN file, regenerate.$ARGUMENTS (element id or job type) to its FlowNodes.<Node> and its ServiceTasks constant.FlowNodes.<Node>.VariablesFlowNodes entries that are a BoundaryEvent<Node> and an ErrorEvent; their error is the Errors.X to throw.Pick the style by the first match in the build files:
| Dependency | Style |
|---|---|
dev.bpm-crafters.process-engine-worker / process-engine-api | process-engine-api |
…external-task-client… (Camunda 7, CIB seven, Operaton) | c7-external-task |
…bpm-spring-boot-starter… of Camunda 7, CIB seven, Operaton or Fluxnova | c7-delegate |
io.camunda:camunda-spring-boot-starter / spring-boot-starter-camunda-sdk | zeebe |
Language: Kotlin if the existing adapters are .kt, else Java. Then read resources/<style>-<kotlin|java>.md, for example resources/zeebe-kotlin.md.
Follow what the project already does. Read one existing handler of the same kind (base class, package, naming, logging) and copy its shape over the resource's default where they differ.
application.port.inbound, suffix UseCase) that does the work.Follow the resource. Place it in adapter.inbound.<engine> (or the package existing handlers use) and name it after the element (OrderBikeWorker, OrderBikeDelegate). Wire it to the engine the way the resource shows, e.g. the delegate expression bean name or the topic subscription.
./gradlew compileKotlin / compileJava, or ./mvnw compile./test-worker <HandlerClass>. Behaviour across several elements is /test-process.resources/c7-delegate-java.md (opens in a new tab)resources/c7-delegate-kotlin.md (opens in a new tab)resources/c7-external-task-java.md (opens in a new tab)resources/c7-external-task-kotlin.md (opens in a new tab)resources/process-engine-api-java.md (opens in a new tab)resources/process-engine-api-kotlin.md (opens in a new tab)resources/zeebe-java.md (opens in a new tab)resources/zeebe-kotlin.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub miragon/bpmn-to-code --plugin bpmn-to-code8 skills in this plugin
/create-process-adapterAdds one call from the application to the process engine (start a process, correlate a message, send a signal, complete a user task) as an outbound port and process adapter method. Use when code has to start or continue a BPMN process./generate-rule-to-enforce-bpmn-styleguideTurns one rule of a BPMN_STYLE_GUIDE.md into a Kotlin validation rule for bpmn-to-code-testing and registers it in the model validation test. Use when a modeling convention should be enforced in the build./migrate-to-bpmn-to-code-apisReplaces hardcoded BPMN element ids, job types and message names with references to the generated Process API, or rewrites 5.x API references to 6.x with --from-5x. Use when moving code onto the Process API or upgrading to bpmn-to-code 6.Other plugins' skills for the same job