/bpmn-to-code:setup-bpmn-to-code [gradle|maven|cli]from bpmn-to-code
Sets up bpmn-to-code in a project using Gradle, Maven, or CLI to generate a type-safe Process API from BPMN models, with optional GitHub Actions CI drift check.
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, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Configure bpmn-to-code once per project. The build-tool specifics live in resources/; read only the one that matches.
Build tool, by the first match in the project root (or $ARGUMENTS):
| Found | Resource |
|---|---|
build.gradle.kts or build.gradle | resources/gradle.md |
pom.xml | resources/maven.md |
a *.csproj | resources/dotnet.md |
neither, or a package.json | resources/cli.md |
In a multi-module build, ask which module holds the BPMN files and set it up there.
BPMN files: Glob **/*.bpmn, excluding build/, target/ and node_modules/. Derive filePattern from their common directory.
Engine, from the namespace the BPMN files use, not from the engine name:
| Namespace in the BPMN files | processEngine | Typical engines |
|---|---|---|
xmlns:zeebe | ZEEBE | Camunda 8 |
xmlns:camunda | CAMUNDA_7 | Camunda 7, CIB seven, Fluxnova, Operaton models kept in the Camunda namespace |
xmlns:operaton | OPERATON | Operaton |
If files use different namespaces, one task or execution per group is needed (see the resource).
Output language: src/main/kotlin → KOTLIN, src/main/java only → JAVA, a *.csproj → CSHARP (experimental), a package.json with TypeScript sources → TYPESCRIPT (experimental). The NuGet and npm packages are not published yet; tell the user before setting up either.
Package: suggest <base package>.adapter.process (or .process if the project has no adapter package). Look up the base package from existing sources.
CI: a .github/workflows/ folder means GitHub Actions. Note the workflows that already run on pull requests.
Ask only for what Step 1 could not settle, with the detected value as the default:
src/main/<lang>, for .NET a folder like Generated/): visible in reviews, needs a CI drift check.obj/): never committed, always fresh.bpmn-to-code-testing (recommended). For .NET, offer the BpmnToCodeValidate target from resources/dotnet.md instead.Read <release> from https://repo1.maven.org/maven2/io/miragon/bpmn-to-code-runtime/maven-metadata.xml. All artifacts and the CLI share that version.
Read the matching resource and build the draft from it:
Show the draft and ask: "Apply these changes? (yes / edit / cancel)". Then apply them.
<Process>ProcessApi, ServiceTasks, Messages, ProcessVariables, …If generation fails, read the reported rule violation and point to the element id. Do not disable rules to make it pass.
/migrate-to-bpmn-to-code-apis./create-worker for a service task/create-process-adapter for a start, message, signal or user task callgit status --porcelain, see https://miragon.github.io/bpmn-to-code/guide/verify-in-ci.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