Skills macos-menubar-tuist-app
install
source · Clone the upstream repo
git clone https://github.com/TerminalSkills/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/TerminalSkills/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/macos-menubar-tuist-app" ~/.claude/skills/terminalskills-skills-macos-menubar-tuist-app && rm -rf "$T"
manifest:
skills/macos-menubar-tuist-app/SKILL.mdsource content
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.
Core Rules
- Keep the app menubar-only unless explicitly told otherwise. Use
by default.LSUIElement = true - Keep transport and decoding logic outside views. Do not call networking from SwiftUI view bodies.
- Keep state transitions in a store layer (
or equivalent), not in row/view presentation code.@Observable - 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
is unreliable for macOS target/device resolution.tuist run - Prefer
over rawtuist xcodebuild build
in local run scripts when building generated projects.xcodebuild
Expected File Shape
Use this placement by default:
: app target, settings, resources,Project.swift
keysInfo.plist
: API/domain models and decodingSources/*Model*.swift
: requests, response mapping, transport concernsSources/*Client*.swift
: observable state, refresh policy, filtering, cachingSources/*Store*.swift
: menu composition and top-level UI stateSources/*Menu*View*.swift
: row rendering and lightweight interactionsSources/*Row*View*.swift
: canonical local restart/build/launch pathrun-menubar.sh
: explicit stop helper when neededstop-menubar.sh
Workflow
- Confirm Tuist ownership
- Verify
andTuist.swift
(or workspace manifests) exist.Project.swift - Read existing run scripts before changing launch behavior.
- Probe backend behavior before coding assumptions
- Use
to verify endpoint shape, auth requirements, and pagination behavior.curl - If endpoint ignores
, implement full-list handling with local trimming in the store.limit/page
- 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
or menu scene declarations.App
- Standardize launch ergonomics
- Ensure run script restarts an existing instance before relaunching.
- Ensure run script does not open Xcode as a side effect.
- Use
when generation is required.tuist generate --no-open - When the run script builds the generated project, prefer
instead of invoking rawTUIST_SKIP_UPDATE_CHECK=1 tuist xcodebuild build ...
directly.xcodebuild
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
-
cannot resolve the macOS destination: Use run/stop scripts as canonical local run path.tuist run -
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.