Feature design: a mockup the frontend can build exactly
Stage Design of the delivery process. Output: a design spec from <kit>/templates/design-spec.md
saved next to the brief as <TICKET>-<slug>.design.md, plus the mockup link.
Why this stage exists. A brief cannot catch "it doesn't look or behave like the rest of the product": wrong spacing, a hand-built table where a shared one exists, a missing empty state. A mockup made from the components that already exist can, because the developer then builds what was approved instead of interpreting a picture.
Load the config
Find delivery.config.yaml (DELIVERY_CONFIG, else the current folder, else the nearest parent).
<kit> is two folders above this skill's real path. Use:
design.system_nameanddesign.system_url: the only design system the mockup may use;design.component_index: the file that lists real components (path underworkspace.root);design.required_states: the columns of the state matrix;design.languages: the languages every piece of copy needs;approvers.design: who approves; the frontend repo'srulebooksfor UI rules.
Hard rules
- Only components that exist. Every element maps to an export in
design.component_index(show it withgit greponorigin/<base>). Anything else is labelledNEW: <what>on the mockup and listed in the spec with a reason and an owner. Never invent one silently. - Every required state, or it will not be built. Each screen shows each state in
design.required_states, plus what the user sees for each negative and no-permission criterion. - Every control has a defined behaviour. No decorative buttons, no hints at features that do not exist.
- Real copy, in every language in
design.languages. No placeholder text. - Approval is per version.
approvers.designapproves a version number. Any change after that is a new version and needs a new approval.
Workflow
1. Read the brief
Roles and what each sees (section 2), every criterion with a visible result (section 4), the negative and no-permission criteria, edge cases with a UI consequence (section 6), and the scope, so you do not draw what is out of scope. If the brief is not approved and the size needs the scope gate, stop.
2. Pick the page pattern
Choose the pattern for each screen (list, detail, form, wizard, settings, approval inbox…) from the
frontend rulebook or the design system's pattern pages. Open one existing screen that follows it on
origin/<base> and note what it already does: header, filters, table, empty state, permission
handling. New screens follow the pattern. A deviation needs a written reason.
When extending an existing screen, open its code first. The mockup keeps everything the screen already does unless the brief says otherwise.
3. Screen inventory
Fill the spec's inventory table: screen or dialog, pattern, components by export name, criteria
shown. This table is the deliverable even when no picture is drawn: the frontend developer and
feature-plan work from it.
4. Draw the mockup
Use whatever the user's tools support (a design artifact, a design tool connected through MCP, or a prompt the user pastes into their design tool). In every case, name the design system explicitly:
Design system: <design.system_name> (<design.system_url>). Use only its components, by export name.
Label anything missing as "NEW: <what>".
Feature: <ticket and one-line problem>. Users: <roles from the brief>.
Pattern: <pattern>, following <reference screen>.
Screens: <inventory rows>.
For each screen draw: <design.required_states>.
Show these criteria visibly: <criteria with a UI result>.
Refused actions show: <negative and no-permission criteria>.
Copy: sentence case, buttons say what happens, real labels in <design.languages>.
Do not draw: <out of scope from the brief>.
5. Self-check, then hand off
- Every inventory component greps in the component index, or is marked NEW.
- Every cell of the state matrix is ticked, for every screen.
- Every brief criterion with a UI result is visible on some screen.
- The copy table has every string in every language.
Then add the mockup link, the version and the states to brief section 8, set the spec's approval
history row to "waiting", and ask approvers.design to approve that version. Post the link to the
ticket only on a yes.
Output
- The design spec with inventory, state matrix, refused actions, new components, copy and approval history.
- The mockup link, recorded in the brief.
- The list of
NEW:components for the frontend pattern owner.