/camunda-skills:camunda-bpmnfrom camunda-skills
Designs, edits, and lints executable BPMN 2.0 processes for Camunda 8.8+. Generates valid XML with Zeebe extensions and diagram coordinates. Use for multi-step workflows with approvals, hand-offs, escalations, deadlines, retries, or compensation.
Ships in camunda-skills. 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.
Create and edit executable BPMN 2.0 processes for Camunda 8.8+. Generates valid XML with Zeebe extensions and diagram coordinates.
c8ctl add profile) — provides c8ctl bpmn lint--dry-run config report) and ≥ 3.2.0 for bpmn format. If either is unavailable, ask the user to upgrade: npm install -g @camunda8/cli<zeebe:calledDecision decisionId="..." resultVariable="..."/>zeebe:taskDefinition type activatesWhen writing a BPMN file from scratch, follow the canonical bpmn-js style — single-line <bpmn:definitions>, two-space indent, no blank lines between siblings, <el /> self-closing form. Otherwise any round-trip through Camunda Modeler, Web Modeler, or c8ctl element-template apply reformats the file, breaking Edit matches and adding diff noise. Rules and a worked skeleton: references/canonical-style.md.
The zeebe namespace, isExecutable="true", and modeler:executionPlatform="Camunda Cloud" are mandatory — without them, Camunda won't recognize the process correctly.
The <bpmndi:BPMNDiagram> block is also mandatory, not optional polish: c8ctl bpmn lint flags missing DI (no-bpmndi) as an error, and Modeler can't render a process without it. Every <bpmn:process> flow element needs a matching <bpmndi:BPMNShape>, every <bpmn:sequenceFlow> a <bpmndi:BPMNEdge>. Coordinates, sizes, and waypoint conventions: references/layout-rules.md. Note that Zeebe deploys a DI-less BPMN happily — the missing DI surfaces only at lint and in Modeler, so don't rely on a successful deploy as evidence the file is well-formed.
Always encode special characters in XML attribute values:
< → <, > → >, & → &, " → ", ' → 'Start/End Events:
Tasks — one atomic action per task:
<zeebe:userTask /> and link the form via <zeebe:formDefinition formId="X" />. Assign with <zeebe:assignmentDefinition candidateGroups="..." />. Setting formId="X" makes X.form a required deliverable — author it via camunda-forms in the same step, or flag the gap explicitly in your final message. c8ctl bpmn lint checks the attribute is present, not that the file resolves. Do NOT write the deprecated job-worker variant (no <zeebe:userTask />, formKey instead of formId) — see references/zeebe-extensions.md § Form Definition.<zeebe:taskDefinition type="..." retries="3" />. The type must exactly match worker registration (case-sensitive). When backed by an out-of-the-box connector, apply the template via camunda-connectors — don't hand-write the connector input mappings.<zeebe:script expression="=..." resultVariable="..." />.<zeebe:calledDecision decisionId="X" resultVariable="..." />. decisionId="X" makes the corresponding X.dmn a required deliverable — author it via camunda-dmn.Gateways:
default attribute for a safe fallback flow and label condition flows. For binary or enum decisions (for example, approve/reject or yes/no), make one branch the default and put the condition only on the explicitly selected branch. The default is used only when the other conditions evaluate to false; it does not recover from a FEEL evaluation error. If an input can be missing or have the wrong type, guard or normalize the comparison so it returns false instead of failing (for example, =if number(string(amount)) != null then number(string(amount)) <= 1000 else false). Never generate an XOR where every outgoing flow has a condition but no default: an unexpected, missing, or mistyped value can make every condition false and raise a CONDITION_ERROR incident.c8ctl bpmn lint — join gateways must match their fork type.Sequence Flows:
= prefix:
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=amount > 1000</bpmn:conditionExpression>
FEEL Expressions in BPMN — all FEEL must be prefixed with =:
=riskLevel = "HIGH"="PT7D" (plain PT7D is rejected)=customer.nameAnything beyond a simple variable reference (function calls, operators, context literals, for / every / some) — validate via camunda-feel before committing.
IDs: Use descriptive PascalCase — ReviewInvoice, AmountExceedsLimit, Flow_ToApproval
Create local variables and control variable propagation:
<zeebe:ioMapping>
<!-- Input: create local variable from parent scope -->
<zeebe:input source="=customer.name" target="customerName" />
<!-- Output: propagate local result to parent scope -->
<zeebe:output source="=result.status" target="paymentStatus" />
</zeebe:ioMapping>
See references/zeebe-extensions.md for detailed variable scoping, propagation rules, and examples.
BPMN files can be large. Follow these rules:
<el /> (single space before />)<bpmn:incoming> and <bpmn:outgoing> flow references on elementscvc-complex-type.2.4.a … One of '{…eventDefinition…}' is expected): documentation, extensionElements, incoming, outgoing, then (events) the *EventDefinition. On events, flow refs come before the event definition. c8ctl bpmn format -i <file> rewrites children into schema order — run it before deploying hand-written XMLA BPMN edit is not structurally done until it is lint-clean: the Camunda ruleset applies AND c8ctl bpmn lint reports zero errors AND zero warnings. A zero-issue report without the Camunda ruleset is not clean. Treat this as the closing structural step of every BPMN task — generation, modification, refactor, template apply, or merge — whichever skill made the change, and as the gate before any deploy or test run.
c8ctl bpmn lint runs the same rule engine and Camunda ruleset as Camunda Modeler (@camunda/linting: bpmnlint + the version-matched bpmnlint-plugin-camunda-compat config), plus the stricter bpmnlint:recommended rules. Message wording differs from Modeler's.
Confirm the Camunda ruleset applies. It is selected from modeler:executionPlatformVersion on <bpmn:definitions>. Without it, lint silently runs only the generic rules — a service task with no <zeebe:taskDefinition> passes. Check the resolved config:
c8ctl --dry-run bpmn lint --json <file.bpmn>
First check the output is a dry-run report ("dryRun": true with a config key). c8ctl < 3.1.0 ignores --dry-run and prints a normal lint result instead — that says nothing about the ruleset, so stop and ask the user to upgrade (npm install -g @camunda8/cli); don't edit the BPMN or .bpmnlintrc to satisfy the check.
Then config.extends must include a plugin:camunda-compat/camunda-cloud-* entry. If it doesn't, set modeler:executionPlatformVersion to the target cluster version (e.g. 8.8.0) — or, if a project .bpmnlintrc replaced the auto-detected config, make it extend that entry — and re-check. Do this for every file, including existing ones you didn't author.
Run the linter against the file:
c8ctl bpmn lint --json <file.bpmn>
The exit code is non-zero only for errors — warnings exit 0. Loop on the JSON errorCount and warningCount, not the exit code. Each issues[] entry carries elementId, message, category, and rule; key fixes on elementId + message (for Camunda-ruleset issues rule can hold the element's name instead of the rule id). Stdin also works: cat process.bpmn | c8ctl bpmn lint --json.
If either count is non-zero, fix every reported issue with targeted edits and run the linter again. Common categories:
default flow. conditional-flows does not replace this review: a gateway can have a condition on every outgoing flow and still have no fallback for an unmatched value.Loop until both counts are zero. Do not declare the task structurally done while warnings remain — silently-failing BPMN deploys to the cluster and surfaces as runtime incidents.
Bound the loop. If the same issue survives three fix attempts, or fixes keep trading one issue for another, stop and report the remaining issues and what you tried to the user. Don't rewrite the whole file or suppress the rule just to get to green.
If a warning is genuinely a false positive, suppress it explicitly in a project-level .bpmnlintrc (keeping the camunda-compat entry in its extends) and flag the suppression in your final message — never silently ignore.
For the repository's deterministic smoke contract, the fixed fixture command is:
c8ctl bpmn lint process.bpmn
When the task targets a directory (not a single file), use the directory workflow in references/bpmn-lint.md: discover BPMN files recursively (with skip directories), run the lint loop above on each file until every file is lint-clean.
Lint catches structure, not runtime behaviour (FEEL errors, missing workers, unreachable end events). After lint is clean, validate by running the process: prefer camunda-process-test for embedded-engine feedback without a cluster, or fall back to camunda-process-mgmt to deploy and run an instance.
Before a BPMN change moves to deployment/testing, every file you intend to deploy (single file or full directory set) must be lint-clean per the loop above — Camunda ruleset applied, zero errors, zero warnings. This is a required runtime-compatibility check, but it is not by itself a deployment-success guarantee.
Use this troubleshooting mapping when lint flags compatibility issues:
<zeebe:taskDefinition>, <zeebe:calledDecision>, etc.) for its BPMN type.${...} or non-FEEL mapping syntax). Cross-check with camunda-feel.For a full compatibility workflow (target selection, directory runs, and fix loop), use references/runtime-compatibility.md.
For detailed reference material, read from references/:
portability.json (opens in a new tab)references/bpmn-lint.md (opens in a new tab)references/canonical-style.md (opens in a new tab)references/element-catalog.md (opens in a new tab)references/layout-rules.md (opens in a new tab)references/runtime-compatibility.md (opens in a new tab)references/zeebe-extensions.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
bpmn, camunda-8, process-modeling, workflow-automation, zeebe
13 skills in this plugin
/camunda-ai-agentsUse this skill when an LLM should act inside a business process — choosing tools or next steps, calling systems, handing off to people — with guardrails, human review, or an audit trail, even if Camunda isn't mentioned, and before hand-coding an agent loop. Models Camunda 8 AI Agent sub-processes: tools as BPMN tasks, fromAi() parameters, prompts, and limits.
Also covers v1/v2 element-template selection and upgrading v1 elements to v2.
/camunda-c8ctlUse this skill when someone needs a Camunda 8 cluster to work against — run one locally to try a process, connect to SaaS or Self-Managed, switch profiles, or set local connector secrets — and before other skills run c8ctl. Installs and configures c8ctl, the Camunda 8 CLI. Not for databases or other local services.
/camunda-connectorsUse this skill when a process step should call a common service without custom code — REST, Slack, email, Kafka, AWS, Salesforce, and similar — even if connectors aren't mentioned. Finds, configures, and applies Camunda 8's pre-built connector templates to BPMN elements with c8ctl. Not for building new connectors; use camunda-connectors-development.
Covers c8ctl template discovery, configuration, application, and updates.
/camunda-connectors-developmentUse this skill when no pre-built connector fits and processes need a reusable integration — a proprietary or internal API, custom auth, a shared retry policy, or an inbound webhook, subscription, or poller that starts processes. Builds custom Camunda 8 connectors as a JSON template on a protocol connector or in Java with the Connectors SDK.
/camunda-developmentUse this skill first when a process step must call or receive from another system — an API, Slack, Kafka, a webhook, an internal service, or an LLM — and it is still open whether to use a connector, a job worker, or an AI agent, even if those terms aren't mentioned. Weighs the requirements, then hands off.
/camunda-dmnUse this skill when the business, not developers, should own decision rules — eligibility, risk, routing, discounts — changing them without a code release or auditing which rule fired, even if DMN or decision tables aren't mentioned. Authors and validates DMN decision tables for Camunda 8. Not when the user asks for a function or script in a programming language.
npx claudepluginhub camunda/skills --plugin camunda-skillsOther plugins' skills for the same job