Creates a repository-aware design spec and Definition of Done from a raw UI request or user story. Reads design-system.md, ux-flows.md, and existing SDLC artifacts, then writes docs/features/SLUG/design-spec.md.
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.
Create the contract that both a designer and an implementation agent can follow in a single design-spec.md: its specification half (BR-XX) says what must be designed and what existing product behavior must survive; its Definition of Done half says how the team will prove the result is complete.
This skill closes a specific SDLC gap:
story or PRD → design-system → ux-flows → prepare-design-spec → screens (pen.dev / Figma / code)
→ implementation → verify-ui
The line, its file layout and the input ladder are shared with the other design skills →
../_shared/design-line.md.
It does not invent a redesign from taste. It traces every important statement to the user's words, an existing SDLC artifact, or evidence in the repository.
Product designer or frontend engineer, with the product owner confirming scope and the developer confirming implementation constraints.
interview or write-prd for a larger feature; directly from a small raw request for a
bounded UI iteration.Do not use it to discover the entire product strategy: run interview first. Do not use it to
verify a finished screen in a browser: run verify-ui after implementation.
<slug> in kebab-case, for example meme-editor.../_shared/design-line.md §3
(the single source; not restated here). This skill's delta: it skips rung 2, because
design-spec.md is its own output (an existing one is updated in place, not read as intent), and
a linked issue counts as the inline request. A missing PRD is normal before module 6; only
missing intent stops.docs/features/<slug>/ux-flows.md — the flows, the SCR-NN inventory and the error
branches (W-NN, D-NN, N-NN); they seed §5 Target user flow and §8 State inventory.docs/design/design-system.md — the token source, the component inventory and the
conventions; they seed §9 Reuse and §13 Design references.Name the raw request. Preserve the user's original request verbatim in the design spec. If the request is missing, ask for one to three plain-language sentences: who needs what change and why.
Choose the evidence source. Walk the input ladder (Inputs above, design-line §3). Record
which sources exist. A missing PRD is acceptable for a small UI iteration;
missing intent is not. If ux-flows.md exists, cite its flows and SCR-NN ids instead of
re-deriving them; a branch it marks derived (D-NN) stays Proposed here until the user
confirms it.
Inspect the real product before proposing design. Read the route entry point, styles or
tokens, reused components, data calls, navigation targets, and relevant tests. Run only
read-only discovery commands. Record exact paths and current behavior in Current evidence.
Reconstruct the current user flow. Write the start state, user actions, system responses, success outcome, and recovery paths. Do not reduce an interactive screen to a screenshot.
Ask only questions the repository cannot answer. Cover these seven decisions: user and job, trigger, target route/surface, required actions, states and failures, reuse and constraints, and proof of success. Batch only the unresolved questions and explain why each answer changes the design.
Derive the specification. Copy templates/design-spec.md to
docs/features/<slug>/design-spec.md and fill the specification sections (1–15). Use N/A — <reason>
instead of deleting a section. Requirements must describe observable product behavior, not an
arbitrary implementation.
Separate facts, decisions, and proposals. Mark every material item as one of:
Confirmed (user or SDLC artifact), Observed (repository evidence), or Proposed (needs
approval). Do not quietly turn a model preference into a requirement.
Specify the design surface. Define target routes, desktop/mobile frames, content, component
and token reuse, state specimens, responsive behavior, accessibility, and explicit non-goals.
For a redesign, state which existing product semantics must remain unchanged. Reuse comes from
the docs/design/design-system.md inventory by name; §8 lists every state ux-flows.md sends
to a screen, with its source token (W-NN, D-NN, N-NN, AC-NN).
Write the handoff contract. Map each design element to its likely code owner or existing
component. If no reusable owner exists, say new component candidate; do not invent a path.
Derive the Definition of Done from risk. Fill the Definition of Done section (16) of the
same design-spec.md. Add at least one check for every specification section
that could fail: structure, tokens/reuse, states, behavior, responsive layout, accessibility,
deterministic gates, live browser evidence, and repository scope.
Make every DoD item testable. Each row must name the expected result and its evidence:
repository path, command, browser action, screenshot, design-node inspection, or API outcome.
Replace vague words such as nice, modern, correct, and pixel-perfect with observable
criteria.
Trace the contract. Give each requirement an ID (BR-01, BR-02, ...) and each DoD item
an ID (DOD-01, DOD-02, ...). The DoD table must link back to one or more requirement IDs in
the same file, and the requirement-coverage table must list every BR-ID.
No requirement may be left without proof.
Run the spec-ready gate. Confirm: no invented routes or dependencies; current behavior
is documented; desktop and mobile are covered where relevant; every screen has a row for each
of the six state classes (default / loading / empty / error / success / validation, a real
state or an explicit N/A: <reason>, per ../_shared/design-line.md
§3) plus its named states from the flow branches (error-undelivered, ended), each with a
source token, and the interactive components have hover / focus / disabled; reuse and
non-goals are explicit; every requirement maps to a DoD check; all Proposed decisions are
visible.
Present the student-repeatable summary. Return four blocks: What we learned from the repository, What the user decided, What remains proposed, and Run next. The next action is
a design tool only when the spec-ready gate passes.
Handoff. Propose the commit prepare-design-spec: <slug> design-spec.md, then emit the
stage-handoff block per ../_shared/handoff.md — Review
docs/features/<slug>/design-spec.md — and Run next /sdlc:screens <slug> (it draws every
§8 state per the canon's tool and exports a PNG per state); ↳ or /sdlc:ux-flows <slug> first
when no flows exist, /sdlc:design-system when no canon exists. After the screens: implement
against screens.md + design-spec.md, run deterministic project checks, then
/sdlc:verify-ui <slug> against the live route. A generated image or an agent success message
is never completion evidence.
Use these only when the answer is not already in the repository or upstream artifacts:
docs/features/<slug>/design-spec.md exists, contains no unexplained empty sections, and every DoD check names concrete evidence.Confirmed, Observed, and Proposed statements are distinguishable.looks modern as DoD. It has no falsifiable evidence, so reviewers cannot agree on
completion./sdlc:prepare-design-spec meme-editor
Raw request: Improve the current meme generator so a person can edit both captions,
preview the result, and save it without breaking the existing gallery.
Inspect app/page.tsx, app/globals.css, /api/memes/random, /api/memes, and /gallery.
Create the design spec and Definition of Done before opening Figma or Pencil.
Expected outputs:
docs/features/meme-editor/design-spec.md
Design line without a PRD (the story was written by /sdlc:ux-flows):
/sdlc:prepare-design-spec chat
Reads docs/features/chat/story.md, ux-flows.md and docs/design/design-system.md;
writes docs/features/chat/design-spec.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
design-spec, definition-of-done, sdlc, design-to-code, ui-specification
/sdlc:prepare-design-specfrom sdlc
npx claudepluginhub genkovich/sdlc --plugin sdlc24 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./complete-sequence-diagramsUse 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}.Other plugins' skills for the same job