원클릭으로
codex-mobile
Codex 行動端 Use Case 技能。涵蓋 iOS/macOS 原生應用開發、 SwiftUI 架構、CLI 優先工作流。觸發條件:當需要使用 Codex 建構 iOS 或 macOS 原生應用、設定 Swift 專案時啟用。
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Codex 行動端 Use Case 技能。涵蓋 iOS/macOS 原生應用開發、 SwiftUI 架構、CLI 優先工作流。觸發條件:當需要使用 Codex 建構 iOS 或 macOS 原生應用、設定 Swift 專案時啟用。
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Codex 數據分析類 Use Case 技能。涵蓋數據集分析、報告生成、 評分迴圈等工作流。觸發條件:當需要使用 Codex 進行數據分析、 探索性分析、模型建構、報告輸出時啟用。
Codex 工程類 Use Case 技能。涵蓋投影片生成、PR 審查、 程式碼庫上手、API 遷移等工作流。觸發條件:當需要使用 Codex 進行程式碼審查、文件生成、程式碼庫導覽、API 升級時啟用。
Codex 評估類 Use Case 技能。涵蓋 eval-driven improvement loop 工作流。觸發條件:當需要使用 Codex 進行持續品質改進、 評分迴圈、LLM-as-judge 評估時啟用。
Codex 前端類 Use Case 技能。涵蓋響應式 UI 實作、瀏覽器遊戲開發、 Figma 設計轉碼等工作流。觸發條件:當需要使用 Codex 進行前端 UI 開發、視覺驗證、遊戲建構、設計稿轉碼時啟用。
Codex 整合類 Use Case 技能。涵蓋 ChatGPT 應用開發、Slack 整合 等工作流。觸發條件:當需要使用 Codex 與第三方平台整合、 建構 ChatGPT 應用、從 Slack 觸發任務時啟用。
OpenAI Codex Use Cases 完整知識庫。涵蓋 12 個官方 use case, 包含原始與優化 prompt、工作流程、AGENTS.md 配置範例、 技術棧建議。適用於需要參考 Codex 最佳實踐、撰寫 AGENTS.md、 或設計 Codex 自動化工作流的場景。
| name | codex-mobile |
| description | Codex 行動端 Use Case 技能。涵蓋 iOS/macOS 原生應用開發、 SwiftUI 架構、CLI 優先工作流。觸發條件:當需要使用 Codex 建構 iOS 或 macOS 原生應用、設定 Swift 專案時啟用。 |
Mobile 分類專注於使用 Codex 建構原生 iOS 和 macOS 應用。 核心特色是 CLI-first approach — 不依賴 Xcode GUI, 透過命令列工具完成專案建構與驗證。
本分類包含 1 個 use case:
| 步驟 | 動作 | 說明 |
|---|---|---|
| 1 | 選擇專案工具 | Tuist(推薦)或 xcodebuild |
| 2 | 搭建專案結構 | App entry point + targets |
| 3 | 設定 SwiftUI | @main App + WindowGroup |
| 4 | 建立 Navigation | NavigationStack / SplitView |
| 5 | 實作核心 Views | 主頁 + 詳情 + 設定 |
| 6 | 配置 Build Settings | 簽名、target platform |
| 7 | XcodeBuildMCP 驗證 | 建構零錯誤零警告 |
Role: You are a senior iOS/macOS developer specializing in SwiftUI.
Context: Building a {{app_type}} app for {{target_platforms}}.
Task:
1. Scaffold the project:
- Use Tuist (preferred) or xcodebuild for project generation.
- Target: {{target_platforms}} with SwiftUI App protocol.
- Minimum deployment target: iOS 17 / macOS 14.
2. Set up architecture:
- Entry point: @main App struct with WindowGroup.
- Navigation: NavigationStack (iOS) / NavigationSplitView (macOS).
- State management: @Observable pattern (not @ObservedObject).
3. Create core views:
- Main content view with navigation.
- At least one detail view with data binding.
- Settings/Preferences view.
4. Configure build settings:
- Enable strict concurrency checking.
- Set up code signing for development.
5. Validate with XcodeBuildMCP — build must succeed with zero warnings.
Constraints:
- Use Swift 5.9+ features (macros, parameter packs where appropriate).
- Follow Apple HIG for platform-specific patterns.
- No UIKit/AppKit unless SwiftUI lacks the capability.
- Use async/await for all asynchronous operations.
Output Format:
- Complete Xcode project buildable from CLI.
- `README.md` with build instructions and architecture overview.
- Zero warnings on `xcodebuild build`.
Self-Verification:
Run xcodebuild for both iOS simulator and macOS targets.
Confirm zero build errors and zero warnings.
Codex 針對 iOS/macOS 開發提供 9 種專用技能:
# iOS/macOS Development Conventions
## Build
- `tuist generate` then `xcodebuild build`
- Or: `swift build` for SPM-only projects
## Architecture
- SwiftUI-first, UIKit/AppKit only when necessary
- @Observable for state management (not @ObservedObject)
- NavigationStack (iOS) / NavigationSplitView (macOS)
- MVVM or MV pattern
## Conventions
- Minimum: iOS 17, macOS 14, Swift 5.9
- Enable strict concurrency checking
- Async/await for all async operations
- Follow Apple Human Interface Guidelines
| 功能 | iOS | macOS |
|---|---|---|
| Navigation | NavigationStack | NavigationSplitView |
| Window | 單 window | 多 window 支持 |
| Input | Touch | Mouse + Keyboard |
| 快捷鍵 | 無 | Cmd+key |
| Menu Bar | 無 | 需自訂 |
官方 use case 主要覆蓋 iOS 和 macOS,但 SwiftUI 本身支持 visionOS。 可以在 deployment target 中加入。
可以,但僅在 SwiftUI 缺少該功能時使用。需在程式碼中標注原因。
開發階段使用 automatic signing。 Codex 環境可能需要設定 provisioning profile。
| 技術 | 版本 | 用途 |
|---|---|---|
| Swift | 5.9+ | 程式語言 |
| SwiftUI | iOS 17+ | UI 框架 |
| Tuist | Latest | 專案管理 |
| XcodeBuildMCP | Latest | 建構驗證 |
| SPM | Built-in | 依賴管理 |