/bpmn-to-code:generate-rule-to-enforce-bpmn-styleguide [rule-slug]from bpmn-to-code
Generates a Kotlin validation rule from a BPMN_STYLE_GUIDE.md entry and registers it in the model validation test for bpmn-to-code-testing.
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.
Turn one rule of BPMN_STYLE_GUIDE.md into a Kotlin rule for bpmn-to-code-testing. The class template and what a rule can read are in resources/rule-template.md.
validation: deterministic → generate the rule.validation: hybrid → generate the deterministic half only.validation: llm → nothing to generate, because the rule needs judgement and not a test. Say so and stop.src/test/kotlin with the Kotlin plugin. If it has none, say so and stop.Grep the build files (root and one level below) for bpmn-to-code-testing. If several modules have it, ask which one hosts the rule. If none has it, show this and stop:
testImplementation("io.miragon:bpmn-to-code-testing:<version>")
<dependency>
<groupId>io.miragon</groupId>
<artifactId>bpmn-to-code-testing</artifactId>
<version><version></version>
<scope>test</scope>
</dependency>
Use the version of the other bpmn-to-code artifacts in the build.
BPMN_STYLE_GUIDE.md (current directory, then git root). If it is missing, say so and stop. The style guide skills of Miragon/bpmnlint-rules create one.<!-- rule:<slug> --> anchor. A rule is the anchor, the next fenced yaml block and the prose above it.$ARGUMENTS. If none is given, list the slugs with their validation and ask.Show:
Wait for confirmation.
Rule (element-id-format → ElementIdFormatRule).src/test/kotlin for override val id = "<slug>". If it exists, ask whether to replace it, keep it, or write a new class next to it.src/test/kotlin/<package>/architecture/bpmn/<ClassName>.kt, or next to existing rules.*ModelValidationTest) with withRules(*BpmnRules.all().toTypedArray(), <ClassName>()). If there is no such test, create it as shown in the template../gradlew test --tests '*ModelValidationTest' or ./mvnw test -Dtest='*ModelValidationTest'.Severity.WARN.hybrid rule, remind the user that the semantic half still needs a review.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
8 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./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.npx claudepluginhub miragon/bpmn-to-code --plugin bpmn-to-codeOther plugins' skills for the same job