ios-feature-implementation

Implement iOS feature layers with dependency injection and async/await flows.

8|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/ChoshimWy/iOSAgentSkills --skill ios-feature-implementation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ios-feature-implementation
Source: https://github.com/ChoshimWy/iOSAgentSkills/tree/main/skills/ios-feature-implementation
Command: npx skills add https://github.com/ChoshimWy/iOSAgentSkills --skill ios-feature-implementation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

解决与具体 UI 技术栈无关的 iOS 业务实现需求,包括 service、repository、use case、domain model、view model、依赖注入以及导航接线的搭建与落地,帮助团队保持 UI 层与业务逻辑解耦。

Core Features & Use Cases

  • 提供 service、repository、use case、domain model、view model 的结构化实现与测试支撑,确保业务逻辑清晰、易于维护。
  • 负责依赖注入、feature wiring、导航接线和错误流转,统一管理跨模块的调用与数据流。
  • 遵循严格的并发与线程规则,优先使用结构化并发、@MainActor 主线程更新,以及 guard 模式的早期返回,提升稳定性与可维护性。
  • 场景覆盖:在需要实现通用 iOS feature 层的情况下,即使 UI 技术栈不同,也能完成后端逻辑的落地。

Quick Start

Implement a default iOS feature module by wiring service, repository, use case, domain model, and view model, and ensure the changes trigger verify-ios-build validation.

Frequently Asked Questions about ios-feature-implementation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement iOS feature layers with dependency injection and async/await?

Implement iOS feature layers by wiring service, repository, use case, domain model, and view model with dependency injection and structured async/await flows, ensuring UI-agnostic business logic stays decoupled from views.

What is the best way to structure iOS business logic across services, repositories, and use cases?

The best way to structure iOS business logic is using a layered architecture with services, repositories, use cases, domain models, and view models, applying guard patterns for early returns and @MainActor for main-thread updates.

Does this iOS feature implementation approach work without SwiftUI or UIKit views?

Yes, this iOS feature implementation approach works without direct UI code, focusing exclusively on UI-agnostic business logic, cross-module coordination, and robust async/await flows while excluding SwiftUI views or UIKit controllers.

How do I wire navigation and error流转 in an iOS feature module?

Wire navigation and error流转 in an iOS feature module by managing dependency injection, feature wiring, and error flow coordination across modules, ensuring structured concurrency and guarded control flow handle failures cleanly.

When do I need to trigger verify-ios-build validation during iOS feature implementation?

You need to trigger verify-ios-build validation during iOS feature implementation whenever Xcode project changes occur, ensuring that wiring across services, repositories, use cases, and view models compiles and meets thread-safety requirements.

Can I use structured concurrency and @MainActor for iOS view model updates?

Yes, you can use structured concurrency and @MainActor for iOS view model updates, as the implementation enforces strict concurrency rules, prioritizing @MainActor for main-thread updates and guard patterns for early returns to maintain stability.