sequence-diagram
Show interactions and flows over time. Illustrate request paths, asynchronous patterns, error handling. Use when documenting complex flows or onboarding on…
от sethdford★ 51 звезда на GitHub
Установить sequence-diagram в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
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 confirmationAdd 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
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл sequence-diagram?
Show interactions and flows over time. Illustrate request paths, asynchronous patterns, error handling. Use when documenting complex flows or onboarding on system behavior.
Как установить скилл sequence-diagram?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sequence-diagram запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…