算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
hicks-law-menus【设计与创意】Use this skill when designing menus, dropdowns, navigation, command palettes, or any interface where the user picks from a list. Trigger when the menu has more than ~7 items, when navigation feels overwhelming, when designing a cmd-K palette, when picking what goes in a "More" overflow, or when arguing about whether to add another menu item. Sub-aspe…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
hicks-law; read that first if you haven''t already.'Menus are the canonical Hick's Law surface — every item adds decision cost, and the structure of the menu determines whether that cost compounds or stays bounded. This skill covers the practical patterns for menus, dropdowns, navigation, and command palettes.
Different menu sizes call for different interaction patterns:
1–4 items → inline buttons, tabs, or segmented control (all visible)
5–8 items → dropdown menu, sidebar nav (scan-friendly)
9–15 items → grouped dropdown with section headings
16–50 items → searchable combobox / dropdown with type-to-filter
50+ items → command palette (cmd-K) or full-page browser with filters
Picking the wrong rung is the most common Hick's Law failure: a <select> of 200 timezones, a sidebar of 30 flat items, a context menu with every conceivable action.
Top-level navigation should land at 5–7 items in left-to-right scripts. Beyond that, the eye can't hold the structure in working memory while picking.
If your IA naturally has more, group:
Sales | Marketing | Engineering | Finance | HR | Legal | Operations | IT | Facilities
→ regroups as
Departments | Projects | Reports | Settings
Where Departments opens a sub-menu with the 9 specifics.
The trade-off: sub-menus add a click. Worth it when the alternative is a wall of top-level items.
Sidebar nav can hold more items than top nav (scrolling and grouping help), but the same rules apply within each group. Aim for groups of 3–7 items.
Workspace
Dashboard
Projects
Team
Personal
Profile
Notifications
Account
Billing
Security
Sign out
Three groups, each with 2–3 items. Total 8 items, but the user reads it as "3 things" then "the right thing within."
A DropdownMenu triggered by a "more" button on a row, header, or toolbar. Common Hick's Law mistake: dumping every action into one menu.
Better:
[Edit]
[Duplicate]
[Move to…]
[Share]
─────────
[Archive]
[Delete] ← red, after separator
The user scans top-to-bottom; the structure aids the choice.
The command palette is the modern answer to "we have hundreds of commands and can't surface them all." The pattern:
⌘K (or types /).This collapses Hick's Law — the user no longer scans a long list, they recall a name (or fragment) and the system shows matches. Combined with:
Command palettes scale to hundreds of items because the interaction has changed.
Mobile bottom-nav: 3–5 items, no more. The thumb can't reach more than ~5 targets across the bar comfortably, and the screen has no room for labels at higher counts.
If your app needs more entry points than 5, the bottom nav holds 4 primaries plus a "More" tab that opens a sheet with the rest.
Application toolbars (think Word, Figma, Notion's slash-menu) have the same Hick's Law problem at extreme scale. Strategies:
Home / Insert / Layout / References / Mailings). Each tab shows ~10 actions; total may be 80, but visible at any moment is one tab's worth.<select> with no grouping, no search. Hick's Law tax compounded by the lack of within-list navigation.hicks-law (parent).hicks-law-defaults — for menus where one option dominates probability.hicks-law-pricing — for the menu of plan tiers as a conversion event.recognition-over-recall — the principle behind why command palettes work.chunking — the perceptual basis for grouping menu items.