/bpmn-to-code:create-process-adapter <start|message|signal|user-task> <process id, message, signal or element id>from bpmn-to-code
Adds an outbound port and process adapter method for starting or continuing a BPMN process (start, message, signal, user task). Use when application code needs to call a process engine.
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 outbound call to the engine. The application talks to a port in its own language (domain types, business verbs). The adapter turns that into the engine command. The engine-specific command shape lives in resources/.
Names come from the generated API only:
<Process>ProcessApi.PROCESS_IDMessages.XSignals.XFlowNodes.<UserTask>FlowNodes.<Node>.Variables.XNo string literals. A missing name means the model does not declare it: say so and stop.
Ports speak domain: parameters are domain types, and the adapter converts them to engine values.
Never edit generated files.
bpmn-cli: run bpmn --version once. If it fails, use npx -y @miragon/[email protected] wherever this skill says bpmn. Without Node, read the BPMN XML instead.
Resolve $ARGUMENTS to one of these:
| Call | Generated name | Read from the model |
|---|---|---|
| start | PROCESS_ID, or Messages.X for a message start event | the start event's variables |
| message | Messages.X | the catching element: bpmn show <file> <id> shows its correlation key |
| signal | Signals.X | the elements that use it: used by: in bpmn show <file> <signal-id> |
| user task | FlowNodes.<UserTask> | its output variables |
Without bpmn, read the BPMN XML.
Pick the style by the first match in the build files:
| Dependency | Style |
|---|---|
dev.bpm-crafters.process-engine-api | process-engine-api |
…external-task-client… or a generated engine REST 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/process-engine-api-kotlin.md.
Look in application.port.outbound first and follow the existing pattern:
| Project has | Do |
|---|---|
one port per process (e.g. LeasingProcess with several methods) | add a method to it |
| one port per call | add a new port |
| nothing yet | recommend one port per call, and let the user decide |
One port per call:
StartBikeLeasingPort.startBikeLeasing(applicationId) or NotifyContractSignedPort.notifyContractSigned(applicationId).notify would clash, and in Java notify collides with Object.notify.Port / Process).Adapter: one <Process>ProcessAdapter per process in adapter.outbound.<engine> implements every port of that process.
Follow the resource for the call type. It covers:
Call the port from the application service after the domain state is saved.
/test-process-adapter <AdapterClass>. A test of the process path the call triggers 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-workerImplements one BPMN service task as a job worker, JavaDelegate or external-task handler that calls one use case, with names from the generated Process API. Use when a service task or job type needs code that handles it./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./setup-bpmn-to-codeSets up bpmn-to-code in an existing project with the Gradle plugin, the Maven plugin or the CLI, so the build generates a type-safe Process API from the BPMN models, with an optional GitHub Actions check that the committed API is up to date. Use when adding bpmn-to-code or BPMN code generation to a project, or a CI check for a stale generated API./test-processWrites one process test that runs a BPMN scenario on a test engine and asserts the walked path as a typed ProcessPath. Use when testing a process path, a gateway branch, a boundary event or a timer./test-process-adapterWrites the unit test for one process adapter method and asserts the engine command: process, message or signal name, correlation and variables. Use when testing a process adapter or after create-process-adapter.Other plugins' skills for the same job