yigitkonur/plugin-swiftui/macos-app-patterns
Claude Code and agent skill by yigitkonur/plugin-swiftui
- community
Checking that the SKILL.md file is still in the repository.
Find production patterns for complete macOS SwiftUI features such as menu bar apps, settings, windows, and AppKit bridges.
Install
npx vskill@latest install yigitkonur/plugin-swiftui/macos-app-patternsSKILL.md
The same SKILL.md was published earlier as yigitkonur/plugin-swiftui/macos-app-patterns.
Bundled resource root
Let <swiftui-plugin-root> be the absolute plugin directory two levels above this SKILL.md. Resolve that path before running commands or opening shared references. When these instructions say swiftui-ctx, invoke <swiftui-plugin-root>/scripts/swiftui-ctx; do not assume the command is on PATH.
macos-app-patterns — scaffold from real recipes
For building a whole feature, not one call. Each recipe is a canonical template plus real examples from shipping macOS apps, served by swiftui-ctx. (One API → swiftui-examples. Deprecated cleanup → swiftui-modernize.)
swiftui-ctx = <swiftui-plugin-root>/scripts/swiftui-ctx (or swiftui-ctx on PATH). It self-builds + self-locates the catalog.
The rule
Don't reconstruct a macOS pattern from memory (menu-bar lifecycle, Settings scene, NSViewRepresentable wiring are exactly where memory fails). Pull the recipe, then open a real example. Announce: "Using macos-app-patterns."
Workflow
swiftui-ctx recipes— list the patterns (or go straight to the one you need).swiftui-ctx recipe <name>— the template skeleton + the APIs + real examples.swiftui-ctx file <example.id> --smart(or the printedfile <permalink>) — read the real, compilable code.- Adapt the template to the task; verify each API's current shape with
swiftui-ctx lookup <api>if unsure.
Recipes (and when to use each)
| Recipe | Use for | |
|---|---|---|
menubar-app | a status-bar/menu-bar app with a Settings window (MenuBarExtra + Settings) | |
settings-screen / settings-form | a preferences window (TabView of panes) / a grouped Form of controls | |
master-detail | sidebar + detail (NavigationSplitView) — the macOS standard | |
window-scene | custom window config (hidden title bar, fixed size, level) | |
observable-model | modern state: @Observable model owned by a view | |
nsview-bridge | wrap an AppKit NSView/NSViewController (the hardest thing to get right) | |
charts-bar | a Swift Charts bar chart with axes | |
searchable-list | a list with a search field (+ scopes) | |
command-palette | a ⌘K quick-open/command overlay | |
draggable-reorder | reorderable rows (onMove / draggable+dropDestination(for:isEnabled:action:)) | |
cached-async-image | remote image with placeholder (+ caching note) |
Full index with the APIs each pulls in → references/recipes.md.
Errors → actions
3 not-found (bad recipe name) → swiftui-ctx recipes to list them. 5 no catalog → STOP, tell the user, don't fabricate.
References
| File | Read when | |
|---|---|---|
references/recipes.md | You want the recipe index with the APIs each one composes. |
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/swiftui/skills/macos-app-patterns/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/yigitkonur/plugin-swiftui/macos-app-patterns)