/bpmn-to-code:test-worker <handler class or element id>from bpmn-to-code
Writes unit tests for Camunda job workers, JavaDelegates, or external-task handlers, covering inputs, outputs, BPMN errors, and retries.
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.
Test one inbound adapter in isolation. Mock the use case and the engine objects, and run no engine. The engine-specific test shape lives in resources/.
FlowNodes.<Node>.Variables.X, Errors.X.code), never against string literals. Then a model change breaks the test at compile time.underTest, MockK, confirmVerified@DisplayName, Mockito, verifyNoMoreInteractionsResolve $ARGUMENTS to the handler class. For an element id, find the class that references its ServiceTasks constant. Read the handler and its use case.
Pick the style from the handler's annotations and imports:
| Handler uses | Style |
|---|---|
@ProcessEngineWorker | process-engine-api |
ExternalTaskHandler / @ExternalTaskSubscription | c7-external-task |
JavaDelegate | c7-delegate |
@JobWorker | zeebe |
Then read resources/<style>-<kotlin|java>.md, for example resources/c7-delegate-kotlin.md.
Errors.X.code, and nothing is completed or written.Skip a case only if the handler has no such branch.
Run only this test: ./gradlew test --tests '<TestClass>' or ./mvnw test -Dtest=<TestClass>. Fix the test, not the handler, unless the test exposes a real bug. If it does, report the bug.
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./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.Other plugins' skills for the same job