window-management
Skill by openai
Customizes macOS SwiftUI window chrome, drag regions, placement, restoration and launch behavior for each window role. Built for developers who build macOS apps with SwiftUI scenes.
Install window-management
Built from the published package, never by AI.
git clone --depth 1 https://github.com/openai/plugins /tmp/plugins && mkdir -p ~/.claude/skills && cp -r /tmp/plugins/plugins/build-macos-apps/skills/window-management ~/.claude/skills/window-managementRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/openai/plugins /tmp/plugins && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/plugins/plugins/build-macos-apps/skills/window-management ~/.gemini/antigravity-cli/skills/window-managementAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The window-management skill helps an assistant tailor each SwiftUI window in a macOS app to its job. It starts by identifying which scene owns the window, such as Window, WindowGroup, or a dedicated utility scene. It then guides changes to toolbar and title presentation, background materials, drag regions, restoration, launch behavior, and default and ideal placement.
The skill favors SwiftUI scene and window modifiers over ad hoc AppKit bridges. It points to the appkit-interop skill only when those modifiers are not enough. The source says these APIs are macOS 15 or later. It is written for developers who build main, About, media, welcome, or borderless windows and want each one to behave correctly.
Written from the project's SKILL.md and checked against it.
What it can do
- Toolbar and titleAdjusts toolbar title and background visibility to match the window content.
- Drag regionsAdds a usable drag area when the toolbar background or toolbar is hidden.
- Background and materialsApplies system materials such as thick material to utility and About windows.
- Window behaviorSets minimize availability, state restoration and launch presentation for a window role.
- Window placementControls default size and position for new windows and ideal size for Zoom.
- Borderless windowsUses the plain window style and keeps a clear move or close path.
What you need
- macOS 15 or later for the described SwiftUI window APIs
- A SwiftUI macOS app with its scene declarations
Try asking
- Make my About window non-minimizable and stop it reopening on launch
- Hide the toolbar background on my media window and add a drag region
- Set the default placement so my document window fits the visible display
Good to know
- The described APIs require macOS 15 or later.
- Older deployment targets need more AppKit bridging or availability guards.
- Plain borderless windows need an explicit drag or move affordance.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugins/build-macos-apps/skills/window-management/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB -
agents/openai.yaml418 B -
references/api-snippets.md2 KB
Alternatives to window-management
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
window-management: common questions
Which macOS version does window-management need?
The source says these SwiftUI window and scene customizations are macOS 15 or later. For older targets it expects more AppKit bridging or availability guards.
Does it replace AppKit NSWindow code?
No. The skill says to prefer SwiftUI modifiers first and only switch to the appkit-interop skill for a narrow NSWindow bridge when needed.
How does it handle windows that reopen at launch?
It recommends restorationBehavior(.disabled) for About, transient, or welcome windows, and keeps restoration on for primary document or navigation windows.
How do I install window-management?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is window-management free?
The code is public, but no licence file was found, so check the repository before commercial use.
Is window-management safe to use?
It scores 85 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to window-management?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
