Flowchart

From KhaiTrang1995/agentic-awesome-kits · View interactive version

Flowchart is an AI agent skill from the GitHub repository KhaiTrang1995/agentic-awesome-kits. Generate flowchart .drawio from a process description — start/end, process, decision, standard mxGraph, opens directly in draw.io.

How to use this skill

Skill file

/flowchart — Generate Flowchart (draw.io)

When to use

Visualize a business process or control flow (business process, algorithm, approval flow) as a professional diagram editable in draw.io.

Input examples

/flowchart leave request approval: submit request → manager approve → HR approve → confirm
/flowchart container search flow: enter keyword → validate → query DB → results? → display / empty state
/flowchart --direction left-right CI/CD process: push code → build → test → deploy

Workflow

Phase 1 — Analyze steps

Identify steps by type:

Phase 2 — Layout (L3 preview)

Print node list + planned positions as a table before generating XML:

# | Type | Content | Position (x,y)
1 | Start | Start | (360, 40)
2 | Process | Enter keyword | (360, 140)
3 | Decision | Keyword valid? | (360, 260)
...

User reviews layout → Phase 3.

Phase 3 — Generate XML

Use _templates/flowchart.drawio as the frame, apply:

Phase 4 — Approval L1 → Write

Mandatory rules

Output

docs/diagrams/{feature}/flowchart-{slug}.drawio

See also

Need sequence diagram, ERD, UML class, C4 model, or processes >15 steps that need auto-layout instead of manual child-flowchart splits → use /diagram (more powerful, requires draw.io desktop CLI).

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.