Skip to content

AI-Driven Implementation

The /implement skill turns a plain-English description into a deployed, working process. Claude plans the BPMN, wires workers, validates the result, checks coverage, and asks once before deploying.

  • casen installed and casen proxy running
  • .claude/mcp.json present in your project (created automatically by casen skills install)
  • Claude Code active in your terminal or IDE
Terminal window
casen skills install

This copies four slash commands into .claude/commands/: /implement, /review, /test, /deploy.

In Claude Code, type:

/implement an invoice approval process for accounts payable

Claude works through four steps automatically:

  1. Pattern lookup — checks whether a domain pattern matches the request and loads it as context
  2. BPMN creation — calls bpmn_create to generate the process diagram, writes it to disk
  3. Worker wiring — matches each service task to an existing worker or scaffolds a new one
  4. Validation + coverage — runs the pattern advisor and checks that all job types have a worker

At the end Claude presents a summary and asks where to deploy.

project/
invoice-approval.bpmn ← generated process diagram
workers/
validate-invoice/
index.ts ← implement the handle() function here
package.json
tsconfig.json
README.md
check-duplicate/
index.ts
...

Before creating the BPMN, Claude checks a built-in pattern library for a domain match. Patterns provide a starting template and realistic worker specs for common business processes:

PatternDomain
invoice-approvalFinance / accounts payable
employee-onboardingHR
supplier-contract-reviewProcurement / legal
incident-responseIT / ops
loan-originationFinancial services
content-moderationTrust & safety
order-fulfillmentE-commerce / supply chain

Patterns are hints — Claude adapts them or ignores them when the request doesn’t match.

At the end of the flow Claude asks:

Deploy to local reebe, deploy to Camunda 8, or skip deployment?
  • Local reebe — deploys to ZEEBE_ADDRESS (default http://localhost:26500). Start reebe first with casen reebe.
  • Camunda 8 — deploys using the active casen profile. Set one up with casen profile add.
  • Skip — leaves the BPMN file on disk for manual review and deployment.

Each scaffolded worker has a handle() function to implement:

workers/validate-invoice/index.ts
async function handle(variables: Inputs): Promise<Outputs> {
// TODO: implement invoice validation
throw new Error("Not implemented")
}

Start a worker for development:

Terminal window
cd workers/validate-invoice
npm install
npm start

Or start all workers at once:

Terminal window
casen worker start

See Standalone Workers for deployment options.

You can call /implement multiple times. Existing workers are reused — only missing job types get scaffolded.

To modify the BPMN after generation:

/implement add a timeout boundary event to the approval task in invoice-approval.bpmn

Or open the file in Studio for visual editing and run /review afterward.