156 raintree-technology

hig-components-menus Skill

>- Apple HIG 关于菜单和按钮组件的指导,包括菜单、上下文菜单、Dock 菜单、编辑菜单、菜单栏、工具栏、操作按钮、弹出按钮、下拉按钮、展开控件和标准按钮。当用户说“我的按钮应该长什么样”、“菜单栏里放什么”、“该用上下文菜单还是操作表”、“工具栏怎么设计”,或询问按钮设计、菜单设计、上下文菜单、工具栏、菜单栏、操作按钮、弹出按钮、下拉按钮、展开控件、Dock 菜单、编辑菜单或任何菜单/按钮组件的布局与

安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。

查看源码

技能指令原文(SKILL.md)

Apple HIG: Menus and Buttons

Check for .claude/apple-design-context.md before asking questions. Use existing context and only ask for information not already covered.

Key Principles

  1. Menus should be contextual and predictable. Standard items in standard locations. Follow platform conventions for ordering and grouping.
  1. Use standard button styles. System-defined styles communicate affordance and maintain visual consistency. Prefer them over custom designs.
  1. Toolbars for frequent actions. Most commonly used commands in the toolbar. Rarely used actions belong in menus.
  1. Menu bar is the primary command interface on macOS. Every command reachable from the menu bar. Toolbars and context menus supplement, not replace.
  1. Context menus for secondary actions. Right-click or long-press, relevant to the item under the pointer. Never put a command only in a context menu.
  1. Pop-up buttons for mutually exclusive choices. Select exactly one option from a set.
  1. Pull-down buttons for action lists. No current selection; they offer a set of commands.
  1. Action buttons consolidate related actions behind a single icon in toolbars or title bars.
  1. Disclosure controls for progressive disclosure. Show or hide additional content.
  1. Dock menus: short and focused on the most useful actions when the app is running.

Reference Index

| Reference | Topic | Key content |
|---|---|---|
| menus.md | General menu design | Item ordering, grouping, shortcuts |
| context-menus.md | Context menus | Right-click, long press, secondary actions |
| dock-menus.md | Dock menus | macOS app-level actions, running state |
| edit-menus.md | Edit menus | Undo, copy, paste, standard items |
| the-menu-bar.md | Menu bar | macOS primary command interface, structure |
| toolbars.md | Toolbars | Frequent actions, customization, placement |
| buttons.md | Buttons | System styles, sizing, affordance |
| action-button.md | Action button | Grouped secondary actions, toolbar use |
| pop-up-buttons.md | Pop-up buttons | Mutually exclusive choice selection |
| pull-down-buttons.md | Pull-down buttons | Action lists, no current selection |
| disclosure-controls.md | Disclosure controls | Progressive disclosure, show/hide |

Output Format

  1. Component recommendation -- which menu or button type and why.
  2. Visual hierarchy -- placement, sizing, grouping within the interface.
  3. Platform-specific behavior across iOS, iPadOS, macOS, visionOS.
  4. Keyboard shortcuts (macOS) -- standard and custom shortcuts for menu items and toolbar actions.

Questions to Ask

  1. Which platforms?
  2. Primary or secondary action?
  3. How many actions need to be available?
  4. macOS menu bar app?

Related Skills

  • hig-components-search -- Search fields, page controls alongside toolbars and menus
  • hig-components-controls -- Toggles, pickers, segmented controls complementing buttons
  • hig-components-dialogs -- Alerts, sheets, popovers triggered by menu items or buttons
  • hig-inputs -- Keyboard shortcuts and pointer interactions with menus and toolbars

Built by Raintree Technology · More developer tools