Logo vun Process Modeling

Process Modeling

Communautéit
jdm4pku
process-modeling

Create activity diagrams and swim-lane diagrams that model cross-functional processes and derive requirements. Use when you need to visualize workflows, identify handoffs, and find missing requirements.

Iwwersiicht

Editeurjdm4pku
RepositoryRE-Skills
Skill-Nummprocess-modeling
Stären
27
Forks
1
Matgeliwwert Fichieren
2
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 2 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum jdm4pku op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Process Modeling an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/jdm4pku/RE-Skills/tree/main/skills/process-modeling
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jdm4pku/RE-Skills.git /tmp/RE-Skills
mkdir -p .claude/skills
cp -r /tmp/RE-Skills/skills/process-modeling .claude/skills/process-modeling
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Process Modeling an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Process Modeling automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Process Modeling net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Purpose

Create visual process models that capture how work flows through a system involving multiple actors, decisions, and parallel activities. Process models reveal the structure of a workflow in a way that text descriptions cannot -- they make handoffs, decision points, bottlenecks, and parallel paths visible at a glance.

This is not about modeling object states (see skills/state-modeling/SKILL.md) or data structures (see skills/data-modeling/SKILL.md). Process models focus on the flow of work across actors and activities.

Key Concepts

Activity Diagram Elements

ElementSymbolDescriptionExample
ActionRounded rectangleA single step or task"Enter chemical data"
DecisionDiamondA branching point with conditions"Is CAS number valid?"
ForkThick horizontal barSplits flow into parallel pathsValidation and notification happen simultaneously
JoinThick horizontal barMerges parallel paths back togetherBoth validation and notification must complete
StartFilled circleBeginning of the processProcess begins
EndFilled circle with ringTermination of the processProcess ends
SwimlaneVertical or horizontal bandPartitions actions by actor/roleLab Technician lane, Safety Officer lane
Flow arrowDirected lineShows sequence of actionsFrom "Enter data" to "Validate CAS"

Activity Diagram vs. Swim-Lane Diagram

AspectBasic Activity DiagramSwim-Lane Diagram
Actors shownNo -- focuses on process flowYes -- each lane is an actor or role
Best forSingle-actor processes, algorithm flowsCross-functional processes with handoffs
ComplexityLowerHigher (adds responsibility dimension)
RevealsDecision logic, parallel pathsHandoffs, responsibilities, bottlenecks

Rule of thumb: If the process involves 2+ actors, use a swim-lane diagram. If it is a single actor performing a sequence, a basic activity diagram is sufficient.

Why This Works

  • Visual alignment -- Stakeholders who disagree on a text description often agree when they see the same diagram
  • Handoff detection -- Every arrow that crosses a swimlane boundary is a handoff. Handoffs are where requirements for notifications, approvals, and data transfer live.
  • Gap identification -- Missing decision branches, dead-end paths, and unhandled exceptions are visible in the diagram
  • Requirement derivation -- Each action, decision, and handoff in the diagram is a candidate for one or more requirements

Anti-Patterns

  • The Flowchart Novel -- A single diagram with 40+ actions. Too complex to review or validate. Break into sub-processes.
  • The Happy Path Only -- Diagram shows only the normal flow with no decision branches or error handling.
  • The Implementation Diagram -- Modeling system internals (database queries, API calls) instead of business process steps.
  • The Static Diagram -- Creating the diagram once and never updating it. Process models should evolve with understanding.

Application

Use template.md for the process model specification structure.

Step 1: Identify the Process to Model

Start with a process that:

  1. Spans multiple actors or roles (good candidate for swim-lane diagram)
  2. Has been described in interviews or observations (you have data to model)
  3. Is not well understood or is disputed among stakeholders

For ChemTrack:

  • Chemical shipment intake (technician, safety officer, lab manager)
  • Chemical disposal (technician, safety officer, environmental compliance)
  • Monthly compliance reporting (technician, lab manager, safety officer)

Step 2: Identify Actors and Swimlanes

List every role that participates in the process. Each role becomes a swimlane.

ChemTrack Chemical Intake Process:
Swimlane 1: Lab Technician
Swimlane 2: ChemTrack System
Swimlane 3: Safety Officer
Swimlane 4: Lab Manager

Include "System" as a swimlane when the system performs automated actions (validation, notifications, calculations).

Step 3: Map the Actions and Sequence

List every action in the process, assign each to a swimlane, and define the sequence:

1. [Lab Technician] Receive shipment and inspect packaging
2. [Lab Technician] Enter chemical data into ChemTrack
3. [ChemTrack System] Validate CAS number against PubChem
4. [ChemTrack System] Check for duplicate chemicals in inventory
   --> Decision: Duplicate found?
       Yes --> [ChemTrack System] Display duplicate warning
               [Lab Technician] Choose to update existing or create new
       No  --> Continue
5. [ChemTrack System] Assign inventory ID and save record
6. [ChemTrack System] Notify Safety Officer of new hazardous chemical
7. [Safety Officer] Review hazard classification
   --> Decision: Hazard class correct?
       Yes --> [Safety Officer] Approve entry
       No  --> [Safety Officer] Correct classification and approve
8. [ChemTrack System] Update inventory status to "Active"
9. [Lab Manager] Receive weekly summary of new chemicals

Step 4: Add Decisions, Forks, and Joins

For each action, ask:

  • Is there a decision here? Add a diamond with labeled branches (Yes/No, or condition labels)
  • Can anything happen in parallel? Add a fork bar to split and a join bar to merge
  • What happens on failure? Add exception branches

Parallel example:

After chemical data is entered:
  FORK -->
    Path A: [System] Validate CAS number
    Path B: [System] Check storage location capacity
  JOIN --> (both must complete before continuing)

Step 5: Draw the Diagram

Use text-based notation or a diagramming tool:

Text-based notation (for documentation):

[Start]
  |
  v
[Lab Technician] Receive shipment
  |
  v
[Lab Technician] Enter chemical data
  |
  v
[System] Validate CAS number
  |
  v
<CAS Valid?> --No--> [System] Display error
  |                      |
  Yes                    v
  |               [Lab Technician] Correct CAS
  |                      |
  v                      v
[System] Check duplicates <----+
  |
  v
<Duplicate?> --Yes--> [System] Show duplicate warning
  |                      |
  No                     v
  |               [Lab Technician] Update or create new
  v                      |
[System] Save record <---+
  |
  v
<Hazardous?> --Yes--> [System] Notify Safety Officer
  |                      |
  No                     v
  |               [Safety Officer] Review and approve
  v                      |
[System] Set status "Active" <---+
  |
  v
[End]

Swim-lane representation (text format):

| Lab Technician    | ChemTrack System      | Safety Officer    |
|-------------------|-----------------------|-------------------|
| Receive shipment  |                       |                   |
| Enter chem data   |                       |                   |
|                   | Validate CAS number   |                   |
|                   | <CAS Valid?>          |                   |
| Correct CAS (No)  |                       |                   |
|                   | Check duplicates      |                   |
|                   | Save record           |                   |
|                   | Notify (if hazardous) |                   |
|                   |                       | Review & approve  |
|                   | Set status "Active"   |                   |

Step 6: Derive Requirements from the Model

Every element in the diagram generates candidate requirements:

Diagram ElementRequirement TypeExample
Action (system)Functional requirement"ChemTrack shall validate the CAS number against PubChem"
DecisionBusiness rule + functional requirement"If the CAS number is invalid, ChemTrack shall display an error message"
Fork/JoinPerformance or concurrency requirement"ChemTrack shall validate CAS number and check storage capacity simultaneously"
Handoff (cross-lane arrow)Notification or workflow requirement"When a hazardous chemical is added, ChemTrack shall notify the Safety Officer via email"
SwimlaneAuthorization requirement"Only users with the Safety Officer role shall approve hazard classifications"

Step 7: Validate with Stakeholders

Present the process model to stakeholders and ask:

  1. "Does this accurately represent the current process?" (for as-is models)
  2. "Is this how you want the new process to work?" (for to-be models)
  3. "Are there any paths or decisions missing?"
  4. "Who is responsible for each action -- is the swimlane assignment correct?"
  5. "What happens when [specific exception] occurs?"

Record corrections and update the model iteratively.


Examples

See examples/sample.md for a complete process model with derived requirements.

Mini example excerpt:

markdown
**Process:** Chemical Disposal
**Actors:** Lab Technician, ChemTrack System, Safety Officer

Key Handoff Identified:
Arrow from [System] to [Safety Officer]: "Disposal approval request"
--> Derived Requirement: CT.DISP.002: When a lab technician initiates
    chemical disposal, ChemTrack shall send a disposal approval request
    to the Safety Officer assigned to that lab.

Common Pitfalls

Pitfall 1: Modeling Implementation, Not Business Process

Symptom: Diagram shows "System queries database" and "API returns JSON" instead of business activities.

Consequence: The model is a system design document, not a process model. Stakeholders cannot validate it.

Fix: Model business activities: "Record chemical," "Approve disposal," "Generate report." Leave implementation to design.


Pitfall 2: Too Many Actions in One Diagram

Symptom: A single activity diagram with 30+ actions spanning an entire business area.

Consequence: Unreadable, unvalidatable. Stakeholders lose interest on slide 1.

Fix: Limit each diagram to 7-15 actions. Decompose large processes into sub-processes, each with its own diagram. Use a summary-level diagram that references sub-process diagrams.


Pitfall 3: Missing Exception Paths

Symptom: Every decision diamond has a "Yes" path but no "No" path (or vice versa).

Consequence: The process model only covers the happy path. Exception handling requirements are not derived.

Fix: For every decision, ask "What happens on the other branch?" Both paths must lead somewhere (another action, an error handler, or an end node).


Pitfall 4: Swimlanes Without Clear Responsibility

Symptom: Actions are placed in swimlanes arbitrarily. "Validate CAS number" appears in the Lab Technician lane when it is a system function.

Consequence: Role-based requirements and authorization rules are wrong.

Fix: Each action belongs to the actor who performs it. If the system performs validation automatically, it belongs in the System swimlane. If the technician manually checks, it belongs in the Technician swimlane.


Pitfall 5: Never Updating the Model

Symptom: Process diagram was created in week 1 and never revised despite significant requirements changes.

Consequence: The model diverges from reality. New team members use an outdated process understanding.

Fix: Treat process models as living documents. Update when requirements change. Version control them alongside requirements.

References

Related Skills

  • skills/use-case/SKILL.md -- Use cases detail the interactions within a single process step
  • skills/state-modeling/SKILL.md -- State diagrams complement process models by showing object lifecycles
  • skills/context-diagram/SKILL.md -- Context diagrams show system boundaries; process models show internal flows
  • skills/observation-analysis/SKILL.md -- Observation data feeds into as-is process models
  • skills/writing-requirements/SKILL.md -- Converting derived requirements into well-formed shall statements

External Frameworks

  • Karl Wiegers & Joy Beatty, Software Requirements, Third Edition (2013) -- Chapter 12: Activity Diagrams and Swim-Lane Diagrams
  • OMG Unified Modeling Language (UML) Specification -- Activity Diagram notation
  • Geary Rummler & Alan Brache, Improving Performance (2012) -- Cross-functional process mapping

Skill type: Component Dependencies: skills/stakeholder-analysis/SKILL.md Used by: skills/requirements-analysis-process/SKILL.md, skills/srs-document/SKILL.md

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Process Modeling?

Create activity diagrams and swim-lane diagrams that model cross-functional processes and derive requirements. Use when you need to visualize workflows, identify handoffs, and find missing requirements.

Firwat Process Modeling op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Process Modeling besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Process Modeling an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/jdm4pku/RE-Skills/tree/main/skills/process-modeling an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Process Modeling benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Process Modeling benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Process Modeling domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Process Modeling gratis?

De Skill gëtt vum jdm4pku op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇