Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计通过

swiftui-engineerSwiftUI 工程师

Agent Skill

swiftui-engineer 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,517

周安装

81

GitHub Stars

7

下载量

1,129
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:swiftui-engineer(SwiftUI 工程师)
来源仓库:https://github.com/trevors/dot-claude
仓库路径:skills/swiftui-engineer
安装命令:
npx skills add https://github.com/trevors/dot-claude --skill 'SwiftUI Engineer'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/trevors/dot-claude --skill 'SwiftUI Engineer'

简介

SwiftUI 工程师技能用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 它支持根据关键词、任务场景或来源线索进行信息整理,适用于开发过程中的资料搜集阶段。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 了解具体用法。
  • 安装前建议确认权限范围和维护状态,注意是否会触发联网或文件读写操作。
  • swiftui-engineer 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

SwiftUI Engineer

Comprehensive support for SwiftUI and macOS development across the full development lifecycle: architecture, code review, debugging, and modernization. Focused on macOS 26 Tahoe patterns and best practices.

Modes of Operation

Choose the mode that matches your task:

1. Architecture Mode

Use when: Building SwiftUI views, designing components, planning app structure

  • Generate production-ready SwiftUI code
  • Apply macOS-appropriate patterns
  • Create reusable components
  • Structure for testability
  • Use modern property wrappers correctly

Ask: What are you building? What data does it work with? Does it need to be responsive?

2. Review Mode

Use when: Checking code quality, looking for anti-patterns, validating patterns

  • Scan for SwiftUI anti-patterns
  • Verify state management correctness
  • Check async/await patterns
  • Validate thread safety (@MainActor)
  • Assess architecture and separation of concerns

Ask: Show me the code. What specific concern do you have?

3. Debug Mode

Use when: Debugging crashes, performance issues, rendering problems, mysterious behavior

  • Diagnose view update issues
  • Identify state management problems
  • Solve reference cycles and memory leaks
  • Find performance bottlenecks
  • Debug threading and async issues

Ask: What exactly is happening? When does it occur? What have you tried?

4. Modernize Mode

Use when: Migrating from AppKit, updating deprecated APIs, planning upgrades

  • Map AppKit patterns to SwiftUI
  • Handle API deprecations
  • Explain breaking changes
  • Provide migration strategies
  • Preserve functionality during transitions

Ask: What's the scope? What's your timeline? Do you have test coverage?

Quick Reference: Common Patterns

State Management

Correct pattern:

  • Owner: @StateObject private var viewModel = ViewModel()
  • Child: @ObservedObject var viewModel: ViewModel
  • ViewModel: @MainActor class ViewModel: ObservableObject

Why: Only owner creates instance. Children observe shared instance. @MainActor ensures thread-safe UI updates.

Navigation (macOS)

Use NavigationSplitView (not deprecated NavigationView). See REFERENCE.md for detailed example.

Async/Await

Use .task() in views, not Task {} in .onAppear:

.task {
    await loadData()  // Auto-cancels on disappear
}

macOS 26 Tahoe: Liquid Glass

Use .background(.ultraThinMaterial) for adaptive backgrounds. See REFERENCE.md for examples.

Workflow for Each Mode

Architecture: Generate SwiftUI Code

  1. Understand the requirement
  2. Choose appropriate pattern (MVVM, component hierarchy)
  3. Apply macOS standards (8pt grid spacing, NavigationSplitView)
  4. Include accessibility labels
  5. Explain design decisions

Review: Assess Code Quality

  1. Check property wrappers for correctness
  2. Verify @StateObject ownership pattern
  3. Validate thread safety (@MainActor usage)
  4. Check async/await patterns
  5. Identify anti-patterns and improvements
  6. Explain why each issue matters

Debug: Root Cause Analysis

  1. Gather information (symptoms, steps to reproduce, error messages)
  2. Form hypothesis based on symptoms
  3. Guide systematic debugging
  4. Identify root cause
  5. Provide targeted fix
  6. Explain prevention for future

Modernize: Migration Planning

  1. Assess current architecture
  2. Plan incremental migration (don't rewrite everything at once)
  3. Map AppKit to SwiftUI equivalents
  4. Handle API deprecations
  5. Preserve functionality
  6. Provide migration checklist

Key Principles

  • Thread Safety: Use @MainActor on ViewModels with @Published properties
  • Ownership: One @StateObject per data source, pass via @ObservedObject
  • Async: Use .task() for view lifecycle (not Task {} in .onAppear)
  • macOS: Use NavigationSplitView, proper menus, keyboard management
  • State: Keep close to where it's used, lift only when shared

Common Anti-Patterns to Avoid

State in wrong place: @State in non-view classes ❌ Multiple @StateObject instances: Each child has its own instead of sharing ❌ Missing @MainActor: Publishing from background thread ❌ Task in.onAppear: Should use .task() for lifecycle management ❌ Business logic in views: Network calls, complex data processing in body ❌ LazyVStack for large lists: Doesn't recycle. Use List instead.

When to Use Each Mode

NeedMode
Build a new viewArchitecture
Check if code is goodReview
App is crashingDebug
Fix rendering issueDebug
Find performance problemDebug
Update to new Swift versionReview
Migrate from AppKitModernize
Fix anti-patternReview
Design new componentArchitecture

Resources

For detailed examples, anti-patterns, debuggging techniques, and migration strategies, see REFERENCE.md.

Questions Before Starting

Architecture:

  • What is the primary purpose?
  • What data does it manage?
  • Does it need responsive/adaptive layout?

Review:

  • What specific concern?
  • Performance, correctness, or style?

Debug:

  • What exactly is happening?
  • When does it occur?
  • What have you already tried?

Modernize:

  • What's the scope (single view or whole app)?
  • Timeline and priority?
  • Do you have test coverage?

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

30.24%
按下载量换算341

Codex

21.2%
按下载量换算239

windsurf

17.54%
按下载量换算198

trae

12.23%
按下载量换算138

OpenCode

6.8%
按下载量换算77

Cursor

3.09%
按下载量换算35

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源字段存在多来源差异,先按来源优先级自动处理,无法消解时进入异常复核队列。

来源信息

继续浏览同类 Skills