Adds Mermaid sequenceDiagram blocks to a SAD's runtime view (§6), one per critical flow with happy + error paths. Reads §5 participants, walks flows Socratically, and writes a US/AC coverage table.
Ships in sdlc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
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.
<slug> — same feature slug used by every earlier stage.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».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.docs/features/<slug>/.size — depth hint for detail (XS/S may collapse a flow's internal steps), never for coverage. Absent → default to M..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).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, 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.
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.
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).
Draft each flow from ./templates/seq-flow.md: a precondition note, the happy-path messages, an alt/else for the error branches the PRD acceptance criteria require, and a postcondition note. Mark every write as a generic persist note — Note over <service>,<data-store>: persists <entity> — so generate-data-model sees what to index. Keep messages verb-first and free of HTTP verbs / status numbers / SQL.
Present + confirm each flow, one at a time — in prose, never raw Mermaid. Per ../_shared/diagram-presentation.md: for each drafted flow, write the block into §6 under a ### <flow name> heading (so Obsidian renders it), validate it parses per ../_shared/mermaid-check.md, then describe it in prose — the happy path plus every alt/else branch in plain words. Never paste the raw sequenceDiagram source as the question. Confirm by prose, governed by the interview-depth setting: at medium/hard, one AskUserQuestion per flow with the 4-state actions (Accept / Fix / Save-as-OQ / Drop) — on Fix, regenerate + overwrite that one block, re-validate, re-describe (one round, second answer final); on Drop, remove the block again. At easy, write + a one-line prose summary into the assumptions ledger and proceed (no per-flow question). Never touch a flow already present in §6. Maintain a short edits-log.
Use-case + AC → flow coverage table — written into sad.md §6 (before finalizing). Two passes, one table, one fixed home. The table is a file artifact, not a chat message: it is written into docs/features/<slug>/sad.md as the last block of §6, under the fixed heading ### Coverage: US/AC → flows (after every ### <flow name> block, before ## 7), from ./templates/seq-coverage.md. Build it in two passes:
### <flow name> heading(s) that realize it. Every retained user story maps to ≥1 flow (a US with no flow is a gap — draft + confirm one, or de-scope it back through /sdlc:write-prd//sdlc:clarify-prd, never silently skip).flow), an alt/else branch (branch + the branch label in Note), or an explicit non-runtime N/A (N/A + its one-line reason in Note, e.g. «authorization check in middleware, not a runtime flow»).Columns are fixed: | ID | Realized by (§6 heading) | How | Note | — ID = US-NN / AC-NN exactly as the PRD spells it; Realized by = the §6 heading text(s), — for N/A; How ∈ flow / branch / N/A; Note = branch label, N/A reason, or empty. Close the block with one summary line: Coverage: <n>/<n> user stories · <m>/<m> ACs — <k> non-runtime N/A. No GAP may remain in the written table: if a Drop/Save-as-OQ during step 6 left a user story or an AC uncovered, draft + confirm the missing flow or branch first, or record the explicit N/A with the user. No §4 user story and no §5 AC may be silently uncovered.
Confirm the N/A rows, not the table. At medium/hard, one AskUserQuestion lists the N/A rows (and nothing else — the mapping rows are mechanical); at easy, write the table and add the N/A rows to the assumptions ledger. This step runs at every depth and size (easy/XS included) and the table is written even when every row is trivially flow — a §6 without the block is an unfinished run. Idempotent: on a re-run, if ### Coverage: US/AC → flows already exists in §6, replace the whole block (heading to the summary line) with the regenerated one — never append a second table, never leave a stale one. Print only the summary line in chat; the table itself lives in the file.
Finalize: order, validate, propose commit. Order the §6 flow blocks to match §4, keeping ### Coverage: US/AC → flows as the last block of §6. Re-validate every sequenceDiagram block per ../_shared/mermaid-check.md as the backstop (balanced alt/else/end, declared participants; fix any that don't parse before committing). Append any flagged items (new participants, decisions worth an ADR) as a **Flags:** bullet list directly under the coverage table's summary line — flag only, never auto-write an ADR. Propose commit sequences: <slug> runtime flows + coverage. Then emit the stage-handoff block per ../_shared/handoff.md — What I did (flows written + the coverage summary line) + Review (sad.md §6 — the flow blocks, and ### Coverage: US/AC → flows for the N/A rows) + Run next (/clear, then /sdlc:generate-data-model <slug>, which uses the persist notes to choose indexes).
/sdlc:complete-sequence-diagrams <slug> --flow <name> — draws one sequence on demand. Skips the full inventory (step 2) and goes straight to step 4 (classify → participants → draft → validate → confirm). Writes inline into sad.md §6 under ### <name>, above the ### Coverage: US/AC → flows block if one exists. It does not build a new coverage table; it patches the existing one: for every US/AC the new flow realizes, update that row (Realized by + How, replacing a N/A or an outdated entry) and refresh the summary line. If §6 has no coverage block yet, say so in the handoff («no coverage table in §6 — run the full /sdlc:complete-sequence-diagrams <slug> to generate it») and do not invent a partial one. Still uses generic participants and validates per ../_shared/mermaid-check.md.
sad.md §6 holds a Mermaid sequenceDiagram for every critical user story / distinct runtime path — no fixed cap; size may collapse a flow's internal detail, never its coverage.alt/else branch, or an explicit non-runtime N/A — the step-7 coverage check passed on both passes; nothing is silently uncovered (holds at every depth + size).sad.md §6 ends with exactly one ### Coverage: US/AC → flows block — fixed columns ID | Realized by (§6 heading) | How | Note, one row per §4 US and per §5 AC in PRD order, no GAP rows, a Coverage: n/n user stories · m/m ACs — k non-runtime N/A. summary line. A table shown only in chat, or a second stale table left after a re-run, fails this item.sequenceDiagram source as the question.<client> / <ui> / <service> / <data-store> / <external-system> / <message-bus>) — no concrete technology or service names. A declared UI surface uses <ui> in a UI-driven flow (<user> → <ui> → <service> → <data-store>); a backend-only feature omits it.generate-data-model.architecture-design / generate-data-model.review-feature / api-forge (or a reviewer) to open. The table is written into sad.md §6 under ### Coverage: US/AC → flows; chat gets the one-line summary.sequenceDiagram source in the terminal is unreadable — the user approves blind. Confirm in prose; let Obsidian render the written block (per ../_shared/diagram-presentation.md).### Cross-cutting: <name> heading./sdlc:decide-adr or a human.architecture-design reconcile it.../_shared/diagram-presentation.md — how each flow is confirmed (write → validate → prose-describe → confirm/proceed); never raw Mermaid as the question.../_shared/mermaid-check.md — parse-validation run on each block at step 6 and again as the step-8 backstop.../_shared/surfaces.md — a declared UI surface adds <ui> to the vocabulary and draws UI-driven flows; read from sad.md target_surfaces.../_shared/handoff.md — stage-handoff block format emitted at step 8../templates/seq-flow.md — generic-participant sequenceDiagram scaffold (sync + async), embedded inline in sad.md §6../templates/seq-coverage.md — the ### Coverage: US/AC → flows block (fixed columns + summary line), written as the last block of sad.md §6 at step 7.What SKILL.md sets; muted values are Claude Code's defaults
24 skills in this plugin
/api-forgeUse to derive the API contract for a feature — an OpenAPI 3.1 document at docs/features/{slug}/contracts/openapi.yaml plus a drift/sync report (api-sync-report.md with an explicit Verdict: PASS | PASS (with deferrals) | FAIL and a 5-point drift checklist), the right contract artifact per surface (events.md for async, cli.md for CLI, public-api.md for library/SDK), and — on the HTTP path, first run only — a baseline .claude/rules/openapi.md so later code follows the same API conventions. Triggers on "api for {slug}", "openapi for {slug}", "API contract for {slug}", "lock the interface for {slug}", "events for {slug}", "/sdlc:api-forge {slug}", "контракт API для {slug}", "OpenAPI для {slug}", "опиши ендпоінти". The contract is never hand-written: it is a derived function of data-model.md (typed fields + constraints), sad.md §6 sequence diagrams (error branches, async actors), and PRD.md acceptance criteria. Hard gate: docs/features/{slug}/PRD.md. data-model.md is recommended but optional — without it the skill runs in scenario B (PRD + sequences only) and fills unresolved_origins in the sync report. Renamed from define-api in v3.3.0; the legacy name is kept as a deprecation wrapper.
/architecture-designUse to produce a Software Architecture Document for a feature — Arc42 12 sections + C4 L1/L2 inline + ADRs spawned on a blast-radius gate — once PRD.md and CONTEXT.md exist. The feature's target surface(s) are chosen here (the first §4 decision → SAD frontmatter target_surfaces, read by every downstream stage). Drafts §1–§12 in-memory, batch-validates each section Socratically (4-state machine), spawns an ADR only when a decision crosses the blast-radius threshold (irreversible / multi-module / has legitimate alternatives), writes each resolved section + its ADRs atomically, then runs a clean-context critic before finalizing. Brownfield: reads docs/architecture-map.md (re-scans only if absent/stale). Triggers on "architecture for {slug}", "design architecture for {slug}", "SAD for {slug}", "arc42 for {slug}", "C4 context+container for {slug}", "/sdlc:architecture-design {slug}", "спроектуй архітектуру {slug}", "SAD для {slug}", "архітектурний документ {slug}". Hard-refuse if docs/features/{slug}/PRD.md is missing. Triggers: /sdlc:architecture-design {slug}. Output: docs/features/{slug}/sad.md + adr/NNNN-*.md./break-tasksUse to break a designed feature into atomic, ≤1-day tasks with a dependency graph, a per-task Definition of Done, and a machine-readable tasks.json that the implement-tasks engine consumes. Triggers on "task breakdown for {slug}", "break down tasks for {slug}", "tasks for {slug}", "plan the work for {slug}", "sprint plan for {feature}", "stage 13 for {slug}", "/sdlc:break-tasks {slug}". Reads PRD.md + sad.md + Accepted ADRs (+ data-model + openapi if present), writes docs/features/{slug}/tasks/{_epic,tracker,<task>}.md AND docs/features/{slug}/tasks/tasks.json. Tracker export to any issue tracker is optional and tool-neutral. Hard-refuses if PRD.md or sad.md or an Accepted ADR is missing. Stories LINK to upstream artefacts (PRD AC §, SAD §6, data-model, openapi), they do not duplicate them.
/clarify-prdUse to run an ambiguity sweep over a written PRD.md and close every under-specified point before glossary or architecture proceeds — so two engineers can't reasonably build different things from the same PRD. Triggers on "/sdlc:clarify-prd {slug}", "clarify {slug}", "find ambiguities in {slug}", "is the PRD ready", "sharpen the PRD", "прояснити PRD", "знайди неоднозначності {slug}", "чи готова специфікація". Re-reads the PRD, dispatches a clean-context devil's-advocate subagent to list where the PRD forks, then for each ambiguity runs AskUserQuestion to RESOLVE it (tighten §1/§5/§6 in place) or DEFER it (→ §8 Open questions with owner+due). Output: an updated docs/features/{slug}/PRD.md with every ambiguity resolved or deferred — none dangling. Hard-refuse if PRD.md is missing./classify-sizeUse to classify a feature into XS/S/M/L/XL and write docs/features/{slug}/.size so later skills know how much of each artifact to produce. Triggers on "classify size", "feature size", "is this XS or M for {slug}", "size {slug}", "/sdlc:classify-size {slug}", "класифікуй розмір {slug}", "який розмір фічі", "XS чи M". Asks four AskUserQuestion (PR count / time / new module-API-migration / breaking changes), maps to a size class via the shared size matrix, confirms with the user, and writes the one-line .size file. Syncs with PRD.md frontmatter feature_size: if present (warns on conflict). Output: docs/features/{slug}/.size + (opt.) PRD frontmatter update./decide-adrTriggers: "ADR for {decision}", "adr for {slug}", "document the decision on {topic}", "lock in the decision about {X}", "MADR for {topic}", "/sdlc:decide-adr {slug} {title}", "create ADR for a decision", "document the decision", "ADR on {topic}". Use to record a post-hoc or asynchronous architecture decision as a MADR ADR when it was NOT captured during the synchronous architecture-design pass — a choice made in code, in a chat, on a whiteboard, or one a break-tasks / review gate flagged as missing. Confirms the decision is ADR-worthy via the blast-radius gate, picks the next 4-digit number, copies architecture-design's MADR template, and fills context / drivers / considered options / outcome / honest consequences. Supports a Proposed → Accepted review flow. Output: docs/features/{slug}/adr/NNNN-{title}.md. For decisions made live with the user, use sdlc:architecture-design — it spawns ADRs inline (Accepted)./sdlc:complete-sequence-diagramsfrom sdlc
npx claudepluginhub genkovich/sdlc --plugin sdlcOther plugins' skills for the same job