/openflowkit:openflowkitfrom OpenFlowKit
Draws diagrams (flowchart, architecture, sequence, ER, class, mindmap, git graph) as editable .openflow.json files beside code. Validates Mermaid or OpenFlow DSL via MCP server.
Ships in OpenFlowKit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Write Mermaid or OpenFlow DSL, hand it to the openflowkit MCP server, and save the result as a
.openflow.json beside the code it explains: it opens at app.openflowkit.com (Open file) and reads back.
When to draw: a flow with branches, a system with more than three moving parts, a protocol, a data model, a state machine. Not a list, a single call, or what one sentence explains.
claude mcp add -s user openflowkit -- npx -y openflowkit mcp (any MCP client: npx -y openflowkit mcp); it
calls no outside service. In claude.ai or ChatGPT, https://mcp.openflowkit.com/mcp draws chat cards only.
validate_openflow_dsl with { dsl } until ok. Fix every error: a line the parser dropped is one,
with its line and a hint. Warnings are guesses; read them. For Mermaid (or Structurizr DSL, D2),
converted.losses name what did not carry over and converted.dsl is what it became.whoami; if not, ask the user to open app.openflowkit.com/#/connect),
create_diagram with { dsl } draws where the user is looking. Otherwise use file mode:
openflow_create, then create_diagram with { dsl, documentId }.openflow_save with { path } (plus documentId in file mode) beside the code, e.g.
src/payments/checkout-flow.openflow.json; svg: true also writes a .svg (for a README).get_diagram returns the DSL and frameId (file mode: openflow_open, then pass documentId) → edit the
text → update_diagram with { frameId, dsl } → openflow_save, not create_diagram (a second diagram).
The redraw drops canvasEdits (the user's recolours, moves, renames) unless you merge each carry into
that node's one [ … ] list; discarded lists any lost. To re-read, since: <revision> gives dslDiff:
only the canvas changes, canonically numbered. "The box I selected" is selection in get_document.
discover_architecture with { path } proposes a C4 workspace (dsl) from the code. Review its
names, create_diagram with it, and write the text to architecture.ofk at the repo root; later,
drift_report with { path } says what the code gained or lost since.
First line is the family: flowchart, architecture, sequence, state, erd, class,
mindmap, gitgraph, optionally with a direction (flowchart right). Lines are statements;
// starts a comment. Nodes are declared by name; edges declare their ends.
flowchart right
title: Checkout
group Payments {
Pay [diamond]
Stripe [icon: tabler/brand-stripe]
}
Cart -> Pay : card ok?
Pay -> Done [ellipse, green] : yes
Pay --> Cart : no [red]
Pay -> Stripe : charge [thick]
-> solid, --> dashed, <-> both ends, -- no heads, A -> B : label.[ … ]: a shape, a colour, a fill, flags, or key: value.rect rounded circle ellipse diamond cylinder hexagon cloud doc note parallelogram person queue component browser mobileblue green red orange violet teal pink yellow gray or #hex.icon: aws/lambda, gcp/pubsub, tech/react, tabler/user. A node whose label names a
technology (Postgres, Redis, S3 bucket) gets its icon by itself; icon: none stops it.
iconpos: left draws an icon card as a row, the icon beside its name. search_icons finds exact ids.group Name { … } boxes the nodes first mentioned inside it, so open groups before edges.
An edge to Name ends on the group itself.
note Name : text pins a sticky to a node.sequence
participant Browser [person]
Browser -> API : POST /login
API -> DB : find user
DB --> API : row
alt valid {
API --> Browser : 200 + token
} else invalid {
API --> Browser : 401
}
erd
users {
id uuid pk
email text unique
}
orders {
id uuid pk
user_id uuid fk
}
users ||--o{ orders : places
For any other family, or more detail, call get_syntax with the family name.
flowchart LR
A[Client] -->|HTTPS| B(API)
B --> C[(Postgres)]
Converts: flowchart, sequenceDiagram, stateDiagram, classDiagram, erDiagram, mindmap, architecture-beta,
gitGraph; not gantt, pie, journey (write chart bar DSL, see get_syntax). Structurizr and D2 text convert too.
OrderService).update_diagram.validate_openflow_dsl passes, then save, then report the path.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
diagrams, mermaid, architecture-diagrams, flowcharts, c4-model
npx claudepluginhub openflowkit/openflowkit --plugin openflowkitOther plugins' skills for the same job