macos-menubar-tuist-app
Build macOS menubar apps with Tuist and SwiftUI. Use when: creating LSUIElement menubar utilities, defining Tuist manifests, or building menubar apps without Xcode-first workflows.
What this skill does
# 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 `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 1. Confirm Tuist ownership - Verify `Tuist.swift` and `Project.swift` (or workspace manifests) exist. - Read existing run scripts before changing launch behavior. 2. 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. 3. 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. 4. 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. 5. 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: ```bash TUIST_SKIP_UPDATE_CHECK=1 tuist xcodebuild build -scheme <TargetName> -configuration Debug ``` If launch workflow changed: ```bash ./run-menubar.sh ``` If shell scripts changed: ```bash 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.
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.