Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

designer-1

БесплатноБез исполняемых скриптовНе проверен

Build complete web screens from a fixed set of parts, on one spacing scale, with few words and check them before reporting. Use when designing or changing an…

atrislabsот atrislabs★ 71 звезда на GitHub

Об этом скилле

designer-1

Design is everything. Make a part once, then use it again.

Covers web. iOS is next.

0. taste first

  1. Read atris/taste/TASTE.md in the project, then the person's own ~/.atris/taste/TASTE.md. Project taste wins over the person's; both win over this file.
  2. Taste can change a default. It cannot remove the rule that every control has a name.
  3. Never write a correction into this skill. Project corrections go in atris/taste/TASTE.md.

1. the list

Completeness comes before restraint. Before designing, write:

  1. Every capability the request names. If a thing can be added and can change, changing it is a capability too.
  2. Every state of each one: empty, error, pending, done, undo. Write "none" with a reason when a state cannot happen.

Nothing on the list is cut to save words. Restraint decides how a thing is said, never whether it is there.

2. reuse first

Before writing any control:

  1. Look for the Atris parts: package.json lists @atris/design-react, or the code imports from it. Use these 19: Button, Field, Input, Textarea, Checkbox, Switch, RadioGroup, Select, Dialog, Popover, Menu, Tooltip, Toast, Tabs, Accordion, SegmentedControl, Combobox, Slider, RowList.
  2. No Atris parts: search the project's component folder for a control with the same job.
  3. Nothing fits: build the part once, in the one shape, in the folder where parts live. Export it, then import it.
  4. Never restyle a part inline for one screen: no style or className that changes its color, size, radius or spacing. Change the part, or use a size or tone value.
  5. A native <button>, <input> or <select> in a screen file, where a part covers that job, fails.

3. the one shape

  • label: required plain string, the accessible name. hideLabel hides it on screen only.
  • Pickers take options. Containers take items. Each entry is { value, label, disabled?, data? }. Empty choice is null.
  • Callbacks: onValueChange, onCheckedChange, onOpenChange; an action that is not a value is onSelect.
  • disabled is the only disabled prop. readOnly refuses every change.
  • Sizes: small, default, large. Tones: default, primary, quiet, success, danger.
  • Pass value, checked or open to own the state; the callback runs on every attempt so a parent can refuse.

Props for all 19: parts.md. Open it only when you place or build a part.

4. spacing

One scale, Atris token names first. A project token file maps the same steps to its names. No token file: make one, once, with this scale.

token px use
--atris-part-space-1 2 icon nudge
--atris-part-space-2 4 label to control, control to hint
--atris-part-space-3 6 icon to text inside a control
--atris-part-space-4 8 between sibling buttons, chips, options
--atris-part-space-6 12 between fields in one group
--atris-part-space-8 16 panel padding on phone
--atris-part-space-10 24 between groups; panel padding on desktop
calc(var(--atris-part-space-10) * 2) 48 between page regions

Steps -5 (10px), -7 (14px), -9 (20px) are for inside a part only.

  1. No spacing value outside the scale: every margin, padding, gap and inset is a token, 0, or calc(var(--atris-part-space-10) * n).
  2. The gap between groups is at least twice the gap inside a group.
  3. Siblings of the same kind share one gap.
  4. One left edge per column.
  5. Labels sit above controls.
  6. Numbers in a column align right.
  7. A row of controls shares one size. Dialog and form buttons end-align, primary last.
  8. Nothing fixed to a screen edge covers content: a sticky or fixed bar reserves its own height in the page.
height token px use
--atris-part-height-small 30 dense tables, desktop toolbars
--atris-part-height 36 default
--atris-part-height-large 44 phone, primary action
--atris-part-touch 44 minimum touch target on phone

Text: page title calc(var(--atris-part-text-title) * 1.25) (20), section headings --atris-part-text-title (16), body --atris-part-text-body (14), one secondary size (--atris-part-text-metadata, 12). The title is at least 1.25 times a section heading, or one step above it in a project scale. At most four sizes.

Color, radius, motion: house tokens only (--ink, --accent, --line, --radius-control, --motion, --ease-out). One accent, on the primary action.

5. words

Three kinds of text:

  • label: names a thing or an action and must be enough to act on. "anyone with the link", not "anyone".
  • consequence: what an action will do, in numbers. Example: "charge $40.00 today, then $120.00 a month from 1 dec".
  • explanation: how to work the screen. Example: "click here to change your plan".

Consequence is required. Explanation is never allowed.

Before any action that spends money, deletes, sends, or cannot be undone, the sc

Полный SKILL.md на GitHub

Установить designer-1 в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

parts.md

FAQ

Что делает скилл designer-1?

Build complete web screens from a fixed set of parts, on one spacing scale, with few words and check them before reporting. Use when designing or changing an interface.

Как установить скилл designer-1?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл designer-1 запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить designer-1 с