mac-design
БесплатноЗапускает вложенные скриптыНе проверенDesign rules that make a SwiftUI app look and feel like a native Mac app on macOS 26 and later, from Apple's eight design principles to Liquid Glass, layout…
от daveebbelaar★ 2 010 звёзд на GitHubОб этом скилле
Mac design
Apple already designed your app. Pick the right system parts, arrange them, and stay out of their way. Use the system first. Add custom design only where the system has nothing.
- The full checklist with sources: design-rules.md. Use it for reviews.
- Copyable SwiftUI code: patterns.md.
- The Settings window: settings.md.
- Toolbars: which item goes where, per column: toolbars.md.
- A left sidebar, a right panel, and a top bar that fit together, or no top bar: app-shell.md.
- The menu bar, context menus, and the Dock menu: menus.md.
- Apple's current text on one topic, when a rule here is not enough:
"${CLAUDE_SKILL_DIR}/scripts/hig.sh" <topic>(for exampletoolbars,sheets). It prints the HIG page as plain text. - App-wide tokens (colors, radii, motion): call the Skill tool with
design-system. - How a feature works and what it says (names, flow, modals, errors,
accessibility): call the Skill tool with
ux-design. - Spacing, alignment, and the checks that catch misalignment: call the
Skill tool with
layout-grid. - Parts of your own instead of Apple's: call the Skill tool with
design-kit, ordesign-from-appto match an app the user names.
Apple's eight principles
Use them as the review lens for every screen (HIG Design principles, 2026):
- Purpose: each feature costs people time, attention, and trust. Cut what does not earn it.
- Agency: people choose their path. Undo forgives mistakes. No forced tours.
- Responsibility: ask for permissions at first use, keep data private, guard AI output.
- Familiarity: things that look the same work the same. Standard parts, standard symbols.
- Flexibility: keyboard, pointer, and resizing all work. People can customize what they use daily.
- Simplicity: simple is not minimal. Hierarchy comes from order, space, and contrast.
- Craft: instant response, smooth scrolling, aligned edges, layouts that survive resizing.
- Delight: the sum of the other seven, aimed at one feeling. Never decoration added at the end.
Every screen answers: Where am I? What can I do? Where can I go?
Before you write views
Write these four under ## Design plan in docs/BRIEF.md, or in
docs/DESIGN.md when the brief would pass one page:
- Archetype: sidebar window, single-window document, menu bar extra, or quick-capture panel. Most personal apps are a sidebar window plus one quick-capture entry point. A menu bar utility is "menu bar extra + panels + Settings window": the toolbar and sidebar rules then apply to the Settings window only.
- Information architecture: sidebar pages, at most two levels.
- Command map: every action, its menu, its shortcut.
- Empty states: what each page shows before there is data.
- Feeling: the one feeling the app aims for (calm, quick, confident). Motion, words, and color all reinforce it.
Entry points first
A Mac app is used through its small entry points: a global shortcut, the menu bar, a quick panel, drag and drop, the Share menu. Design those first. A to-do app lives in its quick-add panel.
- Quick capture: one floating panel, one input, opened by a global shortcut, closed by Escape or Return.
- Optimistic UI: on Return, close and show the result at once. Save in the background. Offer Undo, not a spinner.
Layout
NavigationSplitView: sidebar, content, detail. Global actions in the toolbar. No sidebar when navigation is one level.- Selection details in
.inspectoror the detail column. An inspector looks flat beside the floating sidebar. To make both sides match, call on app-shell.md before you build the toolbar. - The UI frames the user's content. Ask what the least UI is that lets it stand out.
- Progressive disclosure: an empty page shows one
ContentUnavailableViewwith the first action. Filters appear once there is content. - Keep the top 50 pt free for dragging the window.
- Spacing from
Space, on a 4 pt grid: 20 pt window margins, 8 pt between related controls, 20 pt between groups..controlSizefor dense areas, never hard-coded heights.
Liquid Glass
- Glass is for the navigation and control layer: toolbars, sidebars, floating buttons, popovers. Content (rows, cards, documents) gets none.
- Never glass on glass. Group neighboring custom glass in
GlassEffectContainer. - Standard components get glass on their own. Delete custom backgrounds behind bars and sheets.
.glassEffect()only for a custom floating control. Tint only to carry meaning. Interactive glass (the bounce on click) only on controls, and sparingly.- Custom chrome dims with the window: read
@Environment(\.appearsActive)(patterns.md, "Custom chrome that follows the window").
Toolbars and menus
- Each toolbar item sits over the column it acts on: nothing of your own over the sidebar
Установить mac-design в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл mac-design?
Design rules that make a SwiftUI app look and feel like a native Mac app on macOS 26 and later, from Apple's eight design principles to Liquid Glass, layout, toolbars, menus, search, keyboard, type, color, and dark mode. Use when building or reviewing any window, sidebar, toolbar, menu, panel, or settings screen, or when the user asks for a more native, Apple-like, or better designed app.
Как установить скилл mac-design?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mac-design запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic