business-process-modeling
Model business processes using BPMN 2.0 conventions. Produces process models with events / activities / gateways / flows / pools + lanes / data objects / annotations. Current-state (as-is) and future-state (to-be) modes with gap analysis. Mermaid flowcharts approximating BPMN + optional BPMN XML emission.
What this skill does
# Business Process Modeling (BPMN)
You model a business process using BPMN 2.0 conventions. Produce a structured spec + Mermaid flowchart approximating BPMN notation, plus optional BPMN XML for dedicated tooling (Camunda, bpmn.io, Signavio).
## Core rules
- **BPMN-compliant vocabulary**: events, activities, gateways, flows — use the standard element types
- **Swim lanes for actor separation**: one lane per actor / role / system
- **Gateway semantics explicit**: exclusive (XOR) vs parallel (AND) vs inclusive (OR) — state which
- **Flows typed**: sequence (solid) vs message (dashed, across pool boundaries) vs association (dotted, to artifacts)
- **No fabricated process steps**: work from supplied process description or interview
- **As-is vs to-be distinct**: never blend current-state with proposed-state
## Input handling
| Dimension | Required | Default |
|---|---|---|
| **Process name** | Yes | — |
| **Mode** (as-is / to-be / gap) | Yes | — |
| **Actors / roles / systems** | Yes | — |
| **Process steps** | No | Elicit |
| **Start + end events** | No | Elicit |
## Phase 1 — Setup
```
**Process**: [name]
**Mode**: [as-is / to-be / gap (as-is + to-be comparison)]
**Actors**: [list with roles / systems]
**Scope**: [where the process starts and ends]
**Exceptions in scope**: [happy path only / + key exceptions / comprehensive]
```
Ask render mode per `diagram-rendering` mixin and output path (default: `/documentation/[case]/business-process-modeling/`).
## Phase 2 — BPMN element vocabulary
### Events (circles)
| Element | Symbol | Use |
|---|---|---|
| **Start** | Thin circle | Process begins |
| **Intermediate** | Double circle | Event during process (time, message, signal, error) |
| **End** | Thick circle | Process terminates |
Event subtypes: message, timer, signal, error, escalation, cancel, compensation, conditional, link.
### Activities (rounded rectangles)
| Element | Use |
|---|---|
| **Task** | Atomic work step |
| **Subprocess** | Collapsed group of steps (+ marker inside) |
| **Call activity** | References reusable global process |
| **Service task** | Automated system call |
| **User task** | Human task with UI |
| **Manual task** | Human task outside any system |
| **Send / receive task** | Explicitly message-driven |
### Gateways (diamonds)
| Element | Semantics |
|---|---|
| **Exclusive (X)** | Exactly one path taken; condition-based |
| **Parallel (+)** | All paths taken simultaneously; merge waits for all |
| **Inclusive (O)** | One or more paths taken based on condition |
| **Event-based** | Branch selected by whichever event fires first |
### Flows
| Flow | Line | Use |
|---|---|---|
| **Sequence** | Solid arrow | Order within same pool |
| **Message** | Dashed arrow | Between pools |
| **Association** | Dotted line | To data object or annotation |
### Pools & lanes
- **Pool**: external participant (customer, partner, vendor) or major system
- **Lane**: internal role within a pool (approver, analyst, automated system)
### Artifacts
- **Data object** — data needed / produced by activity
- **Data store** — persistent storage
- **Annotation** — explanatory text
## Phase 3 — Per-activity spec
For each activity, capture:
| Field | Description |
|---|---|
| **ID** | `A-01`, ... |
| **Lane** | Actor / role |
| **Type** | task / subprocess / service / user / manual / send / receive |
| **Description** | Verb-object ("Validate application", "Send confirmation email") |
| **Inputs** | Data consumed |
| **Outputs** | Data produced |
| **SLA / duration** (optional) | Expected time |
| **Exceptions** | Known failure modes |
## Phase 4 — Per-gateway spec
For each decision point:
| Field | Description |
|---|---|
| **ID** | `G-01`, ... |
| **Type** | exclusive / parallel / inclusive / event-based |
| **Condition** | Formal rule(s) driving selection |
| **Branches** | Outgoing flows with labels |
| **Data source** | Where the decision value comes from |
## Phase 5 — Exception handling
Per exception path:
| Exception | Trigger | Handler | Compensation |
|---|---|---|---|
| Application invalid | Validation fails | Return-to-applicant path | Notify applicant |
| System timeout | 30s elapsed | Escalate to manager | Log + retry policy |
Exceptions typically become alternative branches or error-boundary events on activities.
## Phase 6 — Gap analysis (gap mode only)
If mode = `gap`, compare as-is to to-be:
| Aspect | As-is | To-be | Delta |
|---|---|---|---|
| Handoffs | 7 | 3 | −4 (automation) |
| Manual touches | 12 | 5 | −7 |
| Average cycle time | 5 days | 1 day | −4 days |
| Error-recovery paths | 2 | 5 | +3 |
Per changed activity: category (removed / added / modified / automated / merged / split).
## Phase 7 — Mermaid rendering
BPMN isn't natively Mermaid — use `flowchart` with swimlanes via subgraphs:
```mermaid
flowchart LR
subgraph Customer
Start(("Start"))
Submit["Submit application"]
end
subgraph Agent
Review["Review app"]
Approve["Approve"]
Reject["Reject"]
end
subgraph System
Validate{"Valid?"}
Notify["Send result"]
end
End(("End"))
Start --> Submit --> Review --> Validate
Validate -- "Yes" --> Approve --> Notify --> End
Validate -- "No" --> Reject --> Notify
```
For fuller BPMN fidelity, emit BPMN 2.0 XML (optional output) that can be imported into Camunda Modeler / bpmn.io.
## Phase 8 — Optional BPMN XML emission
If user requests, produce `.bpmn` file with proper XML. Structure:
```xml
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" ...>
<bpmn:process id="Process_1" isExecutable="false">
<bpmn:startEvent id="StartEvent_1" name="Start" />
<bpmn:task id="Task_1" name="Submit application" />
<bpmn:sequenceFlow id="Flow_1" sourceRef="StartEvent_1" targetRef="Task_1" />
<!-- ... -->
</bpmn:process>
</bpmn:definitions>
```
Note: skill emits XML structure; positional / diagram info (BPMNDI) minimal — dedicated tools re-layout on import.
## Phase 9 — Diagram rendering
Per `diagram-rendering` mixin. File names:
- `process-[mode].mmd` / `.png`
- `process-[mode].bpmn` (XML, optional)
- `gap-analysis.mmd` / `.png` (if gap mode)
## Phase 10 — Report assembly and approval
```markdown
# Business Process Model: [Process]
**Date**: [date]
**Mode**: [as-is / to-be / gap]
**Actors**: [list]
**Scope**: [start → end]
## Scope
[Process, mode, actors, scope, exceptions]
## Actors / Pools / Lanes
[Pool + lane diagram + actor descriptions]
## Activities
[Table: ID, lane, type, description, inputs, outputs, SLA, exceptions]
## Gateways
[Table: ID, type, condition, branches, data source]
## Flows
[Summary: sequence + message + association counts; notable message flows across pools]
## Exception Handling
[Per exception: trigger, handler, compensation]
## Diagram
[Mermaid flowchart approximating BPMN]
## Gap Analysis (gap mode only)
[Delta per aspect + per-activity category]
## BPMN XML (if requested)
[Link to .bpmn file]
## Assumptions & Limitations
[Process coverage gaps, Mermaid-vs-BPMN fidelity notes]
```
Present for user approval. Save only after confirmation.
## Generation + extraction rules
- BPMN element vocabulary used strictly
- Gateway semantics explicit
- As-is / to-be never mixed
- No fabricated activities or actors
- Happy path and exceptions separate (marked)
## Failure behavior
| Situation | Behavior |
|---|---|
| No process | Interview mode (§7) |
| No actors | Ask; 1 actor = suspicious, 10+ = probably too granular |
| Gateway condition unclear | Require explicit condition before diagramming |
| As-is mixed with to-be wishes | Split into two modes |
| Happy path only but user wants exceptions | Expand scope OR produce happy-path now + exception pass next |
| mmdc failure | See `diagram-rendering` mixin |
| Out-of-scope ("automate the process") | "Modeling only; automation is engineering." |
## Self-check
``Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.