Skip to content
Back to skills

Draw Sequence Diagram

ASecurity

Draws a sequence diagram, the order in which a project's parts call each other for one request and what comes back, such as a sign-in or a checkout, as an animated SVG with archgram, from its code or from a document the user names. Writes a spec in docs/diagrams/, checks it against the code and draws it, then reports briefly how exact it is. Use it when the user asks for a sequence diagram, or to update or repair one archgram drew.

  • 8 stars
  • 0 votes
  • 0 copies
  • 10 views
  • Added November 23, 2026
ai-agentsbashnodeaws

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 3 files and shows the line behind each finding

Scanned November 24, 2026

npx -y skills add byAbas/archgram --skill draw-sequence-diagram --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Draw Sequence Diagram?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Draw Sequence Diagram
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/byabas-draw-sequence-diagram/badge)](https://www.skillsdirectory.com/skills/byabas-draw-sequence-diagram)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: draw-sequence-diagram
description: Draws a sequence diagram, the order in which a project's parts call each other for one request and what comes back, such as a sign-in or a checkout, as an animated SVG with archgram, from its code or from a document the user names. Writes a spec in docs/diagrams/, checks it against the code and draws it, then reports briefly how exact it is. Use it when the user asks for a sequence diagram, or to update or repair one archgram drew.
license: MIT
compatibility: Requires Node 22 or later, with npx.
---

# Draw a sequence diagram

archgram draws the participants, the messages in order, the fragments
and the phases, light and dark in one SVG; its meaning is UML's (clause
17, Interactions). Your work: follow one request through the code, write
a short spec, and back every message with its line. The rules every kind
shares come from `archgram guide` (step 1); `find.md` beside this file
says how to find the order, `spec.md` how to write it.

## Find archgram

Every command runs archgram through npx (Node 22 or later), found where
it already is, once, before the first command. Read the project's root
`package.json` first.

- **The project's own.** When `package.json` lists archgram, run that
  one: write each command with `archgram` for `archgram@0.13.1` and
  `--no --offline` for `--yes`. When it is older than `0.13.1`, say so,
  with the project's own command to upgrade (`npm install --save-dev
  archgram@0.13.1`), and stop. If npx says it is missing, ask the user
  to install the project's dependencies, and stop.
- **This version, already on the machine:**

  ```bash
  npx --no --offline --loglevel=error archgram@0.13.1 --version
  ```

  It uses no network. When it prints `archgram 0.13.1`, run the commands
  as written.
- **Not there: ask before downloading.** Say what and from where: the npm
  package `archgram@0.13.1` and its native program, a few megabytes, from
  the npm registry. Offer to install it into the project (`npm install
  --save-dev archgram@0.13.1`) or to let npx fetch it once, and run
  neither until the user picks one.

## 1. Read the rules

```bash
npx --yes --loglevel=error archgram@0.13.1 guide
```

Then read `find.md` and `spec.md`.

## 2. Understand the project

Take the scenario from the user's words ("signing in"). Read only the
entry point of that request and the calls it makes, as `find.md` says:
never the whole codebase.

## 3. Write the spec, then check it

```bash
npx --yes --loglevel=error archgram@0.13.1 spec --section sequence
```

Write `docs/diagrams/<scenario>.archgram.yaml` (`sign-in`), then check
it until it passes:

```bash
npx --yes --loglevel=error archgram@0.13.1 check docs/diagrams/<scenario>.archgram.yaml
```

On an update, start from the spec there: `check` names what lost its
code; change only that and what the request asks.

## 4. Draw, look, open, report

```bash
npx --yes --loglevel=error archgram@0.13.1 build docs/diagrams/<scenario>.archgram.yaml --preview
```

Hold it to the guide's limits, look at the previews, open the drawing
and report, as the guide says.

Files in this skill

  • SKILL.md3 KB
  • find.md4.1 KB
  • spec.md2.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.