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★ 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. Ifsad.mdis 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 ofsad.mdfor 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.mdinterview_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
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).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, analt/elsebranch 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 oneAskUserQuestionbefore drawing.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 arearchitecture-design/generate-data-modeldecisions, not runtime-view ones. Whensad.mdfrontmattertarget_surfacesdeclares 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/workerfeature 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.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 analtafter N failures. Otherwise → sync (request → response).**Draft each f
Установить complete-sequence-diagrams в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic