
liquid-glass
Implement and review macOS SwiftUI Liquid Glass UI. Use when adopting system glass, removing conflicting custom chrome, or building glass surfaces.
- Installs
- 79
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/openai/plugins --skill liquid-glass- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads liquid-glass automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
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
- Read the relevant scene or root view and identify the structural pattern:
NavigationSplitView,TabView, sheet presentation, detail/inspector layout, toolbar, or custom floating controls. - 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.
- Update standard SwiftUI structure and controls first.
- Add custom
glassEffectsurfaces only for app-specific UI that standard controls do not cover. - Validate that glass grouping, transitions, icon treatment, and foreground activation are visually coherent and still usable with pointer and keyboard.
- If the UI change also affects launch behavior for a SwiftPM GUI app, use
build-run-debugso the app runs as a foreground.appbundle rather than as a raw executable.
App Structure
- Prefer
NavigationSplitViewfor 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
backgroundExtensionEffectso 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
TabViewfor 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
presentationBackgroundpurely 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
ToolbarSpacerto 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
sharedBackgroundVisibilitywhen an item should stand alone without the shared glass background, for example a profile/avatar item. - Add
badgeto toolbar item content for notification or status indicators. - Expect monochrome icon rendering in more toolbar contexts. Use
tintonly 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
scrollEdgeEffectStyleinstead of building a custom bar background.
Search
- For a search field that applies across a whole split-view hierarchy, attach
searchableto theNavigationSplitView, not to just one column. - When search is secondary and a compact affordance is better, use
searchToolbarBehaviorinstead 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
searchableon theTabView. - 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
buttonBorderShapewhen a button shape needs to be explicit. - Use
controlSizeto 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
stepto get automatic tick marks or provide specific ticks in aticksclosure. - For sliders that should expand left and right around a baseline, set
neutralValue. - Use
Labelor 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
containerConcentriccorner configuration instead of guessing a radius.
Custom Liquid Glass
- Use
glassEffectfor 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
glassEffectwhen a capsule is not the right fit. - Add
tintonly 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
glassEffectIDwith a local@Namespacewhen 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.
searchableis attached at the correct container level for the intended search scope.- Toolbar grouping uses
ToolbarSpacer,sharedBackgroundVisibility, andbadgeinstead 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
glassEffectIDwith a namespace and stable identity. - Any SwiftPM GUI app used to test the result is launched as a
.appbundle, 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
NavigationSplitViewsidebar, 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-patternswhen the main question is scene architecture, sidebar/detail layout, commands, or settings rather than Liquid Glass-specific treatment. - Use
view-refactorwhen the main issue is file structure, state ownership, and extracting large views before design changes. - Use
appkit-interopwhen the design requires window, panel, responder-chain, or AppKit-only control behavior. - Use
build-run-debugwhen you need to launch, verify, or inspect logs for the app after the visual update.
FAQ
What does the liquid-glass skill do?
Implement and review macOS SwiftUI Liquid Glass UI. Use when adopting system glass, removing conflicting custom chrome, or building glass surfaces.
How do I install liquid-glass?
Run npx skills add https://github.com/openai/plugins --skill liquid-glass in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/liquid-glass/ (personal) or .claude/skills/liquid-glass/ (project).
Which AI agents can use liquid-glass?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is liquid-glass safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains liquid-glass?
It is published by openai in openai/plugins, and it is an official skill from the maker of the technology it covers. It has 79 recorded installs.
More from openai/plugins
ios-memgraph-leaks
openai/plugins
Capture and inspect iOS leaks and memgraphs. Use when debugging leaked objects, retain cycles, memory growth, or before/after leak evidence.
android-emulator-qa
openai/plugins
Use when validating Android feature flows in an emulator with adb-driven launch, input, UI-tree inspection, screenshots, and logcat capture.
plugin-creator
openai/plugins
Create and scaffold plugin directories for Codex with a required .codex-plugin/plugin.json, optional plugin folders/files, and baseline placeholders you can edit before publishing or testing. Use when Codex needs to create a new personal plugin, add optional plugin structure, or generate or update personal or repo-root .agents/plugins/marketplace.json entries for plugin ordering and availability metadata.
frontend-app-builder
openai/plugins
Use for new frontend applications, dashboards, games, creative websites, hero sections, and visually driven UI from scratch, or when the user explicitly asks for a redesign/restyle/modernization. Builds from clean, airy, high-taste, readable image-generated concept design with section-specific references, faithful implementation, and browser testing.
frontend-testing-debugging
openai/plugins
Use when testing, debugging, or making targeted improvements to rendered frontend apps through the Build Web Apps or web dev plugin: local dev servers, UI regressions, interaction bugs, console errors, responsive layout, and visual QA. Check whether the Browser plugin is available and use it first when it is; otherwise use regular Playwright with the recorded reason.
swiftui-liquid-glass
openai/plugins
Open the skill to read its SKILL.md instructions.
Popular frontend & design skills
setup-matt-pocock-skills
mattpocock/skills
Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.
frontend-design
anthropics/skills
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
hyperframes-animation
heygen-com/hyperframes
All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.
prototype
mattpocock/skills
Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
hyperframes-core
heygen-com/hyperframes
The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.
vercel-react-best-practices
vercel-labs/agent-skills
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.