macos-swiftui
Implement a change in a macOS SwiftUI app, proving it compiles against the macOS SDK and does not block the main thread, avoiding the TCC…
Skill by MagmaMoose
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/magmamoose-macos-swiftui
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/macos-swiftui
What's inside
- Skill name
macos-swiftui- Description
- Implement a change in a macOS SwiftUI app, proving it compiles against the macOS SDK and does not block the main thread, avoiding the TCC, concurrency-isolation, signing and project-wiring traps that have no iOS or web analogue.
- License
- Apache-2.0
- Instructions
- 77 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
Use the shared MagmaMoose macOS SwiftUI workflow. Read and follow: - `shared/macos-swiftui.md` - The target repository's `CLAUDE.md` - The target repository's `AGENTS.md` - The target repository's `CONTRIBUTING.md` - Relevant `README.md` files - The project file (`project.yml`, `Package.swift`, or the `.xcodeproj`) — the source of truth for targets, build settings, deployment target and file membership - The files neighbouring the one you are editing Treat target-repository hard rules as blockers. Where this skill contradicts your iOS or web instincts, this skill wins. For tvOS, use `swiftui-build` instead — the focus-engine and availability rules there do not apply to macOS, and the rules here do not apply to tvOS. Expected input: - An issue number, issue URL, or a description of the change, scoped to the macOS target. ## CRITICAL: prove it compiles, and prove it does not block (READ BEFORE ANY OTHER SECTION) **The end goal is a change that compiles against the macOS SDK, keeps the main thread free, and behaves like a Mac app.** Those are three bars. Most failures clear the first. Run this before you write code and again before you finish: ```sh export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer xcrun --sdk macosx swiftc -typecheck \ -target arm64-apple-macosx<DEPLOYMENT_TARGET> \ -sdk "$(xcrun --sdk macosx --show-sdk-path)" \ $(find <SOURCE_ROOT> -name '*.swift' -not -path '*/Tests/*' -not -name '*Tests.swift') ``` Read `<DEPLOYMENT_TARGET>` out of the project file rather than guessing — the version in `-target` is what makes the gate real. `DEVELOPER_DIR` must be exported in the *same* command as every `xcrun` / `xcodebuild` call, and the whole tree goes into one invocation. `#Preview` fails this sweep under a Command Line Tools toolchain, because the macro plugin ships with Xcode; that is a toolchain limit, not a code error. ## The second failure tier: the frozen window A green typecheck says every symbol exists. It says nothing about which thread your filesystem work runs on, and on macOS that is the defect that actually reaches users. **`Task.detached` does not always detach.** Under the Swift 5 language mode a closure written inside a `@MainActor` method can inherit that isolation, so the work hops straight back to the main thread — no error, no warning. Measured on a real app: 1722 of 1722 samples parked in `contentsOfDirectory` on `com.apple.main-thread`. Use an explicit `DispatchQueue` hop, which isolation inference cannot undo, and prove it with `sample <pid>`: a main thread in `__CFRunLoopRun` is idle and drawing; a main thread in your own code is a frozen window. **Cloud volumes charge a round trip per listing.** 105 folders measured at 13 seconds of wall clock for 0.14 s of CPU. Draw the list from data that costs nothing, enrich in the background. ## The third failure tier: silent denial **A denied read of a TCC-protected location does not fail — it blocks inside `open(2)` and never returns.** No error, no timeout, nothing to catch. The same code listed the same iCloud folder in 0.037 s from a terminal holding Full Disk Access and never returned from an app bundle without it. Any first read of a user folder needs a deadline and a path forward, and for a non-sandboxed app that path is `NSOpenPanel` — the user picking the folder *is* the grant. **TCC grants bind to the code signature**, so an ad-hoc build loses them on every rebuild. That looks like a regression in your code and is not. ## Expected behavior Follow `shared/macos-swiftui.md` end to end. It carries the full permission-key list, the EventKit and AppleScript specifics, the state-ownership rules, the decoding traps, the project-wiring rules, and the definition of done. State plainly what you could not verify. A green typecheck is a green typecheck, not a working app.
From MagmaMoose/agent-skills, Apache-2.0.
More from MagmaMoose/agent-skills
- 0.565score
docs-anonymise
MagmaMoose
The human half of publishing private documentation through docs-distributor.
SkillAFreshness: AClaude Code +9 - 0.561score
swiftui-build
MagmaMoose
Implement a change in a tvOS SwiftUI app, proving it compiles against the tvOS SDK and is reachable with a D-pad, avoiding the availability, focus-engine…
SkillAFreshness: AClaude Code +9 - 0.561score
catchup-write
MagmaMoose
Write a welcome-back report for a colleague returning from leave - what shipped on GitHub, what was discussed in meetings and Teams, what is waiting for them…
SkillAFreshness: AClaude Code +9 - 0.561score
chargate-security-review
MagmaMoose
After the Chargate security gate finishes on a PR, review the change for the security defects a pattern scanner structurally cannot find, and reply to…
SkillAFreshness: AClaude Code +9 - 0.561score
context-optimise
MagmaMoose
Install a layered context stack in a repository - a structural map, a lean auto-loaded session context, noise and access control, persistent memory, and a…
SkillAFreshness: AClaude Code +9 - 0.561score
diagram-draw
MagmaMoose
Draw an architecture diagram grounded in the live system rather than the repository, iterate it against its own screenshots until it is actually readable, and…
SkillAFreshness: AClaude Code +9 - 0.561score
docs-update
MagmaMoose
Sync a repository's ./docs (MkDocs) with the current code, sweeping every documentable surface, closing gaps, verifying with a strict build, and reporting…
SkillAFreshness: AClaude Code +9 - 0.561score
k8s-audit
MagmaMoose
Audit a Kubernetes platform against a world-class bar, grounding every finding in the live cluster as well as the repository, and producing a ranked…
SkillAFreshness: AClaude Code +9 - 0.561score
mikrotik-routeros
MagmaMoose
Write, review or debug code that touches MikroTik RouterOS devices — scripting, /tool fetch telemetry, hardening checks, upgrades and fleet operations —…
SkillAFreshness: AClaude Code +9 - 0.561score
pr-review
MagmaMoose
Review a GitHub PR end to end for correctness, security, repository conventions, tests, and produce one consolidated review.
SkillAFreshness: AClaude Code +9 - 0.561score
pr-sweep
MagmaMoose
Clear every open pull request in a GitHub org.
SkillAFreshness: AClaude Code +9 - 0.561score
pr-triage
MagmaMoose
Triage a GitHub PR by reading all review comments, security findings, code-quality comments, and human feedback, then fixing or responding to each thread.
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 30, 2026 (2 months ago)
- Last release
- Oct 23, 2026 (6 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/MagmaMoose/agent-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from MagmaMoose
- 0.565score
docs-anonymise
MagmaMoose
The human half of publishing private documentation through docs-distributor.
SkillAFreshness: AClaude Code +9 - 0.561score
catchup-write
MagmaMoose
Write a welcome-back report for a colleague returning from leave - what shipped on GitHub, what was discussed in meetings and Teams, what is waiting for them…
SkillAFreshness: AClaude Code +9 - 0.561score
chargate-security-review
MagmaMoose
After the Chargate security gate finishes on a PR, review the change for the security defects a pattern scanner structurally cannot find, and reply to…
SkillAFreshness: AClaude Code +9 - 0.561score
context-optimise
MagmaMoose
Install a layered context stack in a repository - a structural map, a lean auto-loaded session context, noise and access control, persistent memory, and a…
SkillAFreshness: AClaude Code +9 - 0.561score
diagram-draw
MagmaMoose
Draw an architecture diagram grounded in the live system rather than the repository, iterate it against its own screenshots until it is actually readable, and…
SkillAFreshness: AClaude Code +9 - 0.561score
swiftui-build
MagmaMoose
Implement a change in a tvOS SwiftUI app, proving it compiles against the tvOS SDK and is reachable with a D-pad, avoiding the availability, focus-engine…
SkillAFreshness: AClaude Code +9
Cite this page
macos-swiftui skill. Agent Mart. https://agentmart.dev/skills/magmamoose-macos-swiftui (last updated 2026-10-24)