macos-menubar-tuist-app
Build, refactor, or review SwiftUI macOS menubar apps that use Tuist.
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. ## 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 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. ## 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.
Related in Code Review
gstack
IncludedFast headless browser for QA testing and site dogfooding. Navigate pages, interact with elements, verify state, diff before/after, take annotated screenshots, test responsive layouts, forms, uploads, dialogs, and capture bug evidence. Use when asked to open or test a site, verify a deployment, dogfood a user flow, or file a bug with screenshots. (gstack)
startup-due-diligence
IncludedLegal due diligence review for seed-stage and Series A startups (US, Delaware C-Corp focus). Supports both investor and founder perspectives. Capabilities include: (1) Interactive document review and issue spotting; (2) Document request list generation; (3) Cap table and SAFE/convertible note analysis; (4) Red flag identification with severity ratings; (5) Diligence report generation. TRIGGERS: due diligence, DD, startup investment, cap table review, Series A, seed round, investor diligence, legal review startup, SAFE analysis, convertible note, 409A, founder vesting.
interview-master
IncludedThis skill should be used when the user asks to "generate interview questions", "prepare for interview", "optimize resume", "conduct mock interview", "analyze git commits for resume", "generate resume from code", "review my resume", or mentions interview preparation, career assistance, or extracting project experience from git history. Provides comprehensive interview and career development guidance for both job seekers and interviewers.
fix-issue
IncludedFixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to avoid recurrence. Use when debugging errors, resolving regressions, fixing bugs, or triaging issues.
sf-apex
IncludedGenerates and reviews Salesforce Apex code with 150-point scoring. TRIGGER when: user writes, reviews, or fixes Apex classes, triggers, test classes, batch/queueable/schedulable jobs, or touches .cls/.trigger files. DO NOT TRIGGER when: LWC JavaScript (use sf-lwc), Flow XML (use sf-flow), SOQL-only queries (use sf-soql), or non-Salesforce code.
swift-development
IncludedComprehensive Swift development for building, testing, and deploying iOS/macOS applications. Use when Claude needs to: (1) Build Swift packages or Xcode projects from command line, (2) Run tests with XCTest or Swift Testing framework, (3) Manage iOS simulators with simctl, (4) Handle code signing, provisioning profiles, and app distribution, (5) Format or lint Swift code with SwiftFormat/SwiftLint, (6) Work with Swift Package Manager (SPM), (7) Implement Swift 6 concurrency patterns (async/await, actors, Sendable), (8) Create SwiftUI views with MVVM architecture, (9) Set up Core Data or SwiftData persistence, or any other Swift/iOS/macOS development tasks.