Desktop Swiftui
Use when the user asks about SwiftUI on macOS, WindowGroup, MenuBarExtra, Settings scenes, Observation (@Observable), NavigationSplitView, AppKit bridging or multiplatform SwiftUI apps. Produces SwiftUI Mac app architecture. Not for AppKit-only apps (use desktop-appkit) or iOS apps (use ios).
Install
npx skills add j4flmao/agent-skills --skill desktop-swiftuigit clone --depth 1 https://github.com/j4flmao/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/agent-skills/skills/desktop/swiftui ~/.claude/skills/desktop-swiftuiPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# SwiftUI
## Purpose
Build native macOS applications using SwiftUI — Apple's declarative UI framework for all Apple platforms. SwiftUI on macOS provides automatic support for Dark Mode, Dynamic Type, Accessibility, and native window management with less code than AppKit.
## Agent Protocol
### Trigger
Exact user phrases: "SwiftUI macOS", "SwiftUI App", "macOS SwiftUI", "SwiftUI multiplatform", "SwiftUI scene", "NSViewRepresentable", "SwiftUI window", "SwiftUI settings", "SwiftUI commands".
### Input Context
- Minimum macOS target (macOS 12+, macOS 14+ for latest APIs)
- App lifecycle (SwiftUI App vs AppKit delegate with SwiftUI views)
- Platform targets (macOS only vs multiplatform iOS + macOS)
- Architecture (MVVM, TCA, Redux, Combine)
- Core Data, SwiftData, or other persistence
- Window types (single window, multiple windows, document-based, settings, menu bar)
### Output Artifact
SwiftUI macOS architecture with scene structure, view hierarchy, state management, and platform-specific patterns.
### Response Format
```
Target: macOS {version} Scenes: {WindowGroup/Window/Settings/MenuBarExtra}
Navigation: {NavigationSplitView columns}
Data: {@Observable models | SwiftData @Model}
AppKit bridges: {NSViewRepresentable list}
Code: {files}
```
### Completion Criteria
- [ ] App structure defined (WindowGroup, DocumentGroup, MenuBarExtra, Settings)
- [ ] Window management strategy (multiple windows, window group, custom scene)Details
- Skill name
desktop-swiftui- Repository
- j4flmao/agent-skills
- Path
skills/desktop/swiftui/SKILL.md- License
- MIT
- Repo updated
- 17 November 2026
FAQ
What does the Desktop Swiftui skill do?
Use when the user asks about SwiftUI on macOS, WindowGroup, MenuBarExtra, Settings scenes, Observation (@Observable), NavigationSplitView, AppKit bridging or multiplatform SwiftUI apps. Produces SwiftUI Mac app architecture. Not for AppKit-only apps (use desktop-appkit) or iOS apps (use ios).
How do I install the Desktop Swiftui skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add j4flmao/agent-skills --skill desktop-swiftui. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Desktop Swiftui popular?
It lives in j4flmao/agent-skills, which has 45 GitHub stars and 6 forks.
Related skills
Agent Observability
45j4flmao/agent-skills
Use when the user asks about agent observability, tracing agent reasoning, debugging an agent loop, OpenTelemetry GenAI spans for LLM calls, LLM cost tracking per agent, agent audit logs or hallucination/eval monitoring in production. Produces instrumentation config, trace schema, dashboards, alerts and cost attribution. Not for generic service tracing without LLMs (use devops-opentelemetry).
AI Agent Architectures
45j4flmao/agent-skills
Use when the user asks to build an AI agent, design an agent that calls tools and keeps memory, write an agent system prompt or pick an agent framework (Claude Agent SDK, OpenAI Agents SDK, LangGraph). Produces an architecture brief covering loop, tools, memory, guardrails and evals, routing depth to child skills. Not for workflow patterns (use ai-agentic-workflows).
AI Agent Core Loop
45j4flmao/agent-skills
Use when the user asks about the agent loop, ReAct vs plan-and-solve, re-planning, Reflexion, an agent stuck in a loop, max iterations or termination conditions. Produces a loop spec or patch with state, success predicate, caps and no-progress detection. Not for overall agent design (use ai-agent-architectures) or tool schemas (use tool-calling-principles).
Kotlin Architecture
45j4flmao/agent-skills
Use when the user asks about Ktor, Kotlin backend architecture, Ktor plugins and routing, coroutine scopes in a server, StatusPages error handling or http4s/Spring WebFlux with Kotlin. Produces a Kotlin service layout with structured concurrency. Not for repository/DI/MockK recipes (use kotlin-backend-patterns).
Desktop Appkit
45j4flmao/agent-skills
Use when the user asks about AppKit, Cocoa, NSWindow, NSViewController, NSDocument, menus and the responder chain, Objective-C or Swift macOS apps, sandboxing or notarization. Produces native macOS app architecture with AppKit. Not for SwiftUI-first Mac apps (use desktop-swiftui) or cross-platform desktop (use desktop-electron).
Kotlin Backend Patterns
45j4flmao/agent-skills
Use when the user asks about Koin DI, MockK tests, runTest coroutine testing, Kotlin repository and service layers, DTO mapping with extension functions or sealed error hierarchies. Produces Kotlin backend pattern code. Not for Ktor app structure (use kotlin-architecture) or Android (use android).
Browse the most popular Claude skills, all mobile development skills, or write your own with the skills generator.