Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

swift-swiftui

Skill by daveebbelaar

Gives an AI assistant Swift 6 and SwiftUI rules for macOS apps, covering concurrency, state, SwiftData, AppKit bridges, and common compiler errors. Built for developers writing, reviewing, or debugging Swift code in a Mac app.

  • Score 81
  • 2k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install swift-swiftui

Built from the published package, never by AI.

git clone --depth 1 https://github.com/daveebbelaar/bama /tmp/bama && mkdir -p ~/.claude/skills && cp -r /tmp/bama/skills/code/swift-swiftui ~/.claude/skills/swift-swiftui

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install swift-swiftui in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill is a set of rules for writing, reviewing, and debugging Swift 6 and SwiftUI code in macOS apps. It explains how to handle main-actor isolation, Sendable types, and background work. It also covers state with @Observable models, SwiftData models and undo, menu commands, and AppKit bridges such as NSPanel and NSStatusItem. A table lists common compiler errors with fixes.

The source says code is correct when it builds with zero warnings in Swift 6 language mode and the app does what the story describes. It points to separate skills for look and feel (mac-design) and for menu checks (test-mac-app). It is aimed at developers working on a Mac app in Swift.

Written from the project's SKILL.md and checked against it.

What it can do

  • Concurrency rulesExplains main-actor default isolation, actors, Sendable types, and when to use Task.detached.
  • State managementCovers @Observable models, @State, @Bindable, @AppStorage, and safe ForEach use for deletable data.
  • SwiftData guidanceCovers @Model classes, default property values, store location, unique ids, and manual undo.
  • Menu command patternShows how to mirror selection into an ObservableObject so menu items enable and disable correctly.
  • AppKit bridgesDescribes when to use NSPanel, NSViewRepresentable around NSTextView, NSStatusItem, and event monitors.
  • Compiler error fixesLists common Swift and SwiftUI compiler errors with the fix for each.
  • Swift 6 migration fixesLists errors seen when moving a Swift 5 app to Swift 6, with fixes for each.

What you need

  • Swift 6 language mode
  • macOS app project

Try asking

  • Review this Swift view model for concurrency and Sendable problems.
  • Fix the 'cannot find X in scope' error I got after adding a new file.
  • Make this menu item disable when no row is selected in my Mac app.

Good to know

  • Scoped to macOS apps, according to the description.
  • Menu commands do not observe @Observable models, so the source gives a workaround instead of a direct fix.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/code/swift-swiftui/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to swift-swiftui

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

swift-swiftui: common questions

Does this skill cover SwiftData and SwiftUI state?

Yes. It has sections on @Observable, @State, @AppStorage, and SwiftData models, queries, store location, and undo.

What should I do about a 'cannot find X in scope' error?

The source says to run swift package clean with a scratch path under ~/Library/Developer/<AppName>/build after adding a file.

When does the skill say to use AppKit instead of SwiftUI?

It says AppKit is still needed for non-focus-stealing floating panels, custom text views, status items, and key and mouse monitors.

How do I install swift-swiftui?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is swift-swiftui free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is swift-swiftui safe to use?

It scores 81 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to swift-swiftui?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

swift-swiftui Install

Add to stack

Loading.