Source profileQuality 88/100

jackchuka/skills/claude-permissions-audit/SKILL.md

claude-permissions-audit

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 and project-local files only contain project-specific overrides. Use this skill whenever the user mentions reviewing permissions, cleaning up settings, auditing allowed tools, reorganizing settings.j

Source repository stars
15
Declared platforms
1
Static risk flags
2
Last source update
2026-07-28
Source checked
2026-07-28

Decision brief

What it does—and where it fits

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.

Best for

  • Reviewing what tools and commands are pre-allowed
  • Cleaning up accumulated ad-hoc permission entries
  • After adding a new MCP server and deciding which operations to pre-allow

Not for

  • Tasks that require unconfirmed production actions or broad system permissions.
  • Environments where the pinned source and install steps cannot be inspected.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeDeclaredSource recordInstall path and trigger
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/jackchuka/skills --skill "claude-permissions-audit"
Safe inspection promptEditorial

Inspect the Agent Skill "claude-permissions-audit" from https://github.com/jackchuka/skills/blob/7b0b33f68b8f11522e43622e5cb3bacd802999d2/claude-permissions-audit/SKILL.md at commit 7b0b33f68b8f11522e43622e5cb3bacd802999d2. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    Phase 1: Discover All Settings Files

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

    /.claude/settings.json — global settings (source of truth)/.claude/settings.json — project shared settings (committed)/.claude/settings.local.json — project local settings (gitignored)
  2. 02

    Phase 2: Audit

    For each permission entry across all files, assess:

    Redundancy — Is this entry already covered by a broader rule elsewhere?Example: Bash(gws calendar events:) is redundant when Bash(gws:) exists globallyMisplacement — Is this general-purpose but stuck in a project-local file?
  3. 03

    Phase 3: Propose Reorganization

    Design the new layout following these principles:

    Broader tool access needed for a specific workflow (e.g., Bash(gh:) for a repo that creates PRs frequently)Project-specific MCP tools not used elsewhereTemporary elevated access during active development
  4. 04

    Phase 4: Apply Changes

    Once the user confirms the plan:

    Write the updated global settings fileWrite the trimmed project-local settings fileUpdate any dotfiles copies to stay in sync
  5. 05

    Phase 5: Summary

    Present a before/after comparison:

    Present a before/after comparison:List what moved where, and what still requires prompting (write operations not pre-allowed).

Permission review

Static risk signals and limitations

Reads files

low · line 17

The documentation asks the agent to read local files, directories, or repositories.

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

Reads files

low · line 26

The documentation asks the agent to read local files, directories, or repositories.

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

Writes files

medium · line 89

The documentation asks the agent to create, modify, or delete local files.

Write the updated global settings file

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score88/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars15SourceRepository attention, not individual Skill quality
Compatibility1 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
jackchuka/skills
Skill path
claude-permissions-audit/SKILL.md
Commit
7b0b33f68b8f11522e43622e5cb3bacd802999d2
License
MIT
Collected
2026-07-28
Default branch
main
View the original SKILL.md

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

  • Reviewing what tools and commands are pre-allowed
  • Cleaning up accumulated ad-hoc permission entries
  • After adding a new MCP server and deciding which operations to pre-allow
  • Ensuring global vs project-local settings are properly split
  • Periodic hygiene check on permission sprawl

Phase 1: Discover All Settings Files

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

Locations to check:

  • ~/.claude/settings.json — global settings (source of truth)
  • <project>/.claude/settings.json — project shared settings (committed)
  • <project>/.claude/settings.local.json — project local settings (gitignored)
  • ~/.claude/.claude/settings.local.json — home directory project local
  • Any dotfiles-managed copy (e.g. home/.claude/settings.json in a dotfiles repo)

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?
    • Example: Bash(gws calendar events:*) is redundant when Bash(gws:*) exists globally
  2. Misplacement — Is this general-purpose but stuck in a project-local file?
    • Example: Bash(python3:*) in project local when it's useful everywhere
  3. Inconsistent granularity — Are similar tools allowed at different specificity levels?
    • Example: Global has gh pr list, gh pr view individually, but project local has gh:*
  4. Missing read/write distinction — Are read-only and write operations mixed together?
  5. 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:

  • Broader tool access needed for a specific workflow (e.g., Bash(gh:*) for a repo that creates PRs frequently)
  • Project-specific MCP tools not used elsewhere
  • Temporary elevated access during active development

Clarifying questions

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

  • Scope of CLI tools: Should gh:* (all subcommands) go global, or keep read-only globally with broader access per-project?
  • MCP write operations: Which write operations (send message, create issue) should stay prompted vs pre-allowed?
  • Environment separation: Should dev and prod data sources have the same read access, or should prod be more restrictive?
  • Dotfiles sync: Does the user maintain a dotfiles copy that needs updating?

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:

FileBeforeAfter
GlobalN flat entriesM entries in K sections
Project localX entriesY entries (project-specific only)

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

Alternatives

Compare before choosing