·macos-permissions
</>

macos-permissions

針對輔助功能 (AXIsProcessTrusted)、螢幕錄製、全磁碟存取、輸入監控、相機、麥克風、位置和聯絡人的 macOS 權限處理。涵蓋 TCC(透明同意和控制)資料庫、權限被拒絕時的優雅降級、權限提示模式、開啟系統設定到正確的窗格、偵測權限變更以及隱私清單 (PrivacyInfo.xcprivacy) 要求。在實作需要係統權限的功能、建置權限加入流程或優雅地處理拒絕的權限時使用。

10安裝·2熱度·@makgunay

安裝

$npx skills add https://github.com/makgunay/claude-swift-skills --skill macos-permissions

如何安裝 macos-permissions

透過命令列快速安裝 macos-permissions AI 技能到你的開發環境

  1. 開啟終端機: 開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 執行安裝指令: 複製並執行以下指令:npx skills add https://github.com/makgunay/claude-swift-skills --skill macos-permissions
  3. 驗證安裝: 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

來源:makgunay/claude-swift-skills。

SKILL.md

查看原文

| Accessibility | AXIsProcessTrusted() | Global hotkeys, text insertion, CGEvent | | Screen Recording | CGPreflightScreenCaptureAccess() | Screen capture, window list | | Full Disk Access | Try access + handle error | Reading other app data | | Camera | AVCaptureDevice.authorizationStatus(for: .video) | Camera access |

| Microphone | AVCaptureDevice.authorizationStatus(for: .audio) | Audio capture | | Location | CLLocationManager().authorizationStatus | Location services | | Contacts | CNContactStore.authorizationStatus(for: .contacts) | Contact access |

| Prompting repeatedly after denial | Check status first, guide to Settings if denied | | App crashes without permission | Always check before calling protected API | | User can't find permission setting | Open specific System Settings pane via URL | | Missing privacy manifest | Add PrivacyInfo.xcprivacy to app bundle |

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/makgunay/claude-swift-skills --skill macos-permissions
分類
</>開發工具
認證
收錄時間
2026-02-25
更新時間
2026-03-10

Browse more skills from makgunay/claude-swift-skills

快速解答

什麼是 macos-permissions?

針對輔助功能 (AXIsProcessTrusted)、螢幕錄製、全磁碟存取、輸入監控、相機、麥克風、位置和聯絡人的 macOS 權限處理。涵蓋 TCC(透明同意和控制)資料庫、權限被拒絕時的優雅降級、權限提示模式、開啟系統設定到正確的窗格、偵測權限變更以及隱私清單 (PrivacyInfo.xcprivacy) 要求。在實作需要係統權限的功能、建置權限加入流程或優雅地處理拒絕的權限時使用。 來源:makgunay/claude-swift-skills。

如何安裝 macos-permissions?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/makgunay/claude-swift-skills --skill macos-permissions 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

這個 Skill 的原始碼在哪?

https://github.com/makgunay/claude-swift-skills

詳情

分類
</>開發工具
來源
skills.sh
收錄時間
2026-02-25