liquid-glass

작성자: openai

최신 디자인 시스템과 Liquid Glass를 위한 현대적인 macOS SwiftUI UI를 구현, 리팩토링 또는 검토합니다. Liquid Glass를 도입하거나 업데이트할 때 사용하세요.

npx skills add https://github.com/openai/plugins --skill liquid-glass

Liquid Glass

Overview

Use this skill to bring a macOS SwiftUI app into the modern macOS design system with the least custom chrome possible. Start with standard app structure, toolbars, search placement, sheets, and controls, then add custom Liquid Glass only where the app needs a distinctive surface.

Prefer system-provided glass and adaptive materials over bespoke blur, opaque backgrounds, or custom toolbar/sidebar skins. Audit existing UI for extra fills, scrims, and clipping before adding more effects.

Workflow

  1. Read the relevant scene or root view and identify the structural pattern: NavigationSplitView, TabView, sheet presentation, detail/inspector layout, toolbar, or custom floating controls.
  2. Remove custom backgrounds or darkening layers behind system sheets, sidebars, and toolbars unless the product explicitly needs them. These can obscure Liquid Glass and interfere with the automatic scroll-edge effect.
  3. Update standard SwiftUI structure and controls first.
  4. Add custom glassEffect surfaces only for app-specific UI that standard controls do not cover.
  5. Validate that glass grouping, transitions, icon treatment, and foreground activation are visually coherent and still usable with pointer and keyboard.
  6. If the UI change also affects launch behavior for a SwiftPM GUI app, use build-run-debug so the app runs as a foreground .app bundle rather than as a raw executable.

App Structure

  • Prefer NavigationSplitView for hierarchy-driven macOS layouts. Let the sidebar use the system Liquid Glass material instead of painting over it.
  • For hero artwork or large media adjacent to a floating sidebar, use backgroundExtensionEffect so the visual can extend beyond the safe area without clipping the subject.
  • Keep inspectors visually associated with the current selection and avoid giving them a heavier custom background than the content they inspect.
  • If the app uses tabs, keep TabView for persistent top-level sections and preserve each tab's local navigation state.
  • Do not force iPhone-only tab bar minimize/accessory behavior onto a Mac app. On macOS, prefer a conventional top toolbar and native tab/search placement.
  • If a sheet already uses presentationBackground purely to imitate frosted material, consider removing it and letting the system's new material render.
  • For sheet transitions that should visually originate from a toolbar button, make the presenting item the source of a navigation zoom transition and mark the sheet content as the destination.

Toolbars

  • Assume toolbar items are rendered on a floating Liquid Glass surface and are grouped automatically.
  • Use ToolbarSpacer to communicate grouping:
    • fixed spacing to split related actions into a distinct group,
    • flexible spacing to push a leading action away from a trailing group.
  • Use sharedBackgroundVisibility when an item should stand alone without the shared glass background, for example a profile/avatar item.
  • Add badge to toolbar item content for notification or status indicators.
  • Expect monochrome icon rendering in more toolbar contexts. Use tint only to convey semantic meaning such as a primary action or alert state, not as pure decoration.
  • If content underneath a toolbar has extra darkening, blur, or custom background layers, remove them before judging the new automatic scroll-edge effect.
  • For dense windows with many floating elements, tune the content's scroll-edge treatment with scrollEdgeEffectStyle instead of building a custom bar background.

Search

  • For a search field that applies across a whole split-view hierarchy, attach searchable to the NavigationSplitView, not to just one column.
  • When search is secondary and a compact affordance is better, use searchToolbarBehavior instead of hand-rolling a toolbar button and a separate field.
  • For a dedicated search page in a multi-tab app, assign the search role to one tab and place searchable on the TabView.
  • Make most of the app's content discoverable from search when the field lives in the top-trailing toolbar location.
  • On iPad and Mac, expect the dedicated search tab to show a centered field above browsing suggestions rather than a bottom search bar.

Controls

  • Prefer standard SwiftUI controls before creating custom glass components.
  • Expect bordered buttons to default to a capsule shape at larger sizes. On macOS, mini/small/medium controls preserve a rounded-rectangle shape for denser layouts.
  • Use buttonBorderShape when a button shape needs to be explicit.
  • Use controlSize to preserve density in inspectors and popovers, and reserve extra-large sizing for truly prominent actions.
  • Use the system glass and glass-prominent button styles for primary actions instead of recreating a translucent button background by hand.
  • For sliders with discrete values, pass step to get automatic tick marks or provide specific ticks in a ticks closure.
  • For sliders that should expand left and right around a baseline, set neutralValue.
  • Use Label or standard control initializers for menu items so icons are consistently placed on the leading edge across platforms.
  • For custom shapes that must align concentrically with a sheet, card, or window corner, use a concentric rectangle shape with the containerConcentric corner configuration instead of guessing a radius.

Custom Liquid Glass

  • Use glassEffect for custom glass surfaces. The default shape is capsule-like and text foregrounds are automatically made vibrant and legible against changing content underneath.
  • Pass an explicit shape to glassEffect when a capsule is not the right fit.
  • Add tint only when color carries meaning, such as a status or call to action.
  • Use glassEffect(... .interactive()) for custom controls or containers with interactive elements so they scale, bounce, and shimmer like system glass.
  • Wrap nearby custom glass elements in one GlassEffectContainer. This is a visual correctness rule, not just organization: separate containers cannot sample each other's glass and can produce inconsistent refraction.
  • Use glassEffectID with a local @Namespace when matching glass elements should morph between collapsed and expanded states.

Review Checklist

  • Standard structures and controls were updated first before adding custom glass.
  • Opaque backgrounds, dark scrims, and custom toolbar/sheet fills that fight the system material were removed unless intentionally required.
  • searchable is attached at the correct container level for the intended search scope.
  • Toolbar grouping uses ToolbarSpacer, sharedBackgroundVisibility, and badge instead of one-off hand-built chrome.
  • Icon tint is semantic, not decorative.
  • Custom glass elements that sit near each other share a GlassEffectContainer.
  • Morphing glass transitions use glassEffectID with a namespace and stable identity.
  • Any SwiftPM GUI app used to test the result is launched as a .app bundle, not as a raw executable.

Guardrails

  • Do not rebuild system sidebars, toolbars, sheets, or controls from scratch if standard SwiftUI APIs already provide the modern macOS behavior.
  • Do not apply custom opaque backgrounds behind a NavigationSplitView sidebar, system toolbar, or sheet just because an older version needed one.
  • Do not scatter related glass elements across multiple GlassEffectContainers.
  • Do not tint every icon or glass surface for visual variety alone.
  • Do not assume an iPhone tab/search behavior is the right answer on macOS. Prefer desktop-native toolbar, split-view, and inspector placement.
  • Do not leave a GUI SwiftPM app launching as a bare executable when reviewing Liquid Glass behavior; missing foreground activation can make a design bug look like a rendering bug.

When To Use Other Skills

  • Use swiftui-patterns when the main question is scene architecture, sidebar/detail layout, commands, or settings rather than Liquid Glass-specific treatment.
  • Use view-refactor when the main issue is file structure, state ownership, and extracting large views before design changes.
  • Use appkit-interop when the design requires window, panel, responder-chain, or AppKit-only control behavior.
  • Use build-run-debug when you need to launch, verify, or inspect logs for the app after the visual update.

openai의 다른 스킬

user-context
openai
데이터 분석 플러그인의 지속적인 소스 라우팅 기본 설정, 온보딩 로직, 설정 진행 상황 및 의미 계층 레지스트리를 로드하거나 관리합니다.
official
notion-research-documentation
openai
Notion 콘텐츠를 조사하고 인용문과 함께 구조화된 브리핑, 보고서 또는 비교 자료로 종합합니다. 대상 질의를 사용해 Notion 페이지를 검색하고 가져온 후, 인라인 출처 인용과 참고 문헌 섹션을 포함해 주제별로 결과를 정리합니다. 범위와 사용자 목표에 따라 네 가지 출력 형식(빠른 브리핑, 연구 요약, 비교, 종합 보고서) 중에서 선택합니다. 내장 템플릿을 사용해 Notion 페이지를 생성 및 업데이트하고, 새 정보가 도착하면 출처를 직접 연결하고 변경 사항을 추적합니다...
official
rcsb-pdb-skill
openai
핵심 메타데이터, Search API 쿼리 및 FASTA 다운로드를 위한 간결한 RCSB PDB 요청을 제출합니다. 사용자가 간결한 RCSB 요약을 원할 때 사용하며, 원시 JSON 또는…을 저장합니다.
official
pdf
openai
PDF 읽기, 생성 및 검증 기능을 제공하며, 시각적 렌더링과 프로그래매틱 생성을 지원합니다. Poppler(pdftoppm)를 사용하여 PDF 페이지를 PNG로 렌더링하여 레이아웃, 간격, 타이포그래피를 시각적으로 검사할 수 있습니다. reportlab을 사용하여 프로그래매틱 방식으로 PDF를 생성하여 안정적인 포맷을 보장하며, pdfplumber 또는 pypdf를 통해 텍스트와 메타데이터를 추출합니다. 품질 기준을 준수합니다: 잘린 텍스트, 겹치는 요소, 깨진 표, 렌더링 아티팩트가 없어야 하며, ASCII 하이픈만 사용하고 사람이 읽을 수 있는 인용을 사용합니다.
official
test-coverage-improver
openai
Improve test coverage in the OpenAI Agents JS monorepo: run `pnpm test:coverage`, inspect coverage artifacts, identify low-coverage files and branches, propose…
official
playwright
openai
터미널 기반 브라우저 자동화로 요소 스냅샷 및 대화형 UI 워크플로우 지원. playwright-cli 래퍼 스크립트를 통해 작동하며(npx 필요), 헤드리스 및 헤드 모드 모두 지원하여 시각적 디버깅 가능. 핵심 워크플로우: 페이지 열기, 안정적인 요소 참조를 위한 스냅샷 생성, 참조를 사용한 상호작용, 탐색 또는 DOM 변경 후 재스냅샷. 양식 작성, 클릭, 타이핑, 다중 탭 관리, 스크린샷/PDF 캡처, 흐름 디버깅을 위한 트레이스 기록 포함. 요소 참조(예: e3, e15)...
official
ukb-topmed-phewas-skill
openai
단일 변이에 대한 간결한 UKB-TOPMed PheWAS 요약을 가져오며, rsID, GRCh37 또는 GRCh38 입력을 받아 필요한 GRCh38 쿼리로 변환합니다. 다음과 같은 경우에 사용하세요…
official
code-review-context
openai
모델 가시 컨텍스트
official