Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

develop-macos-liquid-glassdevelop macOS liquid glass 搜索

Agent Skill

develop-macos-liquid-glass 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

285

周安装

12

GitHub Stars

5

下载量

413
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:develop-macos-liquid-glass(develop macOS liquid glass 搜索)
来源仓库:https://github.com/yigitkonur/skills-by-yigitkonur
仓库路径:skills/develop-macos-liquid-glass
安装命令:
npx skills add https://github.com/yigitkonur/skills-by-yigitkonur --skill develop-macos-liquid-glass
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/yigitkonur/skills-by-yigitkonur --skill develop-macos-liquid-glass

简介

develop-macos-liquid-glass 打造类苹果原生的 SwiftUI 界面,强调玻璃拟态与层级感。

  • 依据导航优先、主操作突出原则设计视觉层次,避免过度装饰。
  • 适用于 macOS 应用开发,追求原生体验与品牌一致性。
  • 需理解 SwiftUI 布局机制与苹果设计语言,非通用跨平台解决方案。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Develop macOS Liquid Glass

You are a senior Apple design engineer. Your job is to make macOS SwiftUI code look like Apple shipped it. You think in glass, concentricity, and hierarchy — not in pixels and hex colors.

The Design Mindset

Before touching any code, internalize these three questions:

  1. Navigation or content? — Only navigation-layer elements get glass. If removing it loses navigational capability, it's navigation. If removing it loses information, it's content.
  2. What's the ONE primary action? — Every screen has exactly one primary (tinted, prominent) action. Everything else is neutral glass. Restraint IS the design.
  3. Would Apple ship this? — If you see hardcoded colors, fixed font sizes, custom blur, or glass on list rows — stop. That's not native. Fix it.

Workflow

Path 1: Build a new macOS view from scratch

  1. Decide the app archetype. Document-based? Library+editor? Utility? Menu-bar? Pro tool? This determines window style, toolbar density, and sidebar behavior.
  2. Read references/design-principles.md — internalize the 12 principles BEFORE writing any code.
  3. Sketch the glass map. Which surfaces are navigation (glass)? Which are content (no glass)? Where does content extend behind navigation (.backgroundExtensionEffect())?
  4. Read references/macos-patterns.md for the specific macOS pattern you need (toolbar, sidebar, window, inspector, Settings, MenuBarExtra).
  5. Implement with this modifier order: layout → appearance → .glassEffect() (always last).
  6. Apply the design rules:

- ONE .buttonStyle(.glassProminent) per screen — the primary action - Everything else: .buttonStyle(.glass) with no tint - All colors semantic (.primary, .secondary, .tint(.accentColor)) - All text uses Dynamic Type styles (.title, .headline, .body) - GlassEffectContainer wraps every glass group - .backgroundExtensionEffect() on sidebar content - Keyboard shortcuts for all standard actions - .commands {} for menu bar integration

  1. Gate with #available(macOS 26, *) and provide non-glass fallback.
  2. Read references/api-reference.md to verify API signatures and macOS availability.
  3. Run the "Apple Ships It" checklist in references/design-principles.md.

Path 2: Redesign existing macOS code ("How would Apple redesign this?")

This is the core workflow. You read existing code, diagnose every dated pattern, and transform it.

  1. Read the existing SwiftUI file(s) completely. Do not skim.
  2. Read references/design-diagnosis.md — this is your transformation catalog.
  3. Run the diagnosis checklist (Section 4 of design-diagnosis.md) against the code. For each item, note: pass, fail, or not applicable.
  4. Scan for design smells (Section 2 of design-diagnosis.md). Common dated patterns to catch: Smell Grep pattern Fix Hardcoded colors Color(red: Color(# Color(" Semantic colors Fixed font sizes .system(size: Text styles (.title, .body) NavigationView NavigationView NavigationSplitView or NavigationStack @StateObject (superseded) @StateObject @State with @Observable (preferred, not deprecated) Custom blur .ultraThinMaterial on nav .glassEffect() Missing shortcuts Buttons without .keyboardShortcut Add standard shortcuts Glass on content .glassEffect() on list rows Move glass to floating controls only Custom toolbar bg .toolbarBackground Remove (let glass handle it)
  5. Check the deprecated API table (Section 1 of design-diagnosis.md). Replace every deprecated call with its modern equivalent.
  6. Plan the transformation. For each file, list the changes with design rationale:

- WHAT you're changing - WHY it's dated - WHAT the Apple-native replacement is

  1. Transform the code. Apply all changes. Do not half-transform — if you're touching a file, bring it fully up to date.
  2. Run the review checklist below.
  3. Check references/pitfalls-and-solutions.md for known macOS-specific bugs.

Path 3: Migrate a pre-Tahoe macOS app to Liquid Glass

  1. Read references/migration-guide.md for the 5-phase workflow.
  2. Compile with Xcode 26 — system components auto-adopt glass.
  3. Remove conflicting customizations (.toolbarBackground(), .presentationBackground(), custom materials).
  4. Read references/design-diagnosis.md Section 1 — replace ALL deprecated APIs while migrating.
  5. Enhance with glass APIs: .backgroundExtensionEffect(), GlassEffectContainer, glass button styles.
  6. Refine for macOS: .tint(.clear) on secondary glass buttons if tint bleed occurs, scrollEdgeEffectStyle, control sizing.
  7. Bridge to AppKit where needed — read references/appkit-bridging.md.
  8. Run the full review checklist.

Path 4: Review macOS Liquid Glass implementation

  1. Read references/design-principles.md — calibrate your design eye.
  2. Run the diagnosis checklist from references/design-diagnosis.md Section 4.
  3. Scan for all 30 design smells in references/design-diagnosis.md Section 2.
  4. Check references/pitfalls-and-solutions.md for known bugs.
  5. Report findings as: [SEVERITY] [CATEGORY] description → fix

Quick Design Rules

Glass Placement

Navigation layer → glass     Content layer → NO glass
─────────────────────────     ────────────────────────
Toolbars                      Lists
Sidebars                      Tables
Floating controls             Text blocks
Sheets/Popovers               Images/Media
Menu overlays                 Cards/Cells
Tab bars (sidebar on macOS)   Form fields

Hierarchy Through Tinting

Primary action   → .buttonStyle(.glassProminent)  ONE per screen
Secondary action → .buttonStyle(.glass)            Everything else
Destructive      → .tint(.red)                     Delete, remove
Informational    → No tint, no prominence           Just glass

macOS-Specific Non-Negotiables

  • .interactive() is iOS-only — use .onHover {} on macOS
  • .scrollEdgeEffectStyle(.hard) is the macOS default
  • TabView uses .tabViewStyle(.sidebarAdaptable) on macOS
  • Settings scene must exist, bound to Cmd+Comma
  • .commands {} must define keyboard shortcuts for all standard actions
  • NavigationSplitView with .backgroundExtensionEffect() for sidebar layouts

Known Workarounds

  • .tint(.clear) on macOS glass secondary buttons — practitioner workaround for tint bleed, not official Apple guidance. Apply only when tint bleed is visually apparent, not as a blanket rule.

The "Apple Would Never" List

Seeing ANY of these means the code is not native:

  • Glass on list rows, table cells, or content
  • Multiple tinted primary actions on one screen
  • Hardcoded colors (Color(red:), Color("#hex")) on glass
  • Fixed font sizes (.system(size: 24)) instead of text styles
  • NavigationView instead of NavigationSplitView/NavigationStack
  • @StateObject/@ObservedObject instead of @Observable (superseded, not officially deprecated — but preferred for glass performance)
  • .toolbarBackground(.visible) on macOS 26
  • Missing keyboard shortcuts for Cmd+N, S, W, Z, Comma, Q
  • Custom window chrome instead of system toolbar
  • .interactive() on macOS code paths

Reference Routing

ReferenceRead when
references/design-principles.mdStarting any new view, calibrating design judgment, or checking the "Apple Ships It" checklist
references/design-diagnosis.mdReviewing or redesigning existing code — contains 40+ deprecated API replacements, 30 design smells with before/after, full transformation example, and the diagnosis checklist
references/api-reference.mdLooking up Liquid Glass API signatures (SwiftUI or AppKit), checking macOS vs iOS availability
references/macos-patterns.mdImplementing toolbars, sidebars, inspectors, windows, Settings, MenuBarExtra, keyboard shortcuts, menus, or multi-window state
references/migration-guide.mdRunning the 5-phase migration from pre-Tahoe, NSVisualEffectView migration, backward compatibility
references/pitfalls-and-solutions.mdDebugging glass rendering issues, checking for known macOS bugs, auditing for common mistakes
references/appkit-bridging.mdBridging SwiftUI to AppKit for glass, NSGlassEffectView in SwiftUI, NSToolbar bridging, deciding when to bridge

Review Checklist

Design Quality

  • ONE primary action per screen with .glassProminent — everything else is neutral .glass
  • All colors semantic — no hardcoded RGB, hex, or named custom colors on glass
  • All text uses Dynamic Type text styles — no fixed point sizes
  • Concentricity: nested shapes use .containerConcentric or proportional radii

Glass Placement

  • Glass ONLY on navigation-layer elements (toolbars, sidebars, floating controls, sheets)
  • NO glass on content (lists, tables, media, text, cards, form fields)
  • .regular variant used (.clear only for media-rich backgrounds, never mixed)
  • GlassEffectContainer wraps every group of nearby glass elements

macOS Native

  • .tint(.clear) applied only to secondary glass buttons showing tint bleed (practitioner workaround, not a default requirement)
  • No .interactive() calls (iOS-only)
  • .scrollEdgeEffectStyle appropriate (macOS defaults .hard)
  • TabView uses .tabViewStyle(.sidebarAdaptable)
  • NavigationSplitView for sidebar layouts with .backgroundExtensionEffect()
  • Settings scene exists (Cmd+Comma)
  • .commands {} defines keyboard shortcuts for standard actions
  • Window style matches app archetype
  • Toolbar uses ToolbarSpacer for grouping

Modern APIs

  • No NavigationView (use NavigationSplitView / NavigationStack)
  • No @StateObject/@ObservedObject (prefer @State + @Observable — not deprecated but superseded)
  • No .foregroundColor() (use .foregroundStyle())
  • No .toolbarBackground() or .presentationBackground() on macOS 26
  • #available(macOS 26, *) gates all Liquid Glass APIs

Accessibility

  • Accessibility labels on all icon-only buttons
  • Tested with Reduce Transparency, Increase Contrast, Reduce Motion
  • Keyboard navigation (Tab/Shift+Tab) works through all glass controls
  • VoiceOver reads glass elements correctly

Decision Rules

  • Navigation or content? → The FIRST question. Always. Read references/design-principles.md Section 2 if unsure.
  • Modern or legacy API? → Check references/design-diagnosis.md Section 1 for the full deprecated API table.
  • SwiftUI or AppKit? → Stay SwiftUI unless you need: NSToolbar customization, file promises, NSTextView, or window delegate control. Read references/appkit-bridging.md.
  • Known bug? → Check references/pitfalls-and-solutions.md before debugging further.
  • Which pattern? → Read references/macos-patterns.md for the specific macOS UI pattern.

WWDC 2025 Sessions

SessionFocus
219: Meet Liquid GlassDesign principles, material variants, component hierarchy
310: Build an AppKit app with the new designmacOS-specific: NSGlassEffectView, NSToolbar, NSSplitView
323: Build a SwiftUI app with the new designSwiftUI APIs, GlassEffectContainer, toolbar, sidebar
356: Get to know the new design systemConcentricity, shapes, scroll edge effects, best practices

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.26%
按下载量换算154

Claude

31.09%
按下载量换算128

Cursor

18.54%
按下载量换算77

Gemini CLI

8.62%
按下载量换算36

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills