/bpmnkit:agentfrom bpmnkit
Designs and adds a Camunda 8.10 AI Agent Sub-process (v2) to BPMN processes — models agent prompts, tools, limits, and generates a build script with mocked test scenario.
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.
Design an AI agent: $ARGUMENTS
Read references/agentic.md first — it has the v2 sub-process facts, the builder flow and a verified example. Read references/connectors.md for tool candidates and references/feel.md for prompt/condition syntax.
For Camunda 8.10 the agent is the AI Agent Sub-process v2: an adHocSubProcess from the TypeScript builder, configured with applyTemplates from @bpmnkit/core/connectors. The plan/casen synth aiAgent step still emits the v1 job-worker agent (see the v1 note at the end) — do not use it for 8.10.
Ask the docs, one narrow question at a time, instead of answering from memory. For builder questions pass --pack @bpmnkit/docspack, so Camunda's own pages do not outrank the recipe:
npx bpmnkit-docs ask guides.executable-camunda-process.how-do-i-build-an-ai-agent-sub-process-with-tools-in-a-bpmn-kit-build-script-8.10-v2
npx bpmnkit-docs ask guides.executable-camunda-process.how-do-i-lay-out-the-agent-s-tools-in-a-grid
npx bpmnkit-docs ask guides.executable-camunda-process.which-keys-does-a-template-take
npx bpmnkit-docs ask guides.executable-camunda-process.how-do-i-apply-an-element-template-connector-to-a-task
Related chunks: ...how-do-i-put-a-form-on-a-start-event, ...how-do-i-map-a-user-task-s-input, ...how-do-i-label-a-gateway-s-yes-and-no-flows (all prefixed guides.executable-camunda-process.). A complete worked script is packages/core/tests/fixtures/bakeoff/build.ts (in the bpmnkit repo) — read it for the shape; don't copy it wholesale.
From the description, work out:
userConfig has one set, otherwise ask. Credentials are {{secrets.NAME}} (or =camunda.secrets.NAME FEEL on 8.10) — never literal.casen connector search "<capability>"; use the connector's template if one exists, otherwise io.camunda.connectors.HttpJson.v2@18 for HTTP APIs (take URLs from casen connector api, not memory). Each tool is a task inside the sub-process with no incoming flow, its element id is the name the LLM sees and its documentation is the description the LLM reads — write it like a brief to a new teammate.data.limits.maxModelCalls (10 is usually fine).Write a build script: adHocSubProcess(id, cb, { toolGrid: { columns, fill } }) with one serviceTask per tool inside, then:
applyTemplates(model.build(), [
{ elementId: "AI_Agent", template: "io.camunda.connectors.agenticai.ai-agent-subprocess.v2@1", values: { /* ... */ } },
{ elementId: "SomeTool", template: "io.camunda.connectors.HttpJson.v2@18", values: { /* ... */ } },
])
applyTemplates returns { definitions, problems } — treat any problem as a failure. To wire a template onto an existing file instead, use the CLI:
casen connector show io.camunda.connectors.agenticai.ai-agent-subprocess.v2 --filter prompt --condensed
casen connector apply <file>.bpmn <elementId> ai-agent-subprocess@1 --values values.json --dry-run
casen connector apply <file>.bpmn <elementId> ai-agent-subprocess@1 --values values.json
The sub-process job type is io.camunda.agenticai:aiagent:subprocess:2.
Run in order; do not skip ahead.
casen lint lint <file>.bpmn --profile deploy — expect 0 errors. The pattern rules gateway-no-default-flow and subprocess-no-error-boundary may show as warnings (style advice; Camunda's own gate does not flag them).renderBpmnAscii (@bpmnkit/ascii) and check the layout: tools in the grid, no flow into a tool, labels on gateway flows.Ignore data-flow findings against the agent's own provider/model/prompt bindings — see "Known noisy finding" in references/agentic.md.
Add a scenario mocking io.camunda.agenticai:aiagent:subprocess:2 with a plausible final response (see references/agentic.md's scenario example), then:
casen test test <file>.bpmn
Exit 0 means every case passed, and that is the done gate. Lint first (section 4), then run this.
This verifies the process routes correctly around the agent — it does not exercise real model behavior or tool-calling, which is out of scope for casen test.
Report: the tool schema the LLM will see (tool ids + descriptions + parameters — literally what the agent is told), the model/provider, the lint result per category, and the test result.
For clusters before 8.10, the v1 agent (io.camunda.agenticai:aiagent-job-worker:1, template io.camunda.connectors.agenticai.aiagent.jobworker.v1) is produced by the plan aiAgent step: write the step per references/plan-format.md, run casen synth <plan>.json --output <file>.bpmn (or --merge), lint with --categories agentic, and mock io.camunda.agenticai:aiagent-job-worker:1 in the scenario. The plan compiler emits only v1; it has no v2 output.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
12 skills in this plugin
/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>/formWrite or edit a Camunda 8 form (.form JSON) with @bpmnkit/core (create, export, keep ids on edit, validate). Usage: /bpmnkit:form <description>npx claudepluginhub bpmnkit/bpmnkit --plugin bpmnkitOther plugins' skills for the same job