macos-menubar-tuist-app
Build, refactor, or review SwiftUI macOS menubar apps that use Tuist.
About this skill
This skill empowers an AI agent to specialize in the development lifecycle of macOS menubar applications, leveraging SwiftUI for the user interface and Tuist for project generation and management. It guides the agent in building new menubar apps, refactoring existing ones, and performing comprehensive code reviews. The skill emphasizes maintaining strict architectural boundaries, ensuring clean separation of concerns for networking, state management, and UI logic, which promotes testability and predictability. It includes guidance on Tuist manifests, stable launch scripts, and adhering to `LSUIElement = true` for menubar-only utilities.
Best use case
Developing new SwiftUI macOS menubar applications with Tuist. Refactoring existing macOS menubar apps to improve architecture or adopt Tuist. Reviewing macOS menubar app codebases for architectural adherence, SwiftUI best practices, and Tuist configuration. Generating Tuist manifests and launch scripts for menubar-specific projects. Ensuring proper separation of concerns (networking, state, UI) within macOS menubar applications.
Build, refactor, or review SwiftUI macOS menubar apps that use Tuist.
Well-structured, testable, and maintainable SwiftUI macOS menubar applications. Correctly configured Tuist projects for menubar utilities. Adherence to architectural best practices, with clear separation of UI, state, and networking concerns. Functional menubar-only apps (`LSUIElement = true`) with stable launch scripts. Identification of architectural flaws or areas for improvement in existing menubar app codebases.
Practical example
Example input
Develop a new SwiftUI macOS menubar application using Tuist that displays the current weather for a specified location. Ensure strict separation of networking and UI, and include a basic settings menu.
Example output
```json
{
"action": "create_menubar_app",
"project_name": "WeatherMenubarApp",
"status": "success",
"details": "A new Tuist-based SwiftUI macOS menubar application project ('WeatherMenubarApp') has been generated. The project includes a Tuist manifest configured for an LSUIElement menubar app, a basic SwiftUI view structure for the menubar item, placeholder files for a `WeatherService` (for networking) and a `WeatherViewModel` (for state management), and a rudimentary settings menu integration. The architecture promotes clean separation of concerns. Instructions for building and running the project locally using Tuist are provided."
}
```When to use this skill
- 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.
When not to use this skill
- For developing full-fledged macOS desktop applications with standard windows and docks.
- For iOS, iPadOS, watchOS, or tvOS application development.
- When the project does not use Tuist for project generation.
- When not building a menubar-only utility (i.e., `LSUIElement = false` is desired).
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/macos-menubar-tuist-app/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How macos-menubar-tuist-app Compares
| Feature / Agent | macos-menubar-tuist-app | Standard Approach |
|---|---|---|
| Platform Support | Claude | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | easy | N/A |
Frequently Asked Questions
What does this skill do?
Build, refactor, or review SwiftUI macOS menubar apps that use Tuist.
Which AI agents support this skill?
This skill is designed for Claude.
How difficult is it to install?
The installation complexity is rated as easy. You can find the installation instructions above.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
ChatGPT vs Claude for Agent Skills
Compare ChatGPT and Claude for AI agent skills across coding, writing, research, and reusable workflow execution.
SKILL.md Source
# 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.
Related Skills
n8n-expression-syntax
Validate n8n expression syntax and fix common errors. Use when writing n8n expressions, using {{}} syntax, accessing $json/$node variables, troubleshooting expression errors, or working with webhook data in workflows.
mermaid-expert
Create Mermaid diagrams for flowcharts, sequences, ERDs, and architectures. Masters syntax for all diagram types and styling.
mcp-builder-ms
Use this skill when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
makepad-deployment
CRITICAL: Use for Makepad packaging and deployment. Triggers on: deploy, package, APK, IPA, 打包, 部署, cargo-packager, cargo-makepad, WASM, Android, iOS, distribution, installer, .deb, .dmg, .nsis, GitHub Actions, CI, action, marketplace
kaizen
Guide for continuous improvement, error proofing, and standardization. Use this skill when the user wants to improve code quality, refactor, or discuss process improvements.
issues
Interact with GitHub issues - create, list, and view issues.
hugging-face-tool-builder
Your purpose is now is to create reusable command line scripts and utilities for using the Hugging Face API, allowing chaining, piping and intermediate processing where helpful. You can access the API directly, as well as use the hf command line tool.
git-pushing
Stage all changes, create a conventional commit, and push to the remote branch. Use when explicitly asks to push changes ("push this", "commit and push"), mentions saving work to remote ("save to github", "push to remote"), or completes a feature and wants to share it.
git-hooks-automation
Master Git hooks setup with Husky, lint-staged, pre-commit framework, and commitlint. Automate code quality gates, formatting, linting, and commit message enforcement before code reaches CI.
gh-review-requests
Fetch unread GitHub notifications for open PRs where review is requested from a specified team or opened by a team member. Use when asked to "find PRs I need to review", "show my review requests", "what needs my review", "fetch GitHub review requests", or "check team review queue".
fp-types-ref
Quick reference for fp-ts types. Use when user asks which type to use, needs Option/Either/Task decision help, or wants fp-ts imports.
fp-taskeither-ref
Quick reference for TaskEither. Use when user needs async error handling, API calls, or Promise-based operations that can fail.