Communitygithub.com

JoshFinlayAU/rMDP

全面的 macOS 開發指引,涵蓋 Swift 6+、SwiftUI、SwiftData、架構模式、AppKit 橋接以及 macOS 26 Tahoe API。適用於 macOS 程式碼審查、最佳實踐、UI 審查或平台特定功能。

rMDP 是什麼?

這是一個專為 macOS 應用程式開發設計的 AI 專家技能。它彙整了多個專門模組,涵蓋 Swift 6+ 程式碼品質、現代並發編程、SwiftData 資料持久化、SOLID 架構原則、以及 macOS 26 (Tahoe) 的新功能,如 Liquid Glass 設計系統與 Apple Intelligence 整合。用戶可用於程式碼審查、效能最佳化、UI/UX 合規性檢查,或進行新專案的架構規劃。支援平台包括 Claude Code、Cursorm 等基於 SKILL.md 的 AI 代理工具。該技能的核心運作方式是根據用戶問題自動讀取對應的檔案模組,然後結合 Apple 官方文件與最新 API,提供具體且可實踐的建議。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/JoshFinlayAU/rMDP/tree/HEAD/.agents/skills/macos-development

在你喜歡的 AI 中提問

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

說明文件

macOS 開發專家

macOS 應用程式開發的全面指引。此技能彙整了專為 macOS 開發各面向設計的專門模組。

啟動時機

當使用者符合以下情況時,請啟用此技能:

  • 詢問 macOS 開發最佳實踐
  • 需要對 macOS/Swift 專案進行程式碼審查
  • 需要 SwiftUI、SwiftData 或 AppKit 的協助
  • 正在實作 macOS 26 (Tahoe) 功能
  • 需要根據 HIG 進行 UI/UX 審查
  • 需要 macOS 應用程式的架構指引

可用模組

根據使用者需求,讀取相關的模組檔案:

coding-best-practices/

Swift 6+ 程式碼品質與現代慣用寫法。

  • swift-language.md - 現代 Swift 模式
  • modern-concurrency.md - async/await、actors、Sendable
  • data-persistence.md - SwiftData、UserDefaults、Keychain
  • code-organization.md - 專案結構與模組化
  • architecture-principles.md - 簡潔架構模式

architecture-patterns/

軟體設計與架構。

  • solid-detailed.md - 以 Swift 範例說明的 SOLID 原則
  • design-patterns.md - 常見設計模式
  • modular-design.md - 模組化架構方法

swiftdata-architecture/

SwiftData 深入探討。

  • schema-design.md - 模型設計與關係
  • query-patterns.md - 高效查詢與謂詞
  • performance.md - 最佳化技術

macos-tahoe-apis/

macOS 26 特定功能。

  • tahoe-features.md - 新的 macOS 26 功能
  • apple-intelligence.md - AI/ML 整合
  • mlx-framework.md - 使用 MLX 進行裝置端機器學習
  • continuity.md - 跨裝置功能
  • xcode16.md - Xcode 16 工具與功能

macos-capabilities/

平台整合。

  • sandboxing.md - 應用程式沙箱與權利
  • 系統整合功能

appkit-swiftui-bridge/

混合開發。

  • nsviewrepresentable.md - 包裝 AppKit 檢視
  • 框架間的狀態管理

ui-review-tahoe/

macOS 26 UI/UX 審查。

  • Liquid Glass 設計系統
  • HIG 合規性檢查
  • 無障礙審查

app-planner/

專案規劃與分析。

  • 新應用程式架構規劃
  • 現有應用程式稽核

使用方式

  1. 根據使用者問題識別其需求
  2. 從子目錄中讀取相關模組檔案
  3. 將指引套用至其特定情境
  4. 必要時參考 Apple 文件

範例工作流程

使用者詢問 SwiftData 效能:

  1. 讀取 swiftdata-architecture/performance.md
  2. 若相關,讀取 swiftdata-architecture/query-patterns.md
  3. 將建議套用至他們的程式碼

Individual skills in this repo

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

相關技能