sequence-diagram
Diagram an interaction as a sequence of messages between participants over time. Use when asked to show an API flow, request/response, auth handshake, integration, or 'what calls what in what order'. Produces a ready-to-render Mermaid sequence diagram (renders live, exportable as PNG/SVG) plus notes on edge cases and failure paths.
npx skills add mohitagw15856/pm-claude-skills --skill sequence-diagram --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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. ## Output Format ### [Interaction name] — sequence One line on what flow this traces. ```mermaid sequenceDiagram actor U as User participant W as Web app participant A as API participant D as Database U->>W: Click "Sign in" W->>A: POST /login A->>D: Lookup user D-->>A: User record A-->>W: 200 + token W-->>U: Logged in Note over A,D: On miss, return 401 ``` **Notes** — failure/timeout handling, retries, idempotency, anythin
- Required Inputs
- Output Format
- [Interaction name] — sequence
- Mermaid Rules (so it renders)
- Quality Checks
- Anti-Patterns
- Based On
What does the sequence-diagram skill do?
Diagram an interaction as a sequence of messages between participants over time. Use when asked to show an API flow, request/response, auth handshake, integration, or 'what calls what in what order'. Produces a ready-to-render Mermaid sequence diagram (renders live, exportable as PNG/SVG) plus notes on edge cases and failure paths.
How do I install it?
Run `npx skills add mohitagw15856/pm-claude-skills --skill sequence-diagram --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From mohitagw15856/pm-claude-skills, a repository with 1,255 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
