Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

complete-sequence-diagrams

БесплатноБез исполняемых скриптовНе проверен

Use to add Mermaid sequenceDiagram blocks to the SAD's runtime view (sad.md §6) — one per critical flow, showing how a request moves between generic…

genkovichот genkovich★ 17 звёзд на GitHub

Об этом скилле

Skill: complete-sequence-diagrams

Draws the runtime view of an already-designed feature: for each critical flow it produces a Mermaid sequenceDiagram block — generic participants, happy path plus the error branches the PRD demands — and writes them into docs/features/<slug>/sad.md §6. One flow at a time, user confirms each. The diagrams are the bridge between the static design (§5 building blocks) and the data layer: every persist/read step you draw becomes a hint for the indexes generate-data-model will need.

This skill keeps only its own machinery. Flow count is driven by the PRD, not a cap — every §4 user story / §5 acceptance criterion is covered (size may collapse detail, never coverage), and the proof of that coverage is persisted, not chatted: the US/AC → flow table is written into sad.md §6 as its last block (step 7), where review-feature's end-to-end trace and api-forge's coverage cross-check read it. Each diagram is confirmed in prose, never as raw Mermaid → ../_shared/diagram-presentation.md; the per-flow confirm-vs-proceed behaviour follows the interview-depth setting → ../_shared/interview-depth.md.

Owner

Tech Lead (drives the runtime decomposition). The PM confirms that each drawn flow matches a real user story; a backend engineer flags persist steps that imply a new index.

Inputs

  • <slug> — same feature slug used by every earlier stage.
  • Gate (hard-refuse if missing): docs/features/<slug>/sad.md. The §5 building-block view names the participants; §6 is where flows are written. If sad.md is absent → STOP and point: «run /sdlc:architecture-design <slug> first — sequences are written into its §6».
  • Strongly expected: docs/features/<slug>/PRD.md — §4 user stories tell you which flows exist; §5 acceptance criteria are the coverage floor — every AC must be shown by a flow, a branch, or an explicit non-runtime N/A (the step-7 coverage check). Present by this stage in the normal pipeline; if genuinely absent, fall back to §6/§5 of sad.md for the flow list and note that AC-coverage can't be verified.
  • (Optional) docs/features/<slug>/.size — depth hint for detail (XS/S may collapse a flow's internal steps), never for coverage. Absent → default to M.
  • (Optional) .claude/sdlc.local.md interview_depth (else medium) — governs only the diagram-confirmation UX (per-diagram prose+ask vs. write+summarize-and-proceed); this skill does not open its own depth question (it honors the setting, or a --depth= arg if passed).

Protocol

  1. Gate. test -f docs/features/<slug>/sad.md → fail = refuse with the pointer above. Then read §5 (participants) and §6 (any flows already drawn — this skill is additive, never rewrite an existing block).

  2. Pick the flows — PRD-driven, no cap. List the flows from PRD.md §4 user stories + §5 acceptance criteria (absent the PRD, from §6 itself): one flow per critical user story / distinct runtime path. There is no fixed cap — draw as many flows as the user stories and ACs need. Then plan AC coverage: map every §5 AC to where it will be shown — a dedicated flow, an alt/else branch inside the relevant flow, or explicitly non-runtime (e.g. a middleware-enforced authorization check, a build-time validation) with a one-line reason. Size only collapses detail (XS/S may show fewer internal steps per flow), never coverage. Confirm the flow list and the AC→flow map with one AskUserQuestion before drawing.

  3. Map participants — generic only. For each flow, draw participants from a fixed generic vocabulary: <client>, <ui>, <service>, <data-store>, <external-system>, <message-bus>. Do not invent concrete service or technology names — those are architecture-design / generate-data-model decisions, not runtime-view ones. When sad.md frontmatter target_surfaces declares a UI surface (web-frontend / mobile-app / desktop-app), draw the flows it touches as UI-driven — <user> (actor) → <ui> → <service> → <data-store> — so the user-visible step is shown, not just the service call (→ ../_shared/surfaces.md). A backend-only / cli / worker feature keeps the service-level vocabulary (no <ui>). <ui> stays generic like every other participant — never a framework or component name. If a flow needs a participant §5 never declared, note it («flow needs <message-bus>, not in §5 — flag for architecture-design») and still draw it.

  4. Sync vs async. If the PRD describes a webhook, scheduled job, queued/event-driven step, or any third-party callback → async: add an idempotency-key check as the handler's first step, a retry note (Note over <service>,<external-system>: retry N times with backoff), and a dead-letter branch in an alt after N failures. Otherwise → sync (request → response).

  5. **Draft each f

Полный SKILL.md на GitHub

Установить complete-sequence-diagrams в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

templates/seq-coverage.mdtemplates/seq-flow.md

FAQ

Что делает скилл complete-sequence-diagrams?

Use to add Mermaid sequenceDiagram blocks to the SAD's runtime view (sad.md §6) — one per critical flow, showing how a request moves between generic participants with happy + error paths. Triggers on "complete sequences for {slug}", "sequence diagram for {slug}", "draw the runtime flow", "add a sequence to the SAD", "/sdlc:complete-sequence-diagrams {slug}", "діаграми послідовності {slug}", "sequence для {slug}", "намалюй потік {slug}". Reads sad.md §5 for participants, drafts each flow from templates/seq-flow.md with generic participants, walks them Socratically one flow at a time, writes confirmed blocks into sad.md §6 — they inform data-model indexes downstream — and closes with the US/AC → flow coverage table written as the last block of §6 (`### Coverage: US/AC → flows`). Hard-refuse if sad.md is missing → run /sdlc:architecture-design first. Single-flow mode: /sdlc:complete-sequence-diagrams {slug} --flow {name}.

Как установить скилл complete-sequence-diagrams?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл complete-sequence-diagrams запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить complete-sequence-diagrams с