tcc-grant-audit

tcc-grant-audit is a skill for Claude Code from terrylica/cc-skills. It costs 186 tokens per session (2,051 once invoked), scanned A, original, MIT.

A macOS privacy-permission audit and cleanup guide for TCC, the system that records whether apps may use services such as the camera, microphone, screen recording, or accessibility controls. It checks all listed permission stores, including approvals left by removed apps.

In plain words
What is it for?
Use it to list permissions, inspect which application identity they belong to, watch changes, reset installed-app grants, and clear grants for uninstalled apps.
Why use it?
The usual macOS reset command cannot handle every store or orphaned approval. A complete audit helps show what access exists and whether a change actually took effect.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code.

Part of the macos-permissions plugin — 2 skills shipped together , and of cc-skills

Good fit Use it to list permissions, inspect which application identity they belong to, watch changes, reset installed-app grants, and clear grants for uninstalled apps.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/terrylica/cc-skills/tcc-grant-audit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add terrylica/cc-skills --skill tcc-grant-audit
Clone the repo
git clone --depth 1 https://github.com/terrylica/cc-skills

Made for: Claude Code.

Or install macos-permissions, the plugin that ships this one along with the rest of its 2 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tcc-grant-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/terrylica/cc-skills/tcc-grant-audit/github.svg)](https://agentmods.dev/skills/terrylica/cc-skills/tcc-grant-audit)
Your own site
<a href="https://agentmods.dev/skills/terrylica/cc-skills/tcc-grant-audit"><img src="https://agentmods.dev/badge/skills/terrylica/cc-skills/tcc-grant-audit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tcc-grant-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/terrylica/cc-skills/tcc-grant-audit"><img src="https://agentmods.dev/badge/skills/terrylica/cc-skills/tcc-grant-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 186 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,051 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00186 $0.02051
Opus 5.5 $0.00074 $0.00820
Sonnet 5.5 $0.00037 $0.00410
Haiku 4.5 $0.00019 $0.00205

Measured 25d ago against content hash 2b49c7bd899e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tcc-grant-audit scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 25d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (sequoia-ghost-prune.sh, tcc-audit.sh, tcc-clear-orphans.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootlowPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

| Watch grants change live | `sudo eslogger tcc_modify` |

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

plugins/macos-permissions/skills/tcc-grant-audit/SKILL.md · 114 lines

How it starts

The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.

tcc-grant-audit — macOS privacy grants, all stores

Self-Evolving skill — every rule below was MEASURED, not inferred. If a macOS release changes one, fix this file and the scripts; see Post-Execution Reflection.

Resolve the scripts against the version Claude Code actually loaded:

SKILL="$(cc-plugin-root macos-permissions)/skills/tcc-grant-audit"

Start here, always

bash "$SKILL/tcc-audit.sh" all        # READ-ONLY. Changes nothing.

🔴 The seven things that will bite you

1. tccutil is not the only tool, and is the wrong one for half the job. Reach for the whole set:

Need Tool
Query any grant, any service, any store sqlite3 -readonly on TCC.db
Is this bundle id still installed? NSWorkspace via osascript -l JavaScript (one line)
What does a grant actually pin? /usr/bin/csreq -r- -t
Watch grants change live sudo eslogger tcc_modify
Ground truth on whether a write landed log show --predicate 'subsystem == "com.apple.TCC"'
Reset a grant for an INSTALLED app /usr/bin/tccutil reset <Service> <id>
Clear a grant for an UNINSTALLED app tcc-clear-orphans.sh (stub technique)
Remove a client_type=1 path row a direct DB writer, user store only

2. Order is load-bearing: reset the grant BEFORE deleting the app. tccutil resolves the identifier through LaunchServices first. Delete the app and every reset fails -10814 forever.

3. tccutil reports success on a no-op. It prints Successfully reset and exits 0 while deleting nothing. Verify every change with SELECT COUNT(*) against the database. Third-party tools do this too — a direct DB writer exits 0 when the write was refused.

Read the full file on GitHub · 114 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 25d ago First seen · 114 lines · 186 tokens per session scan A 2b49c7bd899e

Subscribe to this mod's changes

tcc-grant-audit is a skill published in the GitHub repository terrylica/cc-skills (0 stars, last pushed today), licensed MIT. It adds 186 tokens to every session and 2,051 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-21.