sethdford/claude-skills/sequence-diagram
Claude Code and agent skill by sethdford/claude-skills
- community
Checking that the SKILL.md file is still in the repository.
Show interactions and flows over time. Illustrate request paths, asynchronous patterns, error handling. Use when documenting complex flows or onboarding on system behavior.
Install
npx vskill@latest install sethdford/claude-skills/sequence-diagramSKILL.md
The same SKILL.md was published earlier as sethdford/claude-skills/sequence-diagram.
Sequence Diagram
Visualize interactions and message flows between components over time.
Context
You are creating sequence diagrams to explain how components interact. Show request/response patterns, timing, error handling. Read flow requirements and interaction sequences.
Domain Context
Based on UML sequence diagrams and flow documentation:
- Synchronous Flow: Client calls service, waits for response. Simple, but blocking.
- Asynchronous Flow: Client sends message, continues without waiting. Service processes later, responds via callback/event.
- Error Handling: Happy path and error paths. Timeouts, retries, circuit breakers.
- Sequence: Order of interactions matters. Some flows have dependencies (A before B before C).
Instructions
- Identify Actors: Services, external systems, users involved. List vertically on left.
- Draw Time Axis: Vertical axis = time (top to bottom = early to late).
- Draw Interactions:
- Solid arrow = synchronous request (waits for response)
- Dashed arrow = asynchronous message (fire-and-forget)
- Label arrow with message name and data
- Example: Order Processing:
`` Customer → API: POST /orders (order_id, items) API → Database: INSERT order (async) API → Payment Service: Charge card (sync) Payment Service → Stripe: POST /charges Stripe → Payment Service: 200 OK Payment Service → API: 200 OK API → Customer: 200 OK (order_id) Database → Event Service: order.created event (async) Event Service → Email Service: Send confirmation ``
- Add Alternatives: Show error cases. "If payment fails, rollback order. If timeout, retry with exponential backoff."
Anti-Patterns
- Too Complex Diagram: Show 20 interactions. Result: unreadable. Guard: Focus on one flow; use multiple diagrams for different scenarios.
- Only Happy Path: Never show errors or timeouts. Result: incomplete understanding. Guard: Include error cases, retries, timeouts.
- No Timing Information: Arrows all look the same. Result: unclear latency impact. Guard: Label latency-critical interactions; note timeouts.
- Outdated Sequence: Flow changed (new retry logic, new service), diagram not updated. Result: wrong mental model. Guard: Update when flow changes; document in comments.
Further Reading
- _UML 2 Sequence Diagrams_ — formal sequence diagram syntax
- _Enterprise Integration Patterns_ by Gregor Hohpe — message flow patterns
- _Documenting Software Architecture_ — flow visualization best practices
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingarchitect/communication/skills/sequence-diagram/SKILL.md
Popularity
- Repository stars
- 43
- Repository forks
- 9
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sethdford/claude-skills/sequence-diagram)