Communitygithub.com

chonamdoo/ios-clean-presentation-architecture

用於建立、修改或審查 iOS Clean Architecture 的表現層,包含 SwiftUI/UIKit 狀態持有者、明確的 UiState、UiModel 映射、依賴注入以及基於狀態的表現層程式碼審查。

ios-clean-presentation-architecture 是什麼?

此技能旨在協助開發者在 iOS 專案中應用 Clean Architecture 的表現層模式。它專注於管理 SwiftUI 和 UIKit 的狀態持有者(state holders),並要求使用明確的 UiState 列舉或結構來定義畫面狀態,而非隱含或可變的狀態。同時,它強制使用 UiModel 進行資料映射,將領域實體(domain entities)轉換為表現層專用的模型,並透過依賴注入(dependency injection)來解耦元件。該技能支援對現有程式碼進行審查,確保其遵循基於狀態的呈現原則(state-based presentation),並能自動生成符合這些模式的程式碼片段。它主要用於 iOS 專案中,開發者可以透過此技能提升程式碼的可維護性與測試性。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/chonamdoo/agent-flow/tree/main/skills/ios-clean-presentation-architecture

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

ios-clean-presentation-architecture 是做什麼的?

用於建立、修改或審查 iOS Clean Architecture 的表現層,包含 SwiftUI/UIKit 狀態持有者、明確的 UiState、UiModel 映射、依賴注入以及基於狀態的表現層程式碼審查。

Individual skills in this repo

This repo contains 5 individual skills — each has its own dedicated page.

chonamdoo/code-generation-discipline

Common code generation and code modification discipline for agent-flow. Use before and during implementation, TDD red/green/refactor, fix-loop, bug fixes, feature work, and any task where Codex, Claude, OMP, or another agent writes or changes code. Enforces start-before, during-implementation, and after-implementation checks without a scoring rubric.

chonamdoo/comment-authoring-discipline

Apply comment-quality criteria during implementation and the final comment-quality pass before final-review, multi-review, or architecture-review after code changes. Applies equally in Codex, Claude, and OMP for Python, Kotlin, React Web, React Native, iOS, Swift, and SwiftUI.

chonamdoo/flutter-development-guide

Flutter implementation and review checklist. Use only when writing, modifying, or reviewing Flutter widget code, layout constraints, adaptive sizing, navigation and routing, platform channels, platform views, background entry points, list and image performance, async gaps across `BuildContext`, disposal, theme and design tokens, accessibility, localization, offline and error states, or Flutter test and golden coverage. Do not use for Dart language generalities, native Android or iOS internals beyond the engine and channel-registration seam a Dart entry point depends on, or broad rewrites.

chonamdoo/ios-app-shell-error-handling

Use when implementing or reviewing iOS app-wide error handling where SwiftUI views/ViewModels notify common errors and an @main App, WindowGroup AppShell, NavigationStack coordinator, or UIKit AppCoordinator owns root navigation, tab/session flow switching, alerts, sheets, toast hosts, SessionExpired handling, Maintenance handling, and root reset behavior.

chonamdoo/to-prd

Synthesizes the current conversation and codebase context into a PRD, then writes or publishes it according to the caller's requested output target. Use when the user asks to turn an already-discussed idea, plan, or conversation into a PRD; use `grilling` first if key decisions are still unresolved.

相關技能