/sdd:screensfrom sdd
Produces the canonical screen manifest for a UI feature, documenting every screen in every state (default, loading, empty, error, success, validation) with reuse-first component picks. Writes to docs/features/{slug}/screens.md. Draws via Figma MCP, Pencil MCP, or inline markdown wireframes.
Ships in sdd. 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.
Turns the approved architecture into the screen manifest — the one artifact tasks,
implement and review read for what every screen shows in every state. It runs between api
and tasks: by then the states are derivable, not invented — default plus every state the
spec §5 ACs, the sad.md §6 alt/else branches, and the contract error responses imply
(loading / empty / error / success / validation). Per state it names the components to reuse
from the docs/design-system.md inventory — a NEW: component only with a
why-no-primitive-fits justification. The visuals are drawn per the canon's tool; whatever the
tool, the manifest is the contract — downstream never reads the raw Figma/.pen file.
Optional by surface: its N/A condition (no UI surface in sad.md target_surfaces) lives in
../_shared/size-matrix.md and is evaluated by api's handoff
(carried forward when api itself is N/A). Invoked directly, it always runs.
Question phrasing → ../_shared/ask-style.md. Manifest prose follows
artifact_language — state tokens (default/loading/…), SCR ids, component names and
source-refs stay English → ../_shared/artifact-language.md.
Designer + frontend lead. The PM confirms the states match the ACs; review later checks the
built screens against this manifest.
<slug> — feature slug.docs/features/<slug>/sad.md — target_surfaces + the §6
branches feed the state derivation. Absent → STOP: «run design <slug> first».docs/features/<slug>/ux-flows.md — the SCR inventory this manifest details.
Absent → soft: offer /sdd:ux-flows <slug> first, or derive the inventory from spec §4 +
the SAD with a noted gap in the manifest — never a silent invention.docs/design-system.md — the tool + the component inventory. Absent → code mode
/sdd:design-system in the handoff.docs/features/<slug>/contracts/ (error responses → error states), spec.md §5 (ACs →
states), .size/.route (depth + handoff resolution; defaults stated loudly when missing).test -f docs/features/<slug>/sad.md → missing = refuse with the pointer
above. Read target_surfaces (no UI surface declared → say so and STOP — this stage is for UI
features; the upstream handoff normally skips it). Read ux-flows.md (or run the soft fallback
above), docs/design-system.md (tool + inventory), sad.md §6, contracts/, spec §5. Read
interview_depth (else medium; --depth= wins) — it governs the per-screen confirm volume.SCR-NN from the inventory, list the full state set:
default + every state the ACs / §6 branches / contract errors imply; a state class that
genuinely doesn't apply gets one explicit N/A: <reason> row. Pick the components per state —
from the design-system inventory by name; a NEW: <name> only when no existing primitive
fits, with the one-line why. Confirm per screen Socratically (medium/hard: one
AskUserQuestion per screen — Accept / Fix / Save-as-OQ / Drop; easy: derive + ledger, ask
only where the AC↔state mapping is genuinely ambiguous).tool. figma → draw into the canon's figma_file via the Figma MCP,
record the node-id per state; pencil → batch_design into
docs/features/<slug>/screens.pen, record node ids; code → inline markdown wireframes in the
manifest. Degrade, don't block: the tool's MCP unavailable in this session → fall back to
code mode and name the degradation in the manifest §Source + the handoff
(→ ../_shared/tool-adapters.md)../templates/screens.md → docs/features/<slug>/screens.md
(frontmatter tool copied from the canon; §Source). Steps 2–3 run screen by screen; write each
### SCR-NN section (and any §New components rows it adds) as soon as that screen is
confirmed and drawn — progressive writes per
../_shared/write-and-commit.md. Stamp updated_at after the
last screen. No commit yet — it follows the self-check.../_shared/self-check.md: re-read
the manifest from disk and verify 4 items: (1) every SCR-NN from ux-flows.md has a
section (inventory fully covered — or the noted-gap fallback is stated); (2) every screen shows
≥ default + (error or empty) — or carries the explicit N/A: <reason> row; (3) every
component name exists in the design-system inventory or sits in §New components with a
justification; (4) for figma/pencil, every state row carries a source-ref (node-id) — for
code, the wireframes are present. Fix + re-check ≤2 cycles; surface anything unresolved.../_shared/write-and-commit.md — one commit for
screens.md (screens: <slug> screens.md) and, on pencil, one for screens.pen
(screens: <slug> screens.pen) only when git status shows it changed (the Pencil app persists
only on the user's Cmd+S — an unsaved .pen is named in the handoff, not committed); Figma lives
outside the repo, nothing to commit. An unresolved item means no commits. Then emit the
stage-handoff block per ../_shared/handoff.md
— What I did (tool used or the degradation, «self-check: 4/4 pass», the commit SHAs) + Review
(docs/features/<slug>/screens.md, + screens.pen / the Figma file when tool-drawn) + Run
next: /clear, then /sdd:tasks <slug> (each ui task will cite these SCR ids + states).docs/features/<slug>/screens.md exists: §Source per the canon's tool, one section per SCR with
the derived state table, components reuse-first (NEW: only justified), §New components filled
or explicitly «None».figma/pencil: every state has its node source-ref; for code: the wireframes are inline.tasks/implement/review never open the
raw design file.default hides exactly the states users hit —
the error/empty derivation is the point of this stage.NEW: requires the why-no-primitive-fits line.code mode is always available — degrade with a named
degradation, never refuse the stage over tooling.tasks/implement/review consume.design's;
screens details what was declared, it never re-decides../templates/screens.md — the manifest scaffold; inline comments are
the generation contract.../_shared/size-matrix.md — the N/A condition (no UI surface)
evaluated by api's handoff.../_shared/tool-adapters.md — the design-tool MCP degradation
rule (fall back to code mode, named).../_shared/surfaces.md — the surface declaration this stage gates on.What SKILL.md sets; muted values are Claude Code's defaults
inherithigh23 skills in this plugin
/apiUse 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 (and an events doc when the feature has async flows). Triggers on "api for {slug}", "openapi for {slug}", "API contract for {slug}", "lock the interface for {slug}", "events for {slug}", "/sdd:api {slug}", "контракт API для {slug}", "OpenAPI для {slug}", "опиши ендпоінти". The contract is never hand-written: it is a derived function of data-model.md (typed fields + constraints), the sad.md §6 sequence diagrams (error branches, async actors), and spec.md acceptance criteria. Runs an inline drift check (does the contract match the model and the sequences?) and a reconcile mode. Hard-refuse if data-model.md is missing AND the feature changes the schema → run `data-model {slug}` first; on a legal no-schema-change skip it derives from the existing schema instead.
/clarifyUse to run an ambiguity sweep over a written spec.md and close every under-specified point before planning or design proceeds — so two engineers can't reasonably build different things from the same spec. Triggers on "clarify {slug}", "find ambiguities in {slug}", "is the spec ready", "sharpen the spec", "/sdd:clarify {slug}", "прояснити специфікацію", "знайди неоднозначності {slug}", "чи готова специфікація". Re-reads the spec, dispatches a clean-context devil's-advocate subagent to list where the spec 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}/spec.md with every ambiguity resolved or deferred — none dangling. Hard-refuse if spec.md is missing.
/classify-sizeUse to classify a feature into XS/S/M/L/XL and write docs/features/{slug}/.size plus the pipeline route docs/features/{slug}/.route (quick|standard|full) so later skills know how much of each artifact to produce and how handoffs resolve skips. Triggers on "classify size", "feature size", "is this XS or M for {slug}", "size {slug}", "change route", "/sdd: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, derives the default route (XS/S→quick, M→standard, L/XL→full), confirms size + route in ONE question, and writes the one-line .size and .route files — the source of truth; the feature_size: frontmatter mirrors in spec.md and sad.md are re-synced to it on every (re)classification.
/configUse to create and tune the per-project settings file `.claude/sdd.local.md` — the one place that decides how deeply the pipeline interviews you, which model tier its judgment agents run at, how strict the TDD gates are, how tasks execute and commit, and what language your documents are written in. Triggers on "config", "settings", "configure sdd", "tune the pipeline", "change the judgment model", "set the interview depth", "write documents in Ukrainian", "/sdd:config", "налаштування", "налаштуй sdd", "зміни модель", "глибина опитування", "мова документів". Creates the file with documented defaults FIRST (so you have a working config before answering anything), reads what already differs from the defaults, then asks six grouped questions and patches only the keys you confirm — preserving your comments, key order and unknown keys. Never touches the pipeline's artifacts; the settings file is gitignored, only the .gitignore patch is committed.
/data-modelUse to design the data model AND generate the actual forward + rollback migrations in one pass — shippable SQL, not a plan. Triggers on "data model for {slug}", "schema for {slug}", "generate migrations for {slug}", "DB design + migration", "/sdd:data-model {slug}", "модель даних для {slug}", "схема для {slug}", "згенеруй міграції". Reads spec.md §5 + sad.md §5 building blocks + the §6 sequence diagrams, then writes docs/features/{slug}/data-model.md plus paired *.up.sql / *.down.sql migrations STAGED under docs/features/{slug}/migrations/ (NOT the live migrations/ tree — implement promotes them when the feature is actually built) and an audit report. Greenfield-first; brownfield delta via --mode brownfield; drift-only via --drift-only. Hard-refuses if spec.md or sad.md is missing. Stack-agnostic: detects and FOLLOWS the repo's DB + migration conventions and domain layer — it imposes no DB philosophy and writes no rules file.
/decide-adrUse to record a post-hoc or asynchronous architecture decision as a MADR ADR when it was NOT captured during the synchronous design pass — a choice made in code, in a chat, on a whiteboard, or one a tasks/review gate flagged as missing. Triggers on "ADR for {decision}", "adr for {slug}", "document the decision on {topic}", "lock in the decision about {X}", "MADR for {topic}", "/sdd:decide-adr {slug} {title}", "створи ADR для рішення", "задокументуй рішення", "ADR на {тему}". Confirms the decision is ADR-worthy via the blast-radius gate, picks the next 4-digit number, copies 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 `design` — it spawns ADRs inline (Accepted).
npx claudepluginhub genkovich/sdd --plugin sdd2 plugins ship this exact skill · first indexed Oct 14, 2026
Other plugins' skills for the same job