本文へ移動
cccskills
無料GitHub で公開

macos-permissions

Diagnoses and repairs macOS TCC dialogs and silent denials: Full Disk Access, Screen Recording, Microphone, Camera, Accessibility, Automation. Use for recurring prompts, LaunchAgent/uv jobs that fail only in background, broken grants, or automating Full Disk Access (权限弹窗 / 授权了没用 / 完全磁盘访问). Checks requester and grants first. Not for launchd design (macos-watchdog) or app permission UX (developing-ios-apps).

インストール方法を見る

含まれるファイル(4)

  • SKILL.md6.2 KB
  • references/automated-full-disk-access.md4.6 KB
  • references/tcc-mechanics.md9.2 KB
  • references/uv-fda-trap.md3.5 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

macOS Permissions (TCC)

macOS gates per-app, per-resource access through TCC (Transparency, Consent, Control). TCC records permission decisions in its databases and controls what a process can do. Several common traps need different fixes:

TrapSymptomFix lives in
Wrong subject grantedDialog names python3.11/2.1.232/node; you granted that but it still promptsThe attribution trap below
Grant doesn't surviveWorked, then a binary/uv/CLI update → prompt returnsreferences/uv-fda-trap.md
Silent denialFeature "unavailable", no dialog, grant looks ONreferences/tcc-mechanics.md § auth_value
Can't read TCC.dbPermission denied reading the DB; need FDA to diagnose FDAreferences/tcc-mechanics.md § SIP

The attribution trap

Reproduce the reported denial first

The executing agent repeats the named protected read through the actual failing requester and execution context before changing permissions. A file listing, another terminal, SSH access or a foreground run cannot substitute for the denied file read or background job. Record the path/resource, requester, context and result; this is a diagnostic step, not a mechanical permission classifier.

If that read now succeeds, report currently accessible; earlier cause unknown and stop permission changes unless a specific required read still fails. Do not call the cause repaired without evidence of the cause and its correction, or add Full Disk Access, change ACLs, reconnect shared mounts or restart a shared host merely to clear a historical error. If it still fails, follow the attribution checks below; Operation not permitted alone does not establish TCC as the cause.

The name in the dialog does not prove who to grant. macOS attributes a request to the responsible process in the process tree, but displays the name of the accessing executable — and for an unsigned binary with no bundle (uv-managed python, per-version CLI, node helpers) that display name is just the last path component, which changes with every version. Granting the displayed name is the mistake that costs the most rounds.

Before touching System Settings, inspect the request and any readable grant state:

# 1. Who is actually requesting — the responsible process in the attribution chain
/usr/bin/log show --last 30m --predicate 'subsystem == "com.apple.TCC"' --info --debug \
  | grep -E 'from Sub:|responsible=|accessing=' | tail -20

# 2. Grant candidates, if this terminal can read the system database
sudo -n sqlite3 '/Library/Application Support/com.apple.TCC/TCC.db' \
  "select service, client, auth_value from access where service='kTCCServiceSystemPolicyAllFiles' and client like '%<name>%';"

Use from Sub: to identify a candidate requester, then verify its exact path and a real protected read before choosing what to authorize. An unreadable TCC.db leaves grant state unknown; its FDA bootstrap is in references/tcc-mechanics.md.

Decision tree

The situation is…Go to
User asks to complete Full Disk Access repair automatically, or a background job needs protected filesreferences/automated-full-disk-access.md (reuse a verified existing grant first; otherwise drive System Settings and read back)
Dialog reappears after clicking Allow; or a LaunchAgent / uv run job prompts every few minutesreferences/uv-fda-trap.md (identify the requester; follow the automated repair route before adding a grant)
Need the full kTCCService catalog, schema, auth_value/auth_reason semantics, tccutilreferences/tcc-mechanics.md
Reading TCC.db gives "Permission denied"references/tcc-mechanics.md § SIP and the FDA bootstrap
A granted permission silently stopped working after an updatereferences/tcc-mechanics.md § common failure modes (toggle off/on, or tccutil reset <Service> <bundle-id>)
Grant won't stick for Automation / Apple Eventsreferences/tcc-mechanics.md — BOTH controller AND target need the grant

Core rules (each from a real incident)

  • Dialog name ≠ responsible process. from Sub: in the TCC log is the requester; the title is the accessing binary's basename and it drifts with versions. Grant by the real path. (2026-09-19: a uv FDA dialog showed python3.11; authorizing python, changing session type, and pinning the version all failed because the requester was ~/.local/bin/uv.)
  • Grants are keyed to the exact binary path, not identity. An unsigned executable (uv-managed python, per-version CLI, node helper) is a new app to TCC every time its path changes. This is why "worked yesterday, prompts today" after any update. Same root cause as Claude Code issues #74234 / #84948 / #86706.
  • "0 hits / can't catch it" is an instrument problem, not a conclusion. fs_usage can emit 0 bytes on some machines; short-lived processes fall between log time windows; an empty grep file looks identical to a real zero. To pin which operation triggers a prompt, use in-process sys.addaudithook to log open events aligned to the tccd timestamp — not fs_usage.
  • SIP protects the system TCC.db read-only. You cannot INSERT/UPDATE a grant from the command line — authorization must go through the GUI. auth_value is readable, writable is not.
  • After granting, restart the requesting process. Grants are read at launch; a running process keeps its old (denied) state until relaunched.

Scope

This skill owns permission diagnosis and repair. It does not own: building an app's permission-onboarding UX (app-development work, out of scope here), launchd job design (macos-watchdog), or disk cleanup (macos-cleaner) — those link here when they hit a TCC wall.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Fixes web search on an agent whose model backend can't run it: a relay/reseller proxying Claude or Codex returns empty instead of failing. Use when web search returns nothing, a model insists a shipped product doesn't exist, someone wants to give an agent internet access, or the user is on a third-party base URL, relay, or 中转站. Diagnoses which built-in tools are dead, removes them, and installs a working replacement.

日本語の概要は準備中です。原文の説明を表示しています。

daymade/claude-code-skills1,4532026年10月12日 更新

Improves an existing application using its code, product contract, authorized work history and competitor evidence. Use for 取长补短、取其精华去其糟粕、参考竞品优化应用 or evolving an app from successful and failed work. Carries authorized changes through implementation and user-result verification, including REA and reverse Skill composition; use skill-evolver for Skills.

日本語の概要は準備中です。原文の説明を表示しています。

daymade/claude-code-skills1,4532026年10月12日 更新

抓取 A 股消息面情报:从财联社、华尔街见闻、金十、新浪 7x24、东财快讯、 证监会/央行/上交所/财政部政策公告、东方财富股吧等公开来源抓取与股票相关的 新闻、政策、情绪,输出结构化 JSON 或 Markdown。 当用户提到“A 股消息面”、“抓新闻”、“个股消息”、“政策监管”、“股吧情绪”、 “财联社”、“东财快讯”、“市场情绪”或需要把某只股票相关的公开情报聚合出来时 触发。也适用于“帮我看看 000001 最近有什么消息”这类口语化请求。

日本語の概要は準備中です。原文の説明を表示しています。

daymade/claude-code-skills1,4532026年10月12日 更新

Transcribes audio or video to speaker-labeled, timestamped text, locally with MLX on Apple Silicon or remotely. Use for 转录 / 录音转文字 / 说话人分离 / 字幕, and also for preparing audio for ASR without transcribing: 转格式, 降采样到 16kHz, merging recorder segments, or compressing and speeding up audio before 飞书妙记 — even when it looks like a one-line ffmpeg job.

日本語の概要は準備中です。原文の説明を表示しています。

daymade/claude-code-skills1,4532026年10月12日 更新

Routes audio: StepFun ASR/语音识别, StepFun TTS/配音, transcript/妙记→会议纪要, merge/review minutes. Reads one bundled specialist; generic ASR and correction stay direct.

日本語の概要は準備中です。原文の説明を表示しています。

daymade/claude-code-skills1,4532026年10月12日 更新

Diagnoses and repairs repository setup and guarded Git workflows for Claude Code or Codex — environment repair, startup sync, hook auditing, collaborator handoff. Use when a repo won't run, a teammate onboards, hook output duplicates, or commit/push/conflict needs guarding. Not for lost-commit recovery (use git-safety-net), GitHub ops (use github-ops), or history scrubbing (use github-sensitive-data-cleanup).

日本語の概要は準備中です。原文の説明を表示しています。

daymade/claude-code-skills1,4532026年10月12日 更新

daymade のスキルをすべて見る

このスキルの問題を報告する