计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
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.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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.
Ask for these only if they aren't already provided:
One line on what flow this traces.
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, anything async (-) ).
sequenceDiagram. Declare participant X as Label (or actor) up front.->> = call/request; dashed -->> = response/return; -) = async message.Note over A,B: ... for context and alt/else/end for alternative paths if needed.->> vs -->>UML sequence diagramming (lifelines, sync/async messages, alt fragments), expressed as renderable Mermaid.