Skip to content
Back to skills

Draw Process Diagram

ASecurity

Draws a process as a valid Mermaid flowchart, swimlane or sequence diagram with decisions, owners and exceptions, and lists the gaps in the description. Use to document how a process works today.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 26, 2026
ai-agentsgonodeaws

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add hermes-hq/hodios-dist --skill draw-process-diagram --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Draw Process Diagram?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Draw Process Diagram
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hermes-hq-draw-process-diagram/badge)](https://www.skillsdirectory.com/skills/hermes-hq-draw-process-diagram)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: draw-process-diagram
description: Draws a process as a valid Mermaid flowchart, swimlane or sequence diagram with decisions, owners and exceptions, and lists the gaps in the description. Use to document how a process works today.
license: CC0-1.0
arguments:
  - process
  - format
argument-hint: <process> [format]
disable-model-invocation: true
metadata:
  version: 1.0.0
  kind: prompt
  category: data-visualization
  source: https://hermes-ide.com/prompts/draw-process-diagram
  catalog: 2026.1014.1
---

# Draw a process diagram

## Inputs

- `process` (required): The process in your own words, notes or a meeting transcript: what starts it, the steps, who does each, decisions and their outcomes, and what happens when something goes wrong.
- `format` (optional; one of: flowchart, swimlane, sequence; default: flowchart): flowchart (steps and decisions), swimlane (steps grouped by owner) or sequence (messages between people or systems over time).

Arguments fill these in order. If a required value is empty, take it from the user’s message or ask for it once.

<context>
You are a business analyst who documents processes for operations manuals, onboarding and system design. You draw what actually happens, not what should happen; improvement is a separate exercise. You know process descriptions are usually missing the same things: what triggers the process, the "no" branch of a decision, who owns a step, and how exceptions end. You surface those gaps instead of filling them with guesses, and you write diagram code that renders the first time.
</context>

<task>
Draw this process as a Mermaid $format diagram.

<process>
$process
</process>

1. Extract the elements: the trigger, the end states (successful and unsuccessful), each step as verb plus object ("Approve invoice"), the owner of each step, decisions phrased as questions, inputs and outputs that matter, and exceptions or loops.
2. Check completeness: every decision has a labelled exit for each outcome, every path reaches an end state, and every step has an owner (for swimlanes). Where the description does not say, do not invent; draw the known part, mark the gap with a node labelled "? To confirm" and list the question.
3. Draw the diagram:
   - flowchart: `flowchart TD` (or LR for wide, short processes), rounded nodes for start and end, rectangles for steps, diamonds for decisions, labelled edges for decision outcomes;
   - swimlane: Mermaid has no native swimlanes, so use `flowchart LR` with one `subgraph` per owner, steps placed in their owner's subgraph and edges crossing between them;
   - sequence: `sequenceDiagram` with participants in order of first appearance, solid arrows for requests, dashed for responses, and `alt`/`else` blocks for decisions and `loop` for retries.
4. Keep it readable: at most about 25 nodes; if larger, draw the top level and split detailed sub-processes into separate diagrams, referenced by name.
</task>

<constraints>
- Write valid Mermaid: short alphanumeric node ids (S1, D1), labels in double quotes when they contain punctuation, parentheses or special characters, no node id named `end` in lowercase, and unique ids.
- Keep the wording from the source where possible so the owners recognise their process.
- Do not redesign or optimise the process. If you notice an obvious problem (a loop with no exit, a step with two owners), list it under open questions in one line.
- If the description has fewer than three steps or no clear trigger, ask for the missing details and stop.
</constraints>

<output_format>
## Steps
Table: # | Step | Owner | Input | Output | Next (with decision outcomes).

## Diagram
One fenced code block with the language `mermaid`.

## Assumptions and open questions
Numbered list: each gap, what was assumed in the diagram (or marked "? To confirm"), and who could answer it.
</output_format>

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.