Claude permissions audit

From jackchuka/skills · View interactive version

Claude permissions audit is an AI agent skill from the GitHub repository jackchuka/skills. Review and reorganize Claude Code permission settings across all config files (global settings.json, project settings.local.json, dotfiles copies). Identifies redundancy, misplaced permissions, and lack of read/write organization. Produces a clean layout where global settings are the source of truth

How to use this skill

Skill file

Permissions Audit

Review and reorganize Claude Code permission settings so global settings are the

source of truth, project-local files stay minimal, and read vs write operations

have clear separation.

When to Use

Phase 1: Discover All Settings Files

Scan for every settings file that contributes to the effective permission set.

Locations to check:

Read all of them in parallel. If a file doesn't exist, note it and move on.

Phase 2: Audit

For each permission entry across all files, assess:

  1. Redundancy — Is this entry already covered by a broader rule elsewhere?
  1. Misplacement — Is this general-purpose but stuck in a project-local file?
  1. Inconsistent granularity — Are similar tools allowed at different specificity levels?
  1. Missing read/write distinction — Are read-only and write operations mixed together?
  2. Stale entries — One-time approvals that accumulated (e.g., a specific git command with hardcoded paths)

Present findings as a table with issues and proposed resolution for each.

Phase 3: Propose Reorganization

Design the new layout following these principles:

Global settings (source of truth)

Organize permissions into labeled sections by grouping related entries together.

Do NOT use JSON comments (// or /* */) — settings.json must be valid JSON.

Instead, rely on the ordering of entries to convey grouping. Within the allow

array, cluster related permissions together in this order:

Section order (group entries in this sequence, no separators needed):

filesystem reads            — cat, tree, grep, wc, file reads
<lang> inspection           — go doc, cargo check, linters (no side effects)
GitHub CLI reads            — gh pr list/view/diff, gh issue list (no mutations)
external tool reads         — calendar, slack CLI, other read CLIs
web reads                   — WebSearch, WebFetch with domain allowlist
MCP <service> reads         — list, get, describe, search operations
build / test / install      — go build, cargo test, pnpm install (local side effects)
skills                      — Skill(superpowers:*), etc.

Project-local settings (minimal overrides)

Only keep entries that are genuinely project-specific:

Clarifying questions

Before applying, ask the user about edge cases. Common questions:

Adapt questions to what's actually ambiguous — don't ask about things that are obvious from context.

Phase 4: Apply Changes

Once the user confirms the plan:

  1. Write the updated global settings file
  2. Write the trimmed project-local settings file
  3. Update any dotfiles copies to stay in sync
  4. Clear out entries from other local files that were absorbed into global

Phase 5: Summary

Present a before/after comparison:

| File | Before | After |

|------|--------|-------|

| Global | N flat entries | M entries in K sections |

| Project local | X entries | Y entries (project-specific only) |

List what moved where, and what still requires prompting (write operations not pre-allowed).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.