hig-components-menus
它能做什么
这个 AI 代理可以帮你按照 Apple 的设计指南设计应用的菜单和按钮。它会建议使用哪种类型的菜单和按钮,以及如何排列,让界面既好用又视觉统一。
适用场景
- ✓创建新应用,需要决定用户如何执行命令时。
- ✓重新设计现有应用的界面,让它更直观时。
- ✓确保应用的按钮和菜单符合 Apple 的最佳设计实践时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hig-components-menus/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我的 macOS 应用该怎样组织菜单中的命令?”
每周 5 个新技能,1 分钟读完。
工作原理
它会分析 Apple 关于菜单和按钮的设计原则,比如让操作更可预测、使用标准样式等。再结合你的需求(比如应用运行在哪些平台、有多少个命令),推荐最佳方案并说明如何实现。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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
Menus should be contextual and predictable. Standard items in standard locations. Follow platform conventions for ordering and grouping.
Use standard button styles. System-defined styles communicate affordance and maintain visual consistency. Prefer them over custom designs.
Toolbars for frequent actions. Most commonly used commands in the toolbar. Rarely used actions belong in menus.
Menu bar is the primary command interface on macOS. Every command reachable from the menu bar. Toolbars and context menus supplement, not replace.
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.
Pop-up buttons for mutually exclusive choices. Select exactly one option from a set.
Pull-down buttons for action lists. No current selection; they offer a set of commands.
Action buttons consolidate related actions behind a single icon in toolbars or title bars.
Disclosure controls for progressive disclosure. Show or hide additional content.
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
- Component recommendation -- which menu or button type and why.
- Visual hierarchy -- placement, sizing, grouping within the interface.
- Platform-specific behavior across iOS, iPadOS, macOS, visionOS.
- Keyboard shortcuts (macOS) -- standard and custom shortcuts for menu items and toolbar actions.
Questions to Ask
- Which platforms?
- Primary or secondary action?
- How many actions need to be available?
- 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
When to Use
This skill is applicable to execute the workflow or actions described in the overview.
Example
User request:
Check for .claude/apple-design-context.md before asking questions.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
常见问题
什么是“上下文菜单”(context menus)?
这是在你右键点击(或长按)某个特定项目时弹出的菜单,只显示与该项目相关的操作。
“弹出按钮”和“下拉按钮”有什么区别?
弹出按钮用于从一组选项中选择一个(只能选中一项)。下拉按钮用于显示一组操作,其中并没有当前选中的项。
什么是“渐进式展示”(progressive disclosure)?
就是根据用户的需要显示或隐藏额外内容,让界面保持简洁。“展开/收起”控件可以帮助实现这一点。
详情
作者的原始描述
Check for .claude/apple-design-context.md before asking questions. Use existing context and only ask for information not already covered.
热度
- GitHub 星标
- 48k
- 排名
- #4814
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。