skills/sequence-diagram/SKILL.md
This skill should be used when the user asks to "create a sequence diagram", "update a sequence diagram", "draw a sequence diagram", "visualize component interactions", or needs to represent time-ordered interactions between actors or system components using Mermaid.
npx skillsauth add hhk7734/hhk7734 sequence-diagramInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when creating a new Mermaid sequence diagram or updating an existing one. This covers syntax for participants, messages, activations, notes, loops, alternative paths, and parallel actions.
sequenceDiagram: Every sequence diagram must start with this keyword.Alice->>Bob: Hello John, how are you?participant Alice or participant A as Aliceactor Alice (Stick figure)participant Alice @{ "type": "boundary" }participant Alice @{ "type": "control" }participant Alice @{ "type": "entity" }participant Alice @{ "type": "database" }participant Alice @{ "type": "collections" }participant Alice @{ "type": "queue" }as alias and @{ "type": ... } simultaneously.create participant <Name> before the message that creates it.
create participant B
A->>B: Hello
destroy <Name> before the message that destroys it.
destroy B
A->>B: Delete
-> Solid line without arrow--> Dotted line without arrow->> Solid line with arrowhead-->> Dotted line with arrowhead-x Solid line with a cross at the end--x Dotted line with a cross at the end-) Solid line with an open arrow at the end (async)--) Dotted line with an open arrow at the end (async)activate Alice ... deactivate AliceAlice->>+Bob: Hello (activate Bob), Bob-->>-Alice: Hi (deactivate Bob)Note right of Alice: TextNote left of Alice: TextNote over Alice: TextNote over Alice,Bob: Text spanning bothloop Loop text ... endalt Describing text ... else ... endopt Describing text ... endpar [Action 1] ... and [Action 2] ... endcritical [Action] ... option [Circumstance] ... endbreak [something happened] ... end<br/> instead of \n for line breaks in messages and notes.rect rgb(0, 255, 0) ... endrect rgba(0, 0, 255, .1) ... endautonumber to the beginning of the diagram to automatically number messages.sequenceDiagram
autonumber
actor U as User
participant C as Client
participant S@{ "type": "control" }
participant Database@{ "type": "database" }
U->>C: Request Data
activate C
create participant T as Task
C->>T: Start Task
T-->>C: Task Started
destroy T
C->>T: Stop Task
C->>S: API Call
activate S
S->>Database: Query
activate Database
Database-->>S: Result
deactivate Database
S-->>C: Response
deactivate S
C-->>U: Display Data
deactivate C
data-ai
This skill should be used when the user asks to "create a sequence diagram", "update a sequence diagram", "draw a sequence diagram", "visualize component interactions", or needs to represent time-ordered interactions between actors or system components using Mermaid.
development
This skill should be used when the user asks to "create a flowchart", "update a flowchart", "draw a flowchart", "visualize a workflow", "diagram a process or algorithm", or needs to represent decision trees, state transitions, or workflows using Mermaid.
tools
Use when the user asks to create git commits, run /commit, commit current changes, generate commit messages, or split changed files into focused Conventional Commits without pushing.
tools
Use when the user asks to run /commit-push, commit current changes and push the branch to the remote without opening a pull request.