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

ha-ios-ui

Skill by home-assistant

Sets out SwiftUI and UIKit UI conventions for the Home Assistant iOS app. Written for developers building views, reusable components and widgets in that codebase.

  • Score 83
  • 2.4k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install ha-ios-ui

Built from the published package, never by AI.

git clone --depth 1 https://github.com/home-assistant/iOS /tmp/iOS && mkdir -p ~/.claude/skills && cp -r /tmp/iOS/.agents/skills/ha-ios-ui ~/.claude/skills/ha-ios-ui

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

Step-by-step: install ha-ios-ui in Claude Code

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

About

This skill sets out UI conventions for the Home Assistant iOS app. It explains when to choose SwiftUI over UIKit, how to bridge the two with embeddedInHostingController(), and how to structure view files. It covers the one-struct-per-file rule, keeping view content inline in body, and always adding a #Preview.

It also covers the HADesignSystem Swift package, where reusable, app-agnostic components belong. The source explains keeping package code free of app models and localized copy, guarding iOS-only code for watchOS builds, and registering new components in DesignSystemComponent. Widget drawing also lives in the package, while timeline providers and intents stay in the extension. It is aimed at developers working on the Home Assistant iOS codebase.

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

What it can do

  • SwiftUI vs UIKit choiceExplains that SwiftUI is preferred for new UI and UIKit remains in older code and platform APIs.
  • View bridgingDescribes using View.embeddedInHostingController() for SwiftUI-to-UIKit bridging.
  • One struct per fileRequires each new View struct to live in its own file.
  • Inline body ruleKeeps view content inside body instead of splitting it into helper subviews without reuse.
  • Preview requirementRequires every SwiftUI view to ship with a #Preview.
  • Navigation title ruleSkips .navigationTitle on screens that open with AppleLikeListTopRowHeader.
  • Reusable components in HADesignSystemPlaces app-agnostic buttons, cards, inputs and styles in the HADesignSystem package.
  • watchOS guardsWraps iOS-only components in #if !os(watchOS) because the package also builds for watchOS.
  • Component registrationRequires new components to be registered in DesignSystemComponent for the components library.
  • Widget drawing rulesKeeps widget drawing in the package and actions such as intents and deep links in the extension.

What you need

  • Home Assistant iOS codebase
  • Xcode

Try asking

  • Build a SwiftUI settings view following the Home Assistant iOS one-struct-per-file rule.
  • Add a reusable button component to HADesignSystem without app-specific dependencies.
  • Bridge this SwiftUI view into a UIKit screen using embeddedInHostingController().

Good to know

  • Package code must stay app-agnostic, so some components remain in Shared for now.
  • Screens with AppleLikeListTopRowHeader should not also set a navigation title.

Security check

A

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

Checked automatically: .agents/skills/ha-ios-ui/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md5 KB

Alternatives to ha-ios-ui

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

ha-ios-ui: common questions

When should I use SwiftUI instead of UIKit in Home Assistant iOS?

The source says SwiftUI is preferred for new UI such as settings and widgets. UIKit is used in older code and where needed for platform APIs.

Where should new reusable UI components go?

Reusable, app-agnostic components belong in the HADesignSystem Swift package, not in Sources/App. Only genuinely one-off, app-specific views stay in the app.

Do new features need tests?

Yes. The source says any new feature that adds UI must include snapshot tests, referring to the ha-ios-testing skill.

How do I install ha-ios-ui?

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

Is ha-ios-ui free?

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

Is ha-ios-ui safe to use?

It scores 83 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 ha-ios-ui?

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

ha-ios-ui Install

Add to stack

Loading.