Установка
SKILL.md
UX — Design Values & Execution Checklists
How LobeHub products should feel, and concrete rules to get there. Use this when building or reviewing any user-facing flow.
This file is the index: the design values and interaction principles below are the conceptual layer; the execution checklists live in per-module reference files (see Checklist modules). Each checklist item is tagged with the design value(s) it serves.
What lives where: DESIGN.md vs this skill
Two documents, two jobs — don't duplicate; cross-reference.
DESIGN.md— the design system: what the product looks and sounds like. Themeable tokens (color, typography, elevation, radius), the component inventory, and Voice & Content (wording, tone). Reach for it when you need a token value, a component, or copy tone.- this
uxskill — interaction behavior: how a flow should behave over time. Empty / loading / error states, lists at scale, selection visibility, pickers, number formatting, draft safety, action flow & momentum, button hierarchy, entity lifecycle, capability guardrails, progressive disclosure.
Rule of thumb: static look & wording → DESIGN.md; dynamic behavior → this skill. For component/styling choices see react; for imperative modal wiring see modal.
Design values
LobeHub follows four product design values — Natural・Meaningful・Certainty・Growth. Read them before designing: references/design-values.md (definitions + conflict priority).
Interaction principles
Use these before the execution checklists when a flow has multiple plausible interaction patterns.
Preserve the surface contract・Meaningful・Natural
Every surface carries a task promise: chat keeps the user in a working conversation, a document page supports focused reading / editing, a settings page supports configuration, and so on. Default interactions should continue that promise instead of unexpectedly moving the user into another mode. Prefer in-context surfaces (portal / panel / drawer) for reference and auxiliary work; reserve full-page navigation for committed focus or explicit mode switches.
Consistency is semantic, not mechanical・Certainty・Meaningful
Consistency means the same user intent behaves the same way in the same surface. It does not mean the same component must do the same thing everywhere. When a component is reused across surfaces, let the parent surface provide the interaction strategy so behavior follows intent rather than implementation convenience.
Layout communicates role・Natural・Certainty
Element placement is part of the interface language. Identity and location (breadcrumbs, titles, object labels) should read separately from state and actions (save status, sharing, panel toggles, overflow menus). When these roles are mixed, users have to infer whether an element describes the current object or acts on it.
Compose the canonical surface component, don't re-derive it・Certainty・Natural
When a surface class already has a canonical component in this codebase — a sidebar row →
NavItem, a collapsible group → Accordion / GroupedAccordion, an active surface →
Block variant='filled' — compose it, don't rebuild the chrome from raw
<div>/<button>/<input> + a bespoke createStaticStyles block. A hand-rolled parallel
re-derives padding, hover/active states, alignment, and reveal-on-hover by hand, and drifts
from its siblings on each one — the aggregate reads as "unpolished" even when every single gap
is tiny. Before building a list / nav / master-detail panel, find the primitive the sibling
surface uses (grep NavItem, Accordion) and compose it; fall to raw elements only for a
genuinely novel row. See Read §1.10 for the full pattern; the
react component-priority rule covers the mechanics.
Checklist modules
Grouped by interaction type — the kind of thing the user is doing. Jump to the module matching the surface you're building; a surface often spans several (an editable list is Read + Edit + Act) — walk each that applies.
- Read — viewing data & lists: empty / loading / error states, lists at scale, selection visibility, picker completeness, number formatting, default view.
- Edit — entering & changing content: protect in-progress drafts, never lose input.
- Act — operations, flows & buttons: forward momentum, one primary button, entity lifecycle completeness.
- Feedback — loading visuals & capability guardrails.
- Grow — discoverability & progressive disclosure.
Quick review checklist
The one-screen scan. Each line links back to a module above for the full rule + examples.
Read — viewing data & lists (read.md)
- <!-- -->Empty / loading / error states are all designed; empty is a real page with a CTA. Always-rendered chrome (toolbar/header) still gets a body empty state. If the
Emptycomponent ships asearch/no-match variant, wire it — don't render<Empty/>bare so a zero-result search shows the first-run onboarding. - <!-- -->Error is checked before the empty branch — a failed fetch never renders as empty (read
error, don't coercedata ?? [] → Empty); a detail page readserrorbefore falling toNotFound(failed-to-load ≠ deleted/404). On a metrics/dashboard surface the failure default is a zero-valued object (?? {…:0}) that renders as a confident$0— readerrorbefore any aggregate, don't fall through to zeros. A list merged from a fetched set + a static/frontend set ([...fetched, ...placeholders]) brancheserrorbefore merging — the static half keepslength > 0, so a failed fetch renders a plausible partial catalog neither the empty guard nor an error-unread call site catches (channel). - <!-- -->List designed across 1 → 10k rows (virtual scroll / pagination / batch as needed).
- <!-- -->Search / filter over a paginated list queries the full set server-side, not just the loaded page (no false "no results" for unfetched rows). Server-side coverage isn't just the search box — sort, facet filters, the count badges, and any "act on the filtered set" bulk op run over the full set too; server-side search + client-side sort/filter/counts still false-empties, mis-orders across pages, and under-counts (topics).
- <!-- -->Capped/scrollable/virtualized list scrolls the restored active item into view on mount (
block: 'nearest', re-run after async rows mount). - <!-- -->Pickers show all valid targets (default/inbox included); empty = truly none.
- <!-- -->Large numbers roll the unit at each 1000× (K→M→B→T), never a coefficient ≥ 1000; use the shared
formatUsageValue/formatShortenNumber. - <!-- -->Multi-tab/view surface lands on the tab the entry intent implies (and falls back to a populated view, decided from resolved state); a manual pick sticks.
- <!-- -->Live/polling feed signals new items + offers manual refresh, doesn't reorder under the user, and shows a failed refresh distinctly (not as empty). A bulk/destructive control derived from the live-status map (close-idle / clear-inactive) gates on the query's loaded/error state — "unknown/errored" is ineligible, never treated as the inactive value. Conditional polling starts from reactive state (
shouldPoll→refreshInterval), not a function-formrefreshIntervalthat never schedules a first timer when its initial value is0. - <!-- -->A surface with many navigable entries (a big settings area, a long list) offers search / filter / jump, not browse-only — named as a class norm so an absent box is caught.
- <!-- -->Marketplace / registry browse cards carry owned/installed state on the tile (not only on the detail) and trust/verified badges via one card contract, consistent across sibling registries; contribute leads to an in-app submit, not an external repo.
- <!-- -->A sidebar / nav / master-detail list row composes the canonical
NavItem(+Accordion/GroupedAccordionfor groups,Block variant='filled'for active), not a hand-rolled<div>/<button>/<input>+ bespoke CSS — else the hover/active highlight misaligns from the content box, content bleeds to the panel edge, the search/rename/action-reveal drift from every sibling panel, and the list stays a flat ungrouped dump. GrepNavItembefore building. - <!-- -->A persistent create/compose affordance above a list is the hero only while the list is empty; once populated it doesn't bury the records — cap the editor height (max-height + internal scroll) and/or default it to collapsed when the list has data, so the records keep Center Stage.
- <!-- -->A status group/label is true for every member — don't fold a distinct lifecycle state (scheduled/queued/snoozed) under a label that asserts another (running/in-progress); give it its own group or a neutral label.
Edit — entering & changing content (edit.md)
- <!-- -->Editors back up in-progress input to durable storage (survives reload, not in-memory only) and recover it after refresh/crash/failed-save; destructive exits warn, never silently discard — including switching the active item in a master-detail (a shared form
resetFields()on selection change silently wipes unsaved input, worst when it's pasted secrets — channel). - <!-- -->Input affordances are stable: static placeholder, no clickable/retrievable content hidden in it.
Act — operations, flows & buttons (act.md)
- <!-- -->Action leads the user forward; success offers a primary "go to result".
- <!-- -->Terminal status screen (success / error
Result) carries an action: error → escape hatch (retry / back), success → close / go-to-result; no bareResultwithoutextra, and "auto-closing in Ns" copy only when the close can actually fire. - <!-- -->A result that changes the next step lands in a persistent state (screen / inline), not just a transient toast; "link sent" names the destination + offers resend, failures keep context + offer retry.
- <!-- -->Bulk action has a single-item entry (and vice versa).
- <!-- -->Async/bulk/irreversible action: confirm → in-progress (locked) → done/error. But a slow but atomic confirm-gated op (device/file delete, git op, seconds-long call) closes the confirm immediately (non-blocking
onOk) and shows progress on the originating surface (optimistic removal / row spinner), not a confirm dialog held spinning on the round-trip — the modal is not the progress surface. - <!-- -->A long-running / costly async op (generation / export / large upload) offers Cancel while it runs (aborts the work, not just delete-after-the-fact) and keeps an in-place Retry on error — named as a generation-class norm so an absent Cancel is caught.
- <!-- -->Optimistic create / rename / duplicate surfaces failure (caller catches + toasts); never a silent rollback.
- <!-- -->Job-control (run / pause / stop / retry) surfaces start/stop failure — a
catchthat onlyconsole.errors + optimistic-status rollback reads as a dead button; toast at the store-action boundary so every trigger inherits it. - <!-- -->Cross-surface coherence: an entity shown in both a list and its detail stays in sync on edit — shared normalized store or invalidate the sibling (not a gated field subset); a per-surface review misses this seam, so check it explicitly.
- <!-- -->Scrollable content + actions/status → pin them in a fixed footer/header, not inside the scroll area (verify at the overflowing state).
- <!-- -->Exactly one primary button per surface — and it's the visually dominant control (back / cancel / secondary never out-weighs it; verify on the rendered screen, not from
variant). - <!-- -->У перечисленных сущностей есть полный жизненный цикл (не только отображение); операции соответствуют источнику (встроенные / установленные / пользовательские). Защитный маркер (pin / keep / lock) учитывается на каждом пути удаления (массовое закрытие, clear-idle, автоочистка) — маркер, который ничего не блокирует, является декоративным no-op.
- <!-- -->Действие, которое выполняется от имени конкретной личности (OAuth consent, send-as, publish-to), показывает эту личность и путь переключения аккаунта / повторной авторизации — никогда не привязывает пользователя к текущему залогиненному.
- <!-- -->Необратимое / широкомасштабное действие (clear-all, delete-account, wipe) требует явного жеста (type-to-confirm / чекбокс), а не опасности в один клик; и сообщает о частичном сбое, никогда не о молчаливом половинчатом завершении.
- <!-- -->Созданный секрет (API key / token) показывается полностью один раз при создании (постоянное раскрытие + Copy), хранится в виде хеша, после чего маскируется — никогда не раскрывается повторно из списка.
- <!-- -->Хранилище данных о пользователе (AI memory / personalization / inferred profile) предлагает correct-or-mark-wrong (не только слепое редактирование/удаление), retain-without-use (пауза для отдельного элемента + глобальный выключатель), экспорт/скачивание и undo/soft-delete — названные как классовые нормы, чтобы отсутствие одной из них было замечено.
Обратная связь — загрузка и системный отклик (feedback.md)
- <!-- -->Без antd
Spin; используйтеNeuralNetworkLoading/ загрузчики проекта. - <!-- -->Любое состояние загрузки может завершиться ошибкой: при ошибке или таймауте показывайте состояние сбоя с действием Reload/Retry — никогда бесконечный спиннер. В самоскрывающейся поверхности (upload dock / progress toast) обратный отсчёт очищает только успех — элемент с ошибкой остаётся с Retry. Состояние ошибки / действие повтора, которое смоделировано в store, но не потребляется ни одной поверхностью (
isXErrorселектор /retryXдействие с нулёмrgмест вызова) — это всё ещё отсутствующее состояние ошибки — построенный, но осиротевший путь — это постоянный скелет на пикселе. Загрузка load-more / infinite-scroll страницы, которая завершается ошибкой, показывает встроенный Retry в конце списка (отличается от конца списка), никогда молча исчезнувшую строку "loading more" сhasMoreпо-прежнему истинным, чтоIntersectionObserverперезапускается в тихий цикл повторов (topics). - <!-- -->Составной гейт, ожидающий вторичной/зависимой загрузки, опирается на свой in-flight флаг и снимается по settled (data / resolved-
null/ error) — никогда по присутствию зависимости в map, иначе отсутствующая по замыслу зависимость подвешивает его навсегда. Ветка ошибки, упорядоченная после гейта наличия данных ({error && …}нижеif (isLoading = !map[id]) return <Skeleton/>) недостижима при сбое первой загрузки — она отрисовывается только при ревалидации, а resolved-nullnot-found подвешивает тот же постоянный скелет; проверяйте error/not-found до гейта. - <!-- -->Ожидаемая запись, которая блокирует навигацию/продвижение, сбрасывает свой флаг занятости в
finally+ предлагает повтор — неудачная запись никогда не отключает навсегда управление вперёд/назад. - <!-- -->Автосохранение показывает состояние сохранения (saving → saved → failed с повтором), никогда молчаливую запись; enum состояния сохранения действительно включает вариант
failed(catch, который сбрасывает вidle— это молчаливая запись); одна конвенция обратной связи о сохранении на мультиполевой поверхности, в идеале в общем form wrapper. - <!-- -->Текст ошибки написан для человека, а не для строки лога (§4.5): никакого внутреннего id (
tpc_…/ uuid /#Nseq) или логовой обвязки (Execution failed:/Error:) в заголовке — id едет в структурированном поле, питающем "View run", обвязка локализуется через i18n во view, а тело не повторяет идентичность, которую уже показывает строка метаданных. Сбой deterministic-cause (budget/quota → top-up・upgrade; permission → request access) ведёт с действием-решением, а не с голым Retry, который просто снова падает. - <!-- -->Функция, ограниченная возможностями, предупреждает (мягко, реактивно, с учётом загрузки), когда модель не может её обеспечить; текст даёт решение.
Рост — обнаруживаемость и прогрессивное раскрытие (grow.md)
- <!-- -->Продвинутая возможность прогрессивно раскрывается / обнаруживается в момент потребности.
- <!-- -->Элемент управления, заимствующий идиому клавиатуры/CLI (нумерованные
1/2/3чипы,⌘Kбейдж, arrow-nav, подсказка keycap), действительно привязывает эти клавиши — или перестилизован так, чтобы не подразумевать отсутствующий шорткат; чип, выглядящий как keycap, без обработчика — ложная аффорданс, хуже всего в поверхности, портированной из CLI. Убедитесь, что клавиши срабатывают на L3. - <!-- -->Поверхность конфигурации для функции с собственной областью данных/управления ссылается на неё в контексте (замкнуть цикл config → manage) — не просто обещание в тексте.
- <!-- -->Многошаговый поток (>2 шагов: wizard/onboarding) показывает индикатор шага/прогресса (позиция + всего) и оставляет несущественные шаги пропускаемыми с видимым путём выхода.
Связанные навыки
- ux-audit — повторяемый, Designing Interfaces-бенчмаркинг аудит одной поверхности; запустите его, чтобы найти пробелы и вернуть их в эти чек-листы.
- modal — императивная
createModalstate-machine обвязка для confirm/progress/done. - DESIGN.md (Voice & Content) — формулировки для состояний confirm / done / empty / error.
- react — приоритет компонентов,
Buttonиспользование, стилизация.
Вставить в README
Ссылка на карточку для вашего README — без картинок и счётчиков.
[DarkPlay: ux](https://darkplay.ru/ai/skills/lobehub-lobehub-ux)
Описание
Ценности, принципы и чек-листы продуктового дизайна LobeHub. Используется всякий раз, когда работа затрагивает функции или реализацию пользовательского интерфейса — проектирование или создание любого пользовательского сценария — для лучших результатов UX.
Из того же репозитория
Похожие скиллы и другие разделы каталога
Самые востребованные скиллов раздела по установкам и звёздам.
find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.Лучшие ИИ-инструменты для генерации изображений
Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты
MagviMagvi
DALL-E 3OpenAI
SupaLabSupalab
Freestyling.aiFreestyling
ArtGeneration.meArtgeneration
BigjpgBigjpg
Художник от VKVK
Avato AI12ai
Virton AIVirtonЛучшие ИИ-инструменты для генерации видео
Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,
VEED.IOVeed
MootionMootion
Sora (OpenAI)OpenAI
viralpulse.appViralpulse
Viral Maker AIViral-makerЛучшие ИИ-инструменты для генерации текста и копирайтинга
Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра
NeuroscribeNeuroscribe
GoGPTGogpt
НейроТекстерNeuro-texter
ChatGPTOpenAI
Cosmo ScribeCosmoscribe
Memo HelperCopilot33
LibraChatLibrachat