> ~/claude-skills/bpmnemonic

BPMN diagrams turned into documents people will read.

Reads a BPMN 2.0 file and writes a technical spec for engineers, a PRD for stakeholders, or both. Actors come from pools and lanes, alternative flows from gateways, exception flows from error and timer events. Gaps in the diagram become open questions, and nothing is invented.

Why it exists

BPMN is the standard format for process diagrams: the flowcharts with lanes, gateways and events that tools like Camunda, Bizagi and Signavio export. The diagram is precise, and almost nobody outside the team that drew it reads it. What people read is prose, which you can search, version and hand to a language model.

Writing that prose by hand is where processes get quietly rewritten. A parallel gateway narrated as a sequence is the classic mistake: the document reads well and describes a process that does not exist.

This skill makes the translation structured and repeatable, with one rule above the others. The diagram is the source of truth and the documents are derivatives.

Three rules

  1. Never invent a flow the diagram does not show. If a gateway has no condition expression, the spec says the criteria are not specified.
  2. Surface gaps. Unnamed elements, missing schemas and ambiguous branches all go into an “Open questions” section.
  3. Keep the element ids. Every step carries the id of the BPMN element it came from, as an HTML comment, so a later run on an updated diagram can tell what changed.

What you get

From a loan process with two pools, three lanes, an exclusive gateway and a boundary timer:

# Loan Application Processing

## 4. Main flow (happy path)

1. **Applicant** submits the application via the bank's portal.
   <!-- bpmn:userTask id="Task_Submit" -->
2. **Intake Officer** pulls the credit report (system call).
3. **Underwriter** reviews credit and risk.

## 6. Exception flows

### 6.1 Underwriter review timeout (5 business days)

If the **Underwriter** has not completed *Review credit and risk*
within 5 business days, a boundary timer event fires...

## 11. Open questions

- What constitutes "acceptable risk"? The gateway condition is
  not formalized in the diagram.

The same diagram can produce a specs.md for engineers, a prd.md for stakeholders, or both. They differ in audience, vocabulary and which elements they emphasise: a PRD often leaves exception flows out, and a spec must not. The repository has three worked examples.

How it reads a diagram

In the diagram In the document
Pools Actors or external systems
Lanes Roles
Tasks of every type Numbered steps, each naming who acts
Gateways Branch points: the default or success branch is the happy path, the others become alternative flows
Boundary events (error, timer, escalation) Exception flows
Message flows between pools Integration points

If no branch of a gateway is identifiably the success path, it does not pick one silently. It asks, or records an open question.

Modes

Argument What happens
(none) Inventories the file, recommends a format, confirms, then generates
spec [path] Generates specs.md
prd [path] Generates prd.md
both [path] Generates both, each linking to the other
analyze [path] Reports element counts and a complexity rating; writes nothing

With no path it uses the project’s only .bpmn file, or lists them and asks when there are several.

What it will not do

  • Modify the .bpmn file. It only writes Markdown.
  • Overwrite a document unseen. It shows a preview first, and a diff when the file exists, since it may hold hand-written additions.
  • Paper over a diagram defect. A task with no name is written as [unnamed task: needs label], with its id, and listed under open questions.
  • Inline a large decision table. It summarises it and recommends a separate document.