swiftui-view-refactor 是做什么的?
重构和审查 SwiftUI 视图文件,强制使用小型专用子视图、MV-优先-MVVM 数据流、稳定的视图树、显式依赖注入以及正确的 Observation 用法。适用于清理 SwiftUI 视图、拆分过长的 body、移除内联操作或副作用、减少计算的 some View 辅助方法,或者标准化 @Observable 和视图模型初始化模式。
重构和审查 SwiftUI 视图文件,强制使用小型专用子视图、MV-优先-MVVM 数据流、稳定的视图树、显式依赖注入以及正确的 Observation 用法。适用于清理 SwiftUI 视图、拆分过长的 body、移除内联操作或副作用、减少计算的 `some View` 辅助方法,或者标准化 `@Observable` 和视图模型初始化模式。
这个 AI 技能专门用于重构和审查 SwiftUI 视图文件。它强制采用一系列强默认模式,包括将视图拆分为小型专用子视图、遵循 MV-优先-MVVM 数据流(即优先使用 Model-View 模式而非 Model-View-ViewModel)、构建稳定的视图树、实施显式依赖注入,以及正确使用 Apple 的 Observation 框架。该技能适用于:清理杂乱或过长的视图代码、将一个庞大的 `body` 属性拆分为多个独立子视图、移除视图中的内联操作和副作用(例如网络请求或直接数据更新)、将计算的 `some View` 辅助方法替换为正式的专用视图结构,以及标准化 `@Observable` 宏的使用和视图模型的初始化方式。适用于所有支持 SwiftUI 开发的 AI 代理平台(如 Claude Code、Cursor、Codex 等),帮助开发者遵循现代 SwiftUI 最佳实践,提高代码可维护性、可测试性和可读性。
npx skills add https://github.com/dimillian/skills/tree/main/skills/swiftui-view-refactorInstalled? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →
重构和审查 SwiftUI 视图文件,强制使用小型专用子视图、MV-优先-MVVM 数据流、稳定的视图树、显式依赖注入以及正确的 Observation 用法。适用于清理 SwiftUI 视图、拆分过长的 body、移除内联操作或副作用、减少计算的 some View 辅助方法,或者标准化 @Observable 和视图模型初始化模式。
This repo contains 7 individual skills — each has its own dedicated page.
Create user-facing App Store release notes by collecting and summarizing all user-impacting changes since the last git tag (or a specified ref). Use when asked to generate a comprehensive release changelog, App Store "What's New" text, or release notes based on git history or tags.
Use XcodeBuildMCP to build, run, launch, and debug the current iOS project on a booted simulator. Trigger when asked to run an iOS app, interact with the simulator UI, inspect on-screen state, capture logs/console output, or diagnose runtime behavior using XcodeBuildMCP tools.
Scaffold, build, and package SwiftPM-based macOS apps without an Xcode project. Use when you need a from-scratch macOS app layout, SwiftPM targets/resources, a custom .app bundle assembly script, or signing/notarization/appcast steps outside Xcode.
Swift Concurrency review and remediation for Swift 6.2+. Use when asked to review Swift Concurrency usage, improve concurrency compliance, or fix Swift concurrency compiler errors in a feature or file. Concrete actions include adding Sendable conformance, applying @MainActor annotations, resolving actor isolation warnings, fixing data race diagnostics, and migrating completion handlers to async/await.
Implement, review, or improve SwiftUI features using the iOS 26+ Liquid Glass API. Use when asked to adopt Liquid Glass in new SwiftUI UI, refactor an existing feature to Liquid Glass, or review Liquid Glass usage for correctness, performance, and design alignment.
Audit and improve SwiftUI runtime performance from code review and architecture. Use for requests to diagnose slow rendering, janky scrolling, high CPU/memory usage, excessive view updates, or layout thrash in SwiftUI apps, and to provide guidance for user-run Instruments profiling when code review alone is insufficient.
Best practices and example-driven guidance for building SwiftUI views and components, including navigation hierarchies, custom view modifiers, and responsive layouts with stacks and grids. Use when creating or refactoring SwiftUI UI, designing tab architecture with TabView, composing screens with VStack/HStack, managing @State or @Binding, building declarative iOS interfaces, or needing component-specific patterns and examples.
Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.
Control Eight Sleep pods (status, temperature, alarms, schedules).
BluOS CLI (blu) for discovery, playback, grouping, and volume.
Create, search, and manage Bear notes via grizzly CLI.
Capture frames or clips from RTSP/ONVIF cameras.
Search GIF providers with CLI/TUI, download results, and extract stills/sheets.