macos-menubar-tuist-app
Build and maintain macOS menubar apps with a Tuist-first workflow and stable launch scripts. Preserve strict architecture boundaries so networking, state, and UI remain testable and predictable.
When to Use
- When working on LSUIElement menubar utilities built with Tuist and SwiftUI.
- When you need Tuist manifests, launch scripts, or architecture guidance for a menubar app.
Core Rules
- Keep the app menubar-only unless explicitly told otherwise. Use
LSUIElement = true by default.
- Keep transport and decoding logic outside views. Do not call networking from SwiftUI view bodies.
- Keep state transitions in a store layer (
@Observable or equivalent), not in row/view presentation code.
- Keep model decoding resilient to API drift: optional fields, safe fallbacks, and defensive parsing.
- Treat Tuist manifests as the source of truth. Do not rely on hand-edited generated Xcode artifacts.
- Prefer script-based launch for local iteration when
tuist run is unreliable for macOS target/device resolution.
- Prefer
tuist xcodebuild build over raw xcodebuild in local run scripts when building generated projects.
Expected File Shape
Use this placement by default:
Project.swift: app target, settings, resources, Info.plist keys
Sources/*Model*.swift: API/domain models and decoding
Sources/*Client*.swift: requests, response mapping, transport concerns
Sources/*Store*.swift: observable state, refresh policy, filtering, caching
Sources/*Menu*View*.swift: menu composition and top-level UI state
Sources/*Row*View*.swift: row rendering and lightweight interactions
run-menubar.sh: canonical local restart/build/launch path
stop-menubar.sh: explicit stop helper when needed
Workflow
- Confirm Tuist ownership
- Verify
Tuist.swift and Project.swift (or workspace manifests) exist.
- Read existing run scripts before changing launch behavior.
- Probe backend behavior before coding assumptions
- Use
curl to verify endpoint shape, auth requirements, and pagination behavior.
- If endpoint ignores
limit/page, implement full-list handling with local trimming in the store.
- Implement layers from bottom to top
- Define/adjust models first.
- Add or update client request/decoding logic.
- Update store refresh, filtering, and cache policy.
- Wire views last.
- Keep app wiring minimal
- Keep app entry focused on scene/menu wiring and dependency injection.
- Avoid embedding business logic in
App or menu scene declarations.
- Standardize launch ergonomics
- Ensure run script restarts an existing instance before relaunching.
- Ensure run script does not open Xcode as a side effect.
- Use
tuist generate --no-open when generation is required.
- When the run script builds the generated project, prefer
TUIST_SKIP_UPDATE_CHECK=1 tuist xcodebuild build ... instead of invoking raw xcodebuild directly.
Validation Matrix
Run validations after edits:
TUIST_SKIP_UPDATE_CHECK=1 tuist xcodebuild build -scheme <TargetName> -configuration Debug
If launch workflow changed:
./run-menubar.sh
If shell scripts changed:
bash -n run-menubar.sh
bash -n stop-menubar.sh
./run-menubar.sh
Failure Patterns and Fix Direction
tuist run cannot resolve the macOS destination:
Use run/stop scripts as canonical local run path.
Menu UI is laggy or inconsistent after refresh:
Move derived state and filtering into the store; keep views render-only.
API payload changes break decode:
Relax model decoding with optional fields and defaults, then surface missing data safely in UI.
Feature asks for quick UI patch:
Trace root cause in model/client/store before changing row/menu presentation.
Completion Checklist
- Preserve menubar-only behavior unless explicitly changed.
- Keep network and state logic out of SwiftUI view bodies.
- Keep Tuist manifests and run scripts aligned with actual build/run flow.
- Run the validation matrix for touched areas.
- Report concrete commands run and outcomes.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
1---
2name: macos-menubar-tuist-app
3description: "Build, refactor, or review SwiftUI macOS menubar apps that use Tuist."
4version: 1.0.0
5author:
6 name: "sickn33 / Antigravity Community"
7 github: sickn33
8tags: [macos, menubar, tuist, app]
9category: uncategorized
10platforms: [macos, linux, windows]
11license: MIT
12metadata:
13 hermes:
14 source: https://skillmd.com/skills/nous-hermeshub/macos-menubar-tuist-app
15 upstream: "antigravity-awesome-skills"
16 risk: "safe"
17 date_added: "2026-03-25"
18 original_author: "Antigravity Community"
19---
20
21# macos-menubar-tuist-app
22
23Build and maintain macOS menubar apps with a Tuist-first workflow and stable launch scripts. Preserve strict architecture boundaries so networking, state, and UI remain testable and predictable.
24
25## When to Use
26- When working on LSUIElement menubar utilities built with Tuist and SwiftUI.
27- When you need Tuist manifests, launch scripts, or architecture guidance for a menubar app.
28
29## Core Rules
30
31- Keep the app menubar-only unless explicitly told otherwise. Use `LSUIElement = true` by default.
32- Keep transport and decoding logic outside views. Do not call networking from SwiftUI view bodies.
33- Keep state transitions in a store layer (`@Observable` or equivalent), not in row/view presentation code.
34- Keep model decoding resilient to API drift: optional fields, safe fallbacks, and defensive parsing.
35- Treat Tuist manifests as the source of truth. Do not rely on hand-edited generated Xcode artifacts.
36- Prefer script-based launch for local iteration when `tuist run` is unreliable for macOS target/device resolution.
37- Prefer `tuist xcodebuild build` over raw `xcodebuild` in local run scripts when building generated projects.
38
39## Expected File Shape
40
41Use this placement by default:
42
43- `Project.swift`: app target, settings, resources, `Info.plist` keys
44- `Sources/*Model*.swift`: API/domain models and decoding
45- `Sources/*Client*.swift`: requests, response mapping, transport concerns
46- `Sources/*Store*.swift`: observable state, refresh policy, filtering, caching
47- `Sources/*Menu*View*.swift`: menu composition and top-level UI state
48- `Sources/*Row*View*.swift`: row rendering and lightweight interactions
49- `run-menubar.sh`: canonical local restart/build/launch path
50- `stop-menubar.sh`: explicit stop helper when needed
51
52## Workflow
53
541. Confirm Tuist ownership
55- Verify `Tuist.swift` and `Project.swift` (or workspace manifests) exist.
56- Read existing run scripts before changing launch behavior.
57
582. Probe backend behavior before coding assumptions
59- Use `curl` to verify endpoint shape, auth requirements, and pagination behavior.
60- If endpoint ignores `limit/page`, implement full-list handling with local trimming in the store.
61
623. Implement layers from bottom to top
63- Define/adjust models first.
64- Add or update client request/decoding logic.
65- Update store refresh, filtering, and cache policy.
66- Wire views last.
67
684. Keep app wiring minimal
69- Keep app entry focused on scene/menu wiring and dependency injection.
70- Avoid embedding business logic in `App` or menu scene declarations.
71
725. Standardize launch ergonomics
73- Ensure run script restarts an existing instance before relaunching.
74- Ensure run script does not open Xcode as a side effect.
75- Use `tuist generate --no-open` when generation is required.
76- When the run script builds the generated project, prefer `TUIST_SKIP_UPDATE_CHECK=1 tuist xcodebuild build ...` instead of invoking raw `xcodebuild` directly.
77
78## Validation Matrix
79
80Run validations after edits:
81
82```bash
83TUIST_SKIP_UPDATE_CHECK=1 tuist xcodebuild build -scheme <TargetName> -configuration Debug
84```
85
86If launch workflow changed:
87
88```bash
89./run-menubar.sh
90```
91
92If shell scripts changed:
93
94```bash
95bash -n run-menubar.sh
96bash -n stop-menubar.sh
97./run-menubar.sh
98```
99
100## Failure Patterns and Fix Direction
101
102- `tuist run` cannot resolve the macOS destination:
103Use run/stop scripts as canonical local run path.
104
105- Menu UI is laggy or inconsistent after refresh:
106Move derived state and filtering into the store; keep views render-only.
107
108- API payload changes break decode:
109Relax model decoding with optional fields and defaults, then surface missing data safely in UI.
110
111- Feature asks for quick UI patch:
112Trace root cause in model/client/store before changing row/menu presentation.
113
114## Completion Checklist
115
116- Preserve menubar-only behavior unless explicitly changed.
117- Keep network and state logic out of SwiftUI view bodies.
118- Keep Tuist manifests and run scripts aligned with actual build/run flow.
119- Run the validation matrix for touched areas.
120- Report concrete commands run and outcomes.
121
122## Limitations
123- Use this skill only when the task clearly matches the scope described above.
124- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
125- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.