sequence-diagram

sequence-diagram is a skill for Claude Code from sethdford/claude-skills. It costs 33 tokens per session (607 once invoked), scanned A, original, MIT.

A guide for drawing sequence diagrams, which show how people, services, and systems exchange messages over time. It covers both waiting requests and messages processed later.

In plain words
What is it for?
Use it to document request flows, asynchronous jobs, callbacks, timeouts, retries, and error handling.
Why use it?
It makes the order of interactions, responses, delays, and failure paths easier to understand when a system has several moving parts.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the communication plugin — 7 skills shipped together

Good fit Use it to document request flows, asynchronous jobs, callbacks, timeouts, retries, and error handling.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sethdford/claude-skills/sequence-diagram
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sethdford/claude-skills --skill sequence-diagram
Clone the repo
git clone --depth 1 https://github.com/sethdford/claude-skills

Made for: Claude Code.

Or install communication, the plugin that ships this one along with the rest of its 7 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sequence-diagram

README.md
[![agentmods](https://agentmods.dev/badge/skills/sethdford/claude-skills/sequence-diagram/github.svg)](https://agentmods.dev/skills/sethdford/claude-skills/sequence-diagram)
Your own site
<a href="https://agentmods.dev/skills/sethdford/claude-skills/sequence-diagram"><img src="https://agentmods.dev/badge/skills/sethdford/claude-skills/sequence-diagram/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sequence-diagram

Your own site · 80×15
<a href="https://agentmods.dev/skills/sethdford/claude-skills/sequence-diagram"><img src="https://agentmods.dev/badge/skills/sethdford/claude-skills/sequence-diagram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 607 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.00607
Opus 5 $0.00016 $0.00303
Sonnet 5 $0.00007 $0.00121
Haiku 4.5 $0.00003 $0.00061

Measured 10d ago against content hash 33347898b7f5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

sequence-diagram scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

architect/communication/skills/sequence-diagram/SKILL.md · 62 lines

How it starts

The opening of the file, as written. The whole thing — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

  1. Identify Actors: Services, external systems, users involved. List vertically on left.

  2. Draw Time Axis: Vertical axis = time (top to bottom = early to late).

  3. Draw Interactions:

    • Solid arrow = synchronous request (waits for response)
    • Dashed arrow = asynchronous message (fire-and-forget)
    • Label arrow with message name and data
  4. 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
    
  5. 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.

Read the full file on GitHub · 62 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 62 lines · 33 tokens per session scan A 33347898b7f5

Subscribe to this mod's changes

sequence-diagram is a skill published in the GitHub repository sethdford/claude-skills (40 stars, last pushed 6mo ago), licensed MIT. It adds 33 tokens to every session and 607 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories