Swiftui Expert Skill

用于 SwiftUI 实现:当用户要写、评审或重构 SwiftUI 代码,涉及现代 API、状态管理、view composition、性能、charts、无障碍或 macOS scene/window patterns 时使用。Prefer `ios` or `macos` when the core question is 平台 UX/HIG 规则而不是 SwiftUI 实现;Combine with them when 代码决策依赖平台规范。

hebertzhu 25a55ad 1.4 KB Updated

File contents

swiftui-expert-skill

Intent

  • 用于 SwiftUI 实现:当用户要写、评审或重构 SwiftUI 代码,涉及现代 API、状态管理、view composition、性能、charts、无障碍或 macOS scene/window patterns 时使用。Prefer ios or macos when the core question is 平台 UX/HIG 规则而不是 SwiftUI 实现;Combine with them when 代码决策依赖平台规范。

Default operating pattern

  1. Identify the target platform, form factor, and native system constraints.
  2. Choose native patterns before inventing custom behavior.
  3. Translate platform rules into implementable UI, architecture, or code guidance.
  4. Check accessibility, ergonomics, lifecycle, and integration edges.
  5. Return a concrete implementation path instead of vague platform advice.

Pack fit

  • Included in: platform-apps
  • Keep examples generic, privacy-safe, and portable across hosts.

Boundary

  • Do not use it to answer high-level product strategy without actual SwiftUI implications.

hebertzhu/agent-foundry/tree/main/skills/swiftui-expert-skill commit 25a55ad657

Frequently asked questions

npx skillmds@latest add hebertzhu/swiftui-expert-skill