From hhk7734
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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/hhk7734:sequence-diagramThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
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.
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
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub hhk7734/hhk7734 --plugin hhk7734