sequence-diagram
Installation
SKILL.md
Sequence Diagram Skill
When the question is "in what order do these things talk to each other?", a sequence diagram is the clearest answer. This skill turns a described interaction — an API call chain, an auth handshake, a webhook flow — into a correct Mermaid sequence diagram with participants, ordered messages, return values, and the important error/timeout paths.
Required Inputs
Ask for these only if they aren't already provided:
- The participants — the actors/services/systems involved (client, API, DB, third party…).
- The messages — what each one sends to the next, in order; what comes back.
- Sync vs async — which calls block on a response vs fire-and-forget.
- Edge cases — the failure, timeout, or alternative path worth showing.