Skip to content

Claude Code Plugin

The bpmnkit Claude Code plugin adds BPMN-aware slash commands, autonomous agents, and ambient quality hooks directly into Claude Code. It’s CLI-first: every skill drives casen via Bash — no MCP server, no proxy daemon. Every process is authored as a ProcessPlan JSON file and compiled deterministically by casen synth; no skill ever writes BPMN XML by hand.

Install the BPMNKit CLI globally:

Terminal window
npm install -g @bpmnkit/cli

That’s it — nothing else needs to be running.

Terminal window
claude --plugin-dir ./plugins-claude/bpmnkit-claude

Or add to your project’s .claude/settings.json:

{
"plugins": [
{ "path": "./plugins-claude/bpmnkit-claude", "scope": "project" }
]
}
Terminal window
/plugin marketplace add github:bpmnkit/monorepo
/plugin install bpmnkit

When the plugin is enabled, Claude Code prompts for two optional values:

Config keyDescription
camunda_endpointCamunda 8 REST API endpoint (leave blank for local Reebe)
camunda_tokenCamunda 8 OAuth2 token (leave blank for local Reebe)

Leave both blank to use the local Reebe engine.


The main entry point — natural language to a compiled, tested BPMN process.

/bpmnkit:implement order fulfillment with payment and inventory check
/bpmnkit:implement employee onboarding process with HR approval

Resolves connectors, writes a ProcessPlan, compiles it with casen synth, tests it, scaffolds any missing workers, and asks where to deploy.


Extend an existing process from a natural-language change.

/bpmnkit:extend order-fulfillment.bpmn add a timeout boundary on the payment step

Lifts the process to plan form (casen plan extract), writes a small delta plan, and merges it in (casen synth --merge) — the summary is at the element level, not an XML diff.


Design and add a Camunda AI Agent Sub-process.

/bpmnkit:agent add a support-triage agent with tools: search KB (http), escalate to human (user task)

Works out the provider/model, prompts, and tools (each mapped via connector search or an existing worker job type), then compiles and mock-tests the agent step. See AI Agents for the full pattern.


Wire an existing plan step to an external system via a Camunda connector template.

/bpmnkit:connect order-fulfillment.bpmn notify_ops slack

Run the full static analyzer and report deploy-readiness.

/bpmnkit:review
/bpmnkit:review order-fulfillment.bpmn

Reports findings grouped by severity and ends with an explicit “Deploy-ready: yes/no” verdict.


Run scenario tests and report path/branch coverage.

/bpmnkit:test
/bpmnkit:test order-fulfillment.bpmn

/bpmnkit:deploy [file.bpmn] [--local|--camunda]

Section titled “/bpmnkit:deploy [file.bpmn] [--local|--camunda]”

Gate on deploy-readiness, then deploy to local Reebe or Camunda 8.

/bpmnkit:deploy
/bpmnkit:deploy order-fulfillment.bpmn --camunda

/bpmnkit:instances [process-id] [--active|--failed]

Section titled “/bpmnkit:instances [process-id] [--active|--failed]”

List running process instances.

/bpmnkit:instances
/bpmnkit:instances order-process --failed

List open incidents with suggested resolution actions.

/bpmnkit:incidents
/bpmnkit:incidents --process-id order-process

Every skill reads the relevant reference doc before authoring a plan:

FileContents
references/plan-format.mdThe ProcessPlan JSON schema + annotated, tested examples
references/connectors.mdThe 116-template Camunda connector catalog index
references/agentic.mdThe AI Agent Sub-process pattern, binding keys, a full example
references/feel.mdFEEL syntax crib sheet + the "="-means-expression convention
references/modeling-style.mdCamunda naming/structure conventions

Builds a complete BPMN process end-to-end from a description. Invoke directly:

Build me an invoice approval process for accounts payable

What it does:

  1. Asks clarifying questions (error paths, user tasks, deploy target)
  2. Checks domain patterns (casen pattern list/get)
  3. Resolves connectors, writes the plan
  4. Compiles it with casen synth
  5. Shows a preview and waits for your approval
  6. Tests the process, fixing failures by adjusting the plan
  7. Scaffolds a worker stub for every job type with no connector
  8. Gates on casen lint --profile deploy, then deploys to the chosen target
  9. Reports the process ID, files created, and next steps

Triages and resolves open Camunda incidents. Invoke directly:

Investigate and resolve the open incidents

What it does:

  1. Fetches all open incidents (casen incident list)
  2. Groups by process + error type, sorted by count
  3. Investigates root cause per group
  4. Proposes a fix and waits for your approval before executing
  5. Executes approved fixes (retry jobs, resolve incidents, migrate instances)
  6. Verifies the count dropped
  7. Reports a resolution summary

The plugin installs two background hooks:

HookTriggerWhat it does
SessionStartEvery Claude Code sessionChecks casen is installed
PostToolUseAfter any Write or EditSilently lints any .bpmn file that was written

The PostToolUse hook means every .bpmn file you (or Claude) writes is automatically checked against the BPMNKit optimizer — zero extra steps.


Unlike earlier versions of this plugin, none of the skills above call an MCP tool — they call casen directly via Bash. The separate @bpmnkit/proxy MCP server (bpmn-aikit) still exists for Claude Desktop, Cursor, or other MCP-only hosts, but it’s unrelated to this plugin.