/camunda-skills:camunda-formsfrom camunda-skills
Creates Camunda Form JSON (.form) schemas for BPMN user tasks and start events in Camunda 8.8+. Use when a person must enter, review, or approve data as a process step.
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 Camunda Form JSON schemas for user tasks and start events in Camunda 8.8+.
<zeebe:formDefinition formId="..."/>Camunda Forms are JSON files with .form extension (not .json). Link to BPMN user tasks via the form's id field, which must match the formId attribute on <zeebe:formDefinition formId="..."/> inside the user task. The user task itself must also include <zeebe:userTask/> (the Camunda user task implementation). Don't link via the older formKey attribute — that's the deprecated job-worker user task, removed in Camunda 8.10. See camunda-bpmn § Form Definition for the BPMN side; if you edited the BPMN, run its lint loop until clean.
Example — minimal form skeleton:
{
"components": [],
"executionPlatform": "Camunda Cloud",
"executionPlatformVersion": "8.8.0",
"exporter": { "name": "Camunda Modeler", "version": "5.34.0" },
"schemaVersion": 18,
"id": "my-form-id",
"type": "default"
}
All metadata fields are required. Use schemaVersion: 18 and executionPlatformVersion: "8.8.0".
Every component requires type, id, and layout. Input components also need key (maps to process variable name) and label.
{
"type": "textfield",
"id": "Field_Name",
"key": "customerName",
"label": "Customer Name",
"layout": { "row": "row_0", "columns": null }
}
Input components: textfield, textarea, number, checkbox, checklist, radio, select, taglist, datetime
Display components: text (markdown), html, image, separator, button
Layout components: group, spacer
Use the schema property names exactly:
defaultValue. Do not use value on a component; value is only used inside option objects such as { "label": "High", "value": "high" }.button component with action: "submit". Do not use type: "submit" or add a key to a button.{
"type": "textfield",
"id": "Field_Name",
"key": "customerName",
"label": "Customer Name",
"defaultValue": "Ada",
"layout": { "row": "row_0", "columns": null }
}
{
"type": "button",
"id": "Button_submit",
"label": "Submit",
"action": "submit",
"layout": { "row": "row_1", "columns": null }
}
See references/component-reference.md for complete properties of each component type.
Components are arranged in rows. Place components in the same row to display them side-by-side:
{ "type": "textfield", "id": "F1", "key": "firstName", "label": "First Name", "layout": { "row": "row_0", "columns": null } },
{ "type": "textfield", "id": "F2", "key": "lastName", "label": "Last Name", "layout": { "row": "row_0", "columns": null } }
The key property maps a form field to a process variable:
{
"validate": {
"required": true,
"minLength": 2,
"maxLength": 100,
"min": 0,
"max": 10000,
"pattern": "^[A-Z]{2}[0-9]+$",
"validationExpression": "=amount <= budget"
}
}
Custom error messages: requiredErrorMessage, patternErrorMessage.
Hide or show fields based on other field values using FEEL:
{
"conditional": {
"hide": "=approved = false"
}
}
The expression is evaluated against all form field values and process variables.
Static values:
{
"type": "select",
"values": [
{ "label": "Low", "value": "low" },
{ "label": "Medium", "value": "medium" },
{ "label": "High", "value": "high" }
]
}
Dynamic values from process variable:
{
"type": "select",
"valuesExpression": "=departments"
}
The variable should be a list of {label, value} objects.
Display data without allowing edits:
{
"type": "textfield",
"key": "orderId",
"label": "Order ID",
"readonly": true
}
Display static text or instructions using markdown:
{
"type": "text",
"text": "### Review Details\n\nPlease review the information below.",
"id": "Text_Header",
"layout": { "row": "row_0", "columns": null }
}
Organize related fields:
{
"type": "group",
"label": "Contact Information",
"components": [
{ "type": "textfield", "id": "F1", "key": "email", "label": "Email", "layout": { "row": "row_g0", "columns": null } },
{ "type": "textfield", "id": "F2", "key": "phone", "label": "Phone", "layout": { "row": "row_g1", "columns": null } }
],
"id": "Group_Contact",
"layout": { "row": "row_1", "columns": null }
}
Generate complete .form JSON files. Ensure:
id values are unique within the formkey values match expected process variable namesdefaultValue; submit controls use type: "button" and action: "submit" without a keylayout.row values increment sequentially (row_0, row_1, ...)A form edit is not done until node validate-form.cjs <file> prints Valid ✓ (exit 0) for every .form file you created or edited. Treat this as the closing step of every form task, before presenting or deploying anything:
Validate against the official Camunda form schema using ajv with the ajv-errors plugin directly. The official schema permits component extension properties, so the helper below also rejects the known invalid component shapes (value, type: "submit", and a button key). A plain ajv-cli invocation fails on this schema because it uses the errorMessage keyword; if you use ajv-cli, load ajv-errors via --require. Run all commands from the project root:
npm install --save-dev ajv ajv-errors @bpmn-io/[email protected]
# Create the validation helper and commit it as a project tool
cat > validate-form.cjs << 'EOF'
const Ajv = require('ajv');
const addErrors = require('ajv-errors');
const fs = require('fs');
const schema = require('@bpmn-io/form-json-schema/resources/schema.json');
const file = process.argv[2];
if (!file) { console.error('Usage: node validate-form.cjs <path-to-form.form>'); process.exit(1); }
let form;
try { form = JSON.parse(fs.readFileSync(file, 'utf8')); }
catch (e) { console.error(`Cannot read/parse ${file}: ${e.message}`); process.exit(1); }
const ajv = new Ajv({ allErrors: true, strict: false });
addErrors(ajv);
const validate = ajv.compile(schema);
if (!validate(form)) { console.error(JSON.stringify(validate.errors, null, 2)); process.exit(1); }
function invalidComponentShapes(components, path = 'components') {
if (!Array.isArray(components)) return [];
const errors = [];
for (const [index, component] of components.entries()) {
if (!component || typeof component !== 'object' || Array.isArray(component)) continue;
const location = `${path}[${index}]`;
if (Object.prototype.hasOwnProperty.call(component, 'value')) {
errors.push(`${location}: use defaultValue instead of value on a component`);
}
if (component.type === 'submit') {
errors.push(`${location}: use type "button" with action "submit"`);
}
if (component.type === 'button' && Object.prototype.hasOwnProperty.call(component, 'key')) {
errors.push(`${location}: buttons must not define key`);
}
errors.push(...invalidComponentShapes(component.components, `${location}.components`));
}
return errors;
}
const shapeErrors = invalidComponentShapes(form.components);
if (shapeErrors.length) { console.error(JSON.stringify(shapeErrors, null, 2)); process.exit(1); }
console.log('Valid ✓');
EOF
node validate-form.cjs path/to/form.form
For multiple forms (including nested directories), loop over every file and collect all failures before exiting; fix and re-run until it exits 0:
failed=0
# Use find for recursive discovery; replace with *.form for flat directories
while IFS= read -r f; do
node validate-form.cjs "$f" || { echo "FAILED: $f"; failed=1; }
done < <(find . -name '*.form' -not -path '*/node_modules/*')
exit $failed
Common schema keywords and fixes:
| Keyword | Typical meaning | Typical fix |
|---|---|---|
required | Required field missing | Add the missing property named in the error message |
additionalProperties | Unknown property for this object | Remove the unsupported property |
type | Wrong JSON value type | Change value to the expected type (string/number/boolean/object/array) |
enum / const | Value not in allowed set | Replace with one of the allowed values |
pattern | String format invalid (often id/key) | Rename to match the required regex (usually alnum/underscore style) |
<zeebe:userTask/> and <zeebe:formDefinition formId="..."/> matching the form's id field. The legacy formKey attribute was removed in Camunda 8.10.schemaVersion mismatch error — set schemaVersion: 18 and executionPlatformVersion: "8.8.0"; older values are rejected by 8.8+ clusters.conditional.hide is a FEEL expression that returns true to hide. Forgetting the = prefix turns it into a literal string. See camunda-feel § Common Patterns for the FEEL side.For detailed reference material, read from references/:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
camunda-forms, bpmn, user-tasks, form-schemas, process-automation
npx claudepluginhub camunda/skills --plugin camunda-skills13 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-bpmnUse this skill whenever work that spans several steps, people, or systems must run reliably — approvals, hand-offs, escalations, deadlines, retries, or compensation — even if Camunda or BPMN isn't mentioned. Load it before recommending an approach or tool for running such work. Designs, edits, and lints executable BPMN processes for Camunda 8. Not for one-step jobs or CI pipelines.
/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.
Other plugins' skills for the same job