AppleHIG程序坞菜单
AyushRajSinghParihar2026-10-27查看 1597复制 878
在为后台、无窗口或最近项目工作流程创建、查看或调整 macOS Dock 图标命令时使用。
📘如何使用这个技能
- 1复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
- 2打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
- 3粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
- 4直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景
💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。
SKILL.md2353 chars
--- name: apple-hig-dock-menus description: Use when creating, reviewing, or adapting macOS Dock icon commands for background, windowless, or recent-item workflows. --- # Offer useful actions before the app is frontmost Read [the Dock-menu guide](../../references/dock-menus.md). The decision process is application advice; Dock menus are a Mac component. Inspect the app's running/window states, common tasks, current/recent items, platform, and create/review/adapt goal. Identify tasks useful without a frontmost window and their existing visible/main-menu routes. Do not infer launch-state command availability from a menu shown only while running. Select a few valuable actions such as composing or choosing a current/recent window. Use brief labels and logical order. Preserve system commands and ensure custom commands remain accessible through the main menu or visible UI. Define command resolution for no window, existing window, and stale recent target so it opens the intended context rather than a duplicate empty task. For iOS/iPadOS evaluate Home Screen quick actions instead; other destinations do not gain Dock menus by copying their appearance. Implement the requested Dock commands, provide a state-to-command/window map, or review exact duplication, stale-target, and discoverability defects. Keep state-dependent operations within the user's authorized app behavior. **Worked transformation:** Before: a notes app's Dock menu has twenty editing commands that do nothing when all windows close. Decision: background entry should accelerate a useful task, not mirror every editor action. After: offer `New Note` and a short current/recent window list, each resolving to the correct existing or new window; editing stays in its main-menu context. Deliver the menu artifact and state/target contract. Verify no-window, background, existing-window, and missing-recent-item cases. Fail for commands with no effect, lost existing context, or custom commands available only in the Dock. Native Dock execution must be reported separately from static inspection. Load [the-menu-bar](../apple-hig-the-menu-bar/SKILL.md) for alternate access, [windows](../../../apple-hig-presentation/.topics/apple-hig-windows/SKILL.md) for identity, or [home-screen-quick-actions](../apple-hig-home-screen-quick-actions/SKILL.md) for mobile adaptation.