/design-by-elements:design-by-elementsfrom design-by-elements
Prototype the visual or textual form of an artifact element by element, choosing between opposed variants and locking each with its rationale. Use when the user says "design this layout", "prototype the look", or "iterate on this output", or when a formatting debate keeps looping. Not for feature brainstorming (superpowers:brainstorming) or async decision pages (html-codesign).
Ships in design-by-elements. 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.
Prototype the form of an artifact — terminal output, a report layout, a table, a status block, a page or email — by decomposing it into small lockable elements, settling meaning before form, contrasting opposed variants, locking each with its rationale, and turning every fix into a named rule. The design converges because each locked element makes the next one cheaper.
Iron Law — never redesign the whole artifact at once. Decompose it into named elements; settle what each element means before arguing how it looks; lock one element at a time with its rationale; and turn every fix into a named rule that polices the rest.
- Not "it's a small artifact" — small artifacts still have elements, and the loop is cheap.
- Not "the fix is obvious, I'll just apply it" — an un-generalized fix resurfaces in the next element.
- Not "let me show all the options at once" — a catalog of near-duplicates paralyzes; 2–3 opposed variants decide.
- Not "it renders fine in the source" — design the rendered form; the source is not what the reader sees.
Whole-artifact iteration produces "work vomit" — each pass re-breaks the last. Element-wise locking is the correction. Violating the letter of this law is violating the spirit.
Run them per element, in order. Move 3 is the only interactive gate.
Ask "what is this element supposed to represent?" before any styling. Form arguments are unresolvable while meaning is fuzzy — every looping formatting debate is a disguised semantic question. When form talk stalls, stop and name what the element is for and which single reader-question it answers; then return to form.
A
Tree ⚠ 2status line nobody understood becameLocal changes 2 config files — not committed, so not in the PRonly after asking what the line was for.
Break the artifact into elements small enough to iterate alone, each with explicit interfaces to its
neighbors (spacing, order). Keep a section queue — the ordered list of elements with a status
each (locked / active / pending) — so nothing is dropped and the order is visible.
A "stream block" decomposes into header / description / facts block / plan spine / launch prompt. Blank-line spacing between them is itself part of each lock.
Offer 2–3 deliberately opposed variants per element — not a catalog of near-duplicates. Opposed
variants reveal actual preference; near-duplicates reveal nothing. Give each variant a short stable ID
(A1/A2, B1–B3, Dh1–Dh3) so the user replies in shorthand. Use AskUserQuestion, one
element at a time, with the variants as options and previews for visual comparison; the built-in Other
is the escape hatch, and notes refine the pick.
Once an element is settled, lock it and record the decision in a decisions log with three
columns — Fork | Decision | Rationale — then flip the section queue and move to the next element.
The rationale is not optional: it is what stops a locked element from reopening later.
The distinctive move. A user comment ("the branch annotation is obvious") does not become one
edit — it becomes a named rule (e.g. LG1) recorded in a rule ledger, and every later element is
checked against it. This is why the method converges: a fix applied locally is whack-a-mole and
resurfaces; promoted to a rule it is paid once, and each locked element makes the next cheaper because
its rules already apply. Make convergence the goal — keep a rule ledger and cite rule IDs as you go.
Locking element-by-element risks a set of locally-good pieces that don't cohere. Schedule an explicit final pass to re-integrate every locked element and check the whole: spacing between elements, consistent application of every named rule, and the artifact read end-to-end at real scale. This pass is part of the contract, not optional.
Fold these in throughout — they are first-class parts of the method, not asides.
Three lightweight running records, referenced by ID throughout:
Fork | Decision | Rationale, one row per lock (move 4).| Thought | Reality |
|---|---|
| "Let me just try a few layouts" | Form debate while meaning is fuzzy is unresolvable. Ask what the element represents first (move 1). |
| "I'll show them all five options" | A catalog paralyzes. 2–3 opposed variants with IDs decide (move 3). |
| "I'll just fix this one line" | A local fix is whack-a-mole; it resurfaces in the next element. Promote it to a named rule (move 5). |
| "Let me iterate the whole artifact" | Whole-artifact iteration is "work vomit" — each pass re-breaks the last. Lock element-by-element (Iron Law). |
| "It renders fine in the source" | The reader sees the rendered form. A code fence degrades a table. Preview real output (medium awareness). |
| "This field looks nice" | Every field earns its slot by a reader-question. Name the question or cut it (admission test). |
| "The pieces are all locked, we're done" | Locally-good pieces need not cohere. Run the zoom-out pass before declaring done. |
For rationale, not procedure:
Four full worked examples (feedback → named rules, a decisions-log excerpt, element decomposition with
locks, and scale probing) are in references/worked-examples.md.
superpowers:brainstorming — general feature/product design before implementation. This skill is
narrower: iterative prototyping of an artifact's visual/textual form. Reach for brainstorming to
decide what to build; reach for this to decide how the output looks.html-codesign — when the choose-and-capture should be an async, shareable HTML decision page
instead of an in-conversation loop.question-walkthrough — when the task is triaging a pile of existing open questions, not
prototyping a form.reader-steps — for rendering the manual steps a design produces, once locked.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub smorinlabs/smorinlabs-skills --plugin design-by-elementsOther plugins' skills for the same job