mac-app
/mac-app
Build or change a small native macOS app in SwiftUI, with or without Xcode, from a working template with snapshot checks and a self-test. Use when the user wants a Mac app, a menu bar utility, or a change to an app made from this template.
- Author
- workflowsdiy ↗
- Repository
- bama-light ↗
- Licence
- MIT
- Last repository change
- 06.11.2026
Assessment and security
- Files in this package
- 33
- Scripts
- 20
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 06.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 20 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/new-app.sh, scripts/window-shot.sh, template/Package.swift, template/Sources/__APP_NAME__/App.swift, template/Sources/__APP_NAME__/ContentView.swift, template/Sources/__APP_NAME__/Models.swift, template/Sources/__APP_NAME__/SeedData.swift, template/Sources/__APP_NAME__/SelfTest.swift
What it does and when to use it
Build or change a small native macOS app in SwiftUI, with or without Xcode, from a working template with snapshot checks and a self-test. Use when the user wants a Mac app, a menu bar utility, or a change to an app made from this template.
Original author description
Build or change a small native macOS app in SwiftUI, with or without Xcode, from a working template with snapshot checks and a self-test. Use when the user wants a Mac app, a menu bar utility, or a change to an app made from this template.
How it works
- Toolchain
- How to build an app
- Rules that matter most
- References
SKILL.md preview
--- name: mac-app description: Build or change a small native macOS app in SwiftUI, with or without Xcode, from a working template with snapshot checks and a self-test. Use when the user wants a Mac app, a menu bar utility, or a change to an app made from this template. --- # Mac app Small, personal, native Mac apps: one person's tool, local data, no server. You already know Swift and SwiftUI. This skill adds a template that builds without Xcode, a way to see every page as a PNG, and the Mac-specific traps that are easy to get wrong. ## Toolchain Run `xcode-select -p`. Everything works either way; Xcode only adds extras. | | Command Line Tools only | With Xcode | | --- | --- | --- | | Build, run, sign | `./build.sh` | same | | Unit tests | `tools/test.sh` adds the framework flags | same script | | App icon | flat `.icns` from the layers | Liquid Glass icon (`actool`) | | Data | Core Data, model in code (the template) | same, or SwiftData | | Profiling | `sample`, `footprint`, `leaks` | plus Instruments | | App Intents, widgets, extensions | not available | need an Xcode project | Never ask the user to install Xcode for something the left column covers. ## How to build an app 1. **Agree the scope in chat.** What the app does, its main pages, its one data type, and what it leaves out (accounts, sync, sharing). Keep the plan in the conversation, not in a file in the repository. 2. **Design, when the layout is not obvious.** Otherwise go straight to SwiftUI. [design.md](design.md): real Mac apps, galleries for mood, two or three mockups, and the user picks. 3. **Scaffold.** `scripts/new-app.sh <AppName> <bundle-id> <parent-folder>` creates the app and its first commit. Rename `Item`, the sidebar pages, and `firstItem(on:)` to the app's own, then `./build.sh`. Add `--open` only when the person wants the app brought forward: it takes focus. For a menu bar app, delete the main window and sidebar, start the model from the app delegate, and point `Snapshot.swift`, `SelfTest.swift`, and the two tool scripts at the panel and its states instead of sidebar pages. 4. **Build one feature at a time.** For each: write the code, add sample data and a self-test check for its logic, then: ```bash ./build.sh && tools/selftest.sh && tools/test.sh && tools/snap.sh ``` Read the light and dark PNGs in the printed `/tmp/<AppName>-shots.*` folder. Fix what looks wrong, run again, and commit with a message that says what the user can now do. The app's own `AGENTS.md` (also read through `CLAUDE.md`) repeats the commands and rules for later sessions. ## Rules that matter most - Apple's controls, system colors, the system accent, SF Symbols. Window chrome, menus, sheets, and alerts stay native. - Every action has a menu item and a keyboard shortcut. - Windows open calm: no focus ring or selected text on open (`.noInitialFocus()`), and sheets and Settings sized to their content (`.fitsContent()`). See native.md. - Tests, snapshots, and seed data use a store in /tmp, never the real one. - The snapshot PNGs are the check for anything visual. Without Screen Recording permission they fall back to a drawing that leaves sidebars and glass blank; say so instead of trusting those areas. ## References Read the one you need: - [native.md](native.md): what makes it feel like a Mac app (toolbars, menus, windows, Settings, sheets and popovers, Liquid Glass). - [swift.md](swift.md): Swift 6 and SwiftUI traps, and the Core Data pattern the template uses. - [system.md](system.md): global hotkeys, menu bar, panels, other apps' windows, screen capture, permissions, and signing that keeps them. - [performance.md](performance.md): measuring and fixing slowness. - [design.md](design.md): inspiration and mockups. To let Claude, Codex, or scripts drive the finished app, use the `agent-cli` skill.
Files in this package (33)
- SKILL.md 4 KB
- design.md 3 KB
- native.md 14 KB
- performance.md 6 KB
- swift.md 9 KB
- system.md 9 KB
- scripts/new-app.sh 2 KB
- scripts/window-shot.sh 1 KB
- template/.gitignore 1 KB
- template/AGENTS.md 3 KB
- template/CLAUDE.md 1 KB
- template/Info.plist.in 1 KB
- template/Package.swift 1 KB
- template/build.sh 5 KB
- template/Icon/AppIcon.icon/icon.json 1 KB
- template/Icon/AppIcon.icon/Assets/back.svg 1 KB
- template/Icon/AppIcon.icon/Assets/front.svg 1 KB
- template/Sources/__APP_NAME__/App.swift 7 KB
- template/Sources/__APP_NAME__/ContentView.swift 5 KB
- template/Sources/__APP_NAME__/Models.swift 7 KB
- template/Sources/__APP_NAME__/SeedData.swift 1 KB
- template/Sources/__APP_NAME__/SelfTest.swift 7 KB
- template/Sources/__APP_NAME__/SettingsView.swift 2 KB
- template/Sources/__APP_NAME__/Snapshot.swift 8 KB
- template/Sources/__APP_NAME__/TestRun.swift 5 KB
- template/Sources/__APP_NAME__/UI/WindowBehavior.swift 3 KB
- template/Sources/__APP_NAME__Kit/ItemTitle.swift 1 KB
- template/Tests/__APP_NAME__KitTests/ItemTitleTests.swift 1 KB
- template/tools/flat_icon.swift 4 KB
- template/tools/make_icon.sh 2 KB
- template/tools/selftest.sh 1 KB
- template/tools/snap.sh 1 KB
- template/tools/test.sh 1 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · workflowsdiy/bama-light | 100 | MIT |
| onder007/mac-app-skill | 90 | MIT |
| ciro-maciel/ccm-stack | 85 | MIT |
Database snapshot: 13.11.2026 · package version 6f21c16ec0f4 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100new-mac-app
Create a native macOS SwiftUI app from a working template (Swift package, SwiftData, build script, icon script, snapshot mode, git), with no Xcode GUI. Use when the user wants to start a new Mac app or scaffold a macOS project. - 100new-mac-app
Create a native macOS SwiftUI app from a working template (Swift package, SwiftData, build script, icon script, snapshot mode, git), with no Xcode GUI. Use when the user wants to start a new Mac app or scaffold a macOS project. - 100macos-apps
Build professional native macOS apps in Swift with SwiftUI and AppKit. Full lifecycle - build, debug, test, optimize, ship. CLI-only, no Xcode. Use when asked to: create macOS apps, build Swift apps, develop SwiftUI interfaces, fix macOS app issues, add macOS app features, or… - 90argent-macos-app-interact
Drive a native Mac app (AppKit, SwiftUI, react-native-macos) through argent. Use when a list-devices entry has platform "macos", or the user names a Mac app, a macOS app or a native desktop app. Never for an iOS simulator, an iPhone, or an Electron or Chromium app (platform "chromium"). - 100build-and-verify
Build a SwiftUI macOS app from the command line, install it, and check light and dark window snapshots of every page before calling a change done. Use when a UI change lands, a build fails, or when the user asks to run, screenshot, or check the app. - 91macos-app-design
Design and build OpenAI-Codex-quality native macOS apps with the polish of Linear, Things 3, Granola, Notion Calendar, Arc Browser, Raycast, and Apple's own apps. Use this skill whenever the user is building, reviewing, or polishing a native Swift/SwiftUI Mac app — including AI…