Diagnoses macOS TCC permission denials including Full Disk Access, Screen Recording, Microphone, Camera, Accessibility, and Local Network. Helps resolve repeated prompts, broken grants, and background agent failures.
Ships in daymade-macos. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The executing agent preserves the user's symptom: a dialog that cannot be clicked, typed into or dismissed needs an interaction diagnosis even when it contains a password field. Do not replace that report with instructions to enter a password.
Read the actual dialog before choosing a subsystem or naming its owner. Use the
host's permitted observation tools; when whole-screen observation is authorized
and permitted, use capture-screen's full-screen route without raising windows.
A refusal to control one protected app neither identifies the unseen dialog nor
proves every observation method is unavailable. Respect the refusal's scope;
never switch tools to bypass a host restriction or GUI lock.
| Observed dialog or failure | Route |
|---|---|
Confirmed Keychain item access failure, a login keychain password, or a blocked Keychain window | Read Keychain recovery |
| Local Network alert, or a local connection/discovery failure specific to one app or background agent | Read Local Network diagnosis; an error string or another process's success does not establish the cause |
| Privacy resource request or a protected operation failing without a visible dialog | Continue with the TCC procedure below |
| Script, Git hook, or application-specific confirmation | Inspect that request through its owning task/tool; do not change TCC or Keychain settings |
| Content or owner still unknown | Keep it unknown; obtain only the missing permitted observation or ask the user for the visible text |
These are operator decisions, not an automatic dialog classifier.
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:
| Trap | Symptom | Fix lives in |
|---|---|---|
| Wrong subject granted | Dialog names python3.11/2.1.232/node; you granted that but it still prompts | The attribution trap below |
| Grant doesn't survive | Worked, then a binary/uv/CLI update → prompt returns | references/uv-fda-trap.md |
| Silent denial | Feature "unavailable", no dialog, grant looks ON | references/tcc-mechanics.md § auth_value |
| Can't read TCC.db | Permission denied reading the DB; need FDA to diagnose FDA | references/tcc-mechanics.md § SIP |
The executing agent first inspects the original protected operation through its task-owned handle and any retained result. Reuse current evidence for the same resource, requester and execution context. Keep a still-running request within its existing deadline; do not launch a replacement while its terminal state is unknown. When current evidence is missing or stale, issue one bounded read through the actual failing requester and context before choosing a permission repair. A file listing, another terminal, SSH access or a foreground run cannot substitute for that operation. 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.
When interpreting preflight logs or an allowed grant row, first load
Correlate preflight and grant evidence
before choosing a permission repair.
| The situation is… | Go to |
|---|---|
| User asks to complete Full Disk Access repair automatically, or a background job needs protected files | references/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 minutes | references/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, tccutil | references/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 update, rebuild or signer change | Signed-app replacement; distinguish a stale code requirement from a changed requester before repairing |
| Grant won't stick for Automation / Apple Events | references/tcc-mechanics.md — BOTH controller AND target need the grant |
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.)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.INSERT/UPDATE a grant from the
command line — authorization must go through the GUI. auth_value is readable, writable is not.The executing agent checks the original request through its task-owned process/tool handle and repeats the named protected operation in the same requester and execution context. These are operator checks; this Skill does not automatically manage process lifecycles.
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.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
6 skills in this plugin
/capture-screenProgrammatic screenshot capture on macOS. Find window IDs with Swift CGWindowListCopyWindowInfo, control application windows via AppleScript (zoom, scroll, select), and capture with screencapture. Use when automating screenshots, capturing application windows for documentation, or building multi-shot visual workflows./developing-ios-appsBuilds and ships iOS/macOS apps with XcodeGen, SwiftUI and SPM: Xcode build fixes, device deployment, Apple Developer signing/notarization, CI/CD pipelines. Use for XcodeGen project.yml setup, "Library not loaded @rpath" crashes, code-signing errors (Error -25294, adhoc fallback), or Electron notarization failures. Not for TCC permission dialogs (use macos-permissions) or disk cleanup (use macos-cleaner)./macos-cleanerDiagnoses and safely reclaims macOS disk space: caches, logs, app remnants, large/duplicate files, Docker/OrbStack, Chromium code-sign clones, developer caches. Use when a Mac is low on storage, shows “Caching needs more space”, when consolidating old task evidence, or before deleting anything to avoid data loss. Not for Windows/Linux or permission issues (use macos-permissions)./macos-load-doctorDiagnoses macOS system-level slowness, heat and fleet-wide timeouts: high load average, leaked per-session child processes (MCP servers, helpers), fork storms, busy loops. Use when the Mac feels slow or hot, fans spin up, or everything times out at once (电脑发烫/卡顿/负载高/全部超时). Not for single-app bugs, network slowness (use tunnel-doctor), launchd watchdog design (use macos-watchdog), or disk-full (use macos-cleaner)./macos-watchdogDesigns and audits macOS launchd watchdogs: LaunchAgent/LaunchDaemon setup, plist edits, scheduled self-healing, repeated notifications, apps reopening after quit, crash/repair loops, Script Editor alerts, stop/disable/restart, cooldown/backoff, notification throttling, alert decisions, schedule readback, WatchPaths/FSEvents event triggers. Supports periodic observers. launchd 守护进程、常驻任务、开机自启、后台监控、定时自愈、通知来源排查、事件驱动监控。/daymade-macos:macos-permissionsfrom daymade-macos
npx claudepluginhub daymade/claude-code-skills --plugin daymade-macosOther plugins' skills for the same job