/bpmnkit:implementfrom bpmnkit
Generates a BPMN process from a natural language description by writing a ProcessPlan, compiling it deterministically, and testing it. Useful for automating workflow modeling with BPMN Kit.
Ships in bpmnkit. 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.
None: SKILL.md is the whole skill.
Implement a BPMN process for: $ARGUMENTS
You never write BPMN XML by hand. Every step below produces or consumes a ProcessPlan JSON file, compiled deterministically by casen synth.
When @bpmnkit/docspack is installed, npx bpmnkit-docs ask "<question>" answers from the BPMN Kit version this project has, and --pack @bpmnkit/camunda-docspack answers from the Camunda 8 documentation — engine semantics, FEEL, the REST API. Prefer either over recalled knowledge.
If the task asks for a TypeScript build script, or a DMN decision or a form beside the process, use /bpmnkit:bpmn-script, /bpmnkit:dmn or /bpmnkit:form (or casen agent-card bpmn|dmn|form) for that part.
Before starting, read references/plan-format.md. If the request involves any external system (Slack, email, HTTP, a database, cloud service, etc.), also read references/connectors.md. If it involves an AI agent / LLM-in-the-loop step, also read references/agentic.md. Read references/modeling-style.md for naming conventions. Skim references/feel.md whenever you write a gateway condition or any FEEL expression.
If the description is clear enough to model, don't ask anything — proceed. If something is genuinely ambiguous (e.g. "notify the team" without saying how, or a missing decision threshold), batch every question into one turn. Don't ask about things you can reasonably default (element naming, retry counts).
casen pattern list
casen pattern get <id-or-description>
If a pattern matches the domain (e.g. invoice approval, employee onboarding), use its readme (regulatory/domain considerations) and workers (realistic job specs) as context while writing the plan in step 3. Its template field is a rough structural reference in an older compact-diagram shape, not a ProcessPlan — don't paste it in as-is. No match is normal; proceed without one.
For each external system interaction the process needs:
casen connector search "<system name or capability>"
casen connector show <template-id>
Use the required/optional input keys from show output to build the plan's connector.values. Never guess a property key — if search finds nothing, fall back to a plain jobType step (a scaffolded worker will be needed — see step 7).
Write <slug>.plan.json following references/plan-format.md. Naming and structure follow references/modeling-style.md. Give every step and boundary a clear name.
casen synth <slug>.plan.json --output <slug>.bpmn
If problems are reported, they're keyed by JSON path (e.g. steps[2].connector.values.token) — fix the plan, never hand-edit the XML, and re-run. Bound this to 2 retries; if still failing, surface the problems to the user instead of guessing further.
If the plan didn't already include a tests array, add scenarios covering the happy path and every gateway branch / error boundary, then re-run step 5 (synth writes <slug>.bpmn.tests.json from plan.tests automatically). Run:
casen test test <slug>.bpmn
For every serviceTask/tool step whose jobType has no existing worker (no connector was used and no prior scaffold exists), write a worker stub at workers/<job-type-slug>/index.ts using the real @bpmnkit/worker-client API:
import { createWorkerClient } from "@bpmnkit/worker-client"
const client = createWorkerClient({ workerName: "<job-type-slug>-worker" })
for await (const job of client.poll("<job-type>")) {
try {
// TODO: implement the job logic
await job.complete({ /* output variables */ })
} catch (err) {
await job.fail(String(err))
}
}
Print a summary: element count, connectors used (and which secrets they need — never their values), worker coverage (reused vs. scaffolded), test pass/fail counts.
Ask: "Deploy to local Reebe, deploy to Camunda 8, or skip?"
casen deploy deploy <slug>.bpmncasen deploy deploy <slug>.bpmn --target camunda8Before a local deploy, make sure Reebe is reachable — if not, tell the user to run casen reebe start --port 26500 (the default ZEEBE_ADDRESS local reebe deploys against) in another terminal first.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
12 skills in this plugin
/agentDesign and add a Camunda AI Agent Sub-process to a new or existing BPMN process — model, prompts, tools, and a mocked test scenario. Targets Camunda 8.10 (AI Agent Sub-process v2). Usage: /bpmnkit:agent [file] <description>/bpmn-scriptWrite or edit a Camunda 8 BPMN process with one `casen build` command (text spec or edit module; forms, lint and deploy included). Usage: /bpmnkit:bpmn-script <description>/connectWire an existing BPMN step to an external service via a Camunda connector template. Usage: /bpmnkit:connect <file> <step-id> <service>/deployGate a BPMN process on deploy-readiness, then deploy it to local Reebe or Camunda 8. Usage: /bpmnkit:deploy [file.bpmn] [--local|--camunda]/dmnWrite or edit a Camunda 8 DMN decision table with @bpmnkit/core (create, export, keep layout on edit, validate). Usage: /bpmnkit:dmn <description>/extendExtend an existing BPMN process from a natural-language change request — lifts it to a plan, applies a targeted delta, and merges. Usage: /bpmnkit:extend <file.bpmn> <change request>npx claudepluginhub bpmnkit/bpmnkit --plugin bpmnkitOther plugins' skills for the same job