Skip to content
Back to skills

Analyze Allows

ASecurity

Analyze Claude Settings and Suggest Global Allows

  • 8 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 20, 2026
developmentpythongobashnodedockergitdocumentation

Works with

  • cli
  • mcp

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned September 20, 2026

npx -y skills add tstapler/dotfiles --skill analyze-allows --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Analyze Allows?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Analyze Allows
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tstapler-analyze-allows/badge)](https://www.skillsdirectory.com/skills/tstapler-analyze-allows)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Analyze Claude Settings and Suggest Global Allows
---

# Analyze Claude Settings and Suggest Global Allows

Analyze all `.claude/settings.local.json` files across my projects and home directory to identify permissions that should be promoted to my global `~/.claude/settings.json` config.

## Task

1. **Discover Local Settings Files**
   - Search for all `settings.local.json` files under `~/.claude-squad/` (worktrees)
   - Search for all `settings.local.json` files under `~/` (user projects)
   - Exclude system directories and node_modules

2. **Extract and Aggregate Permissions**
   - Parse each `settings.local.json` file
   - Extract all entries from the `permissions.allow` array
   - Count frequency of each permission across all files
   - Track which projects use each permission

3. **Categorize Permissions by Safety Level**

   **SAFE (Auto-recommend)** - Read-only or non-destructive operations:
   - `Read(*)` patterns for non-sensitive files
   - `Bash(ls:*)`, `Bash(pwd)`, `Bash(which:*)`, `Bash(head:*)`, `Bash(tail:*)`
   - `Bash(go version)`, `Bash(node --version)`, `Bash(python --version)`
   - `Bash(go doc:*)`, `Bash(go list:*)`
   - `Bash(git status)`, `Bash(git log:*)`, `Bash(git show:*)`, `Bash(git diff:*)`
   - `Glob(*)` patterns
   - `Grep(*)` patterns
   - `WebFetch(domain:*)` for documentation sites
   - MCP tools that are read-only (browser_snapshot, get_*, list_*, search_*)

   **MODERATE (Recommend with note)** - Common dev operations, reversible:
   - `Bash(npm install:*)`, `Bash(npm test:*)`, `Bash(npm run:*)`
   - `Bash(go build:*)`, `Bash(go test:*)`, `Bash(go run:*)`
   - `Bash(make:*)`, `Bash(docker:*)`
   - `Bash(git add:*)`, `Bash(git commit:*)`, `Bash(git push:*)`
   - `Bash(curl:*)`, `Bash(jq:*)`
   - `Bash(tmux:*)` commands
   - MCP tools that modify (browser_click, browser_type, create_*, update_*)

   **CAUTION (Show but don't auto-recommend)** - Potentially destructive:
   - `Bash(rm:*)`, `Bash(kill:*)`, `Bash(killall:*)`, `Bash(pkill:*)`
   - `Bash(kubectl delete:*)`
   - `Bash(git reset:*)`, `Bash(git clean:*)`, `Bash(git stash:*)` — can discard or hide local changes
   - Very broad patterns like `Read(///**)` or `Bash(*)`
   - `SlashCommand(*)` patterns

4. **Compare with Existing Global Config**
   - Read `~/.claude/settings.json`
   - Identify which permissions are already in the global allow list
   - Filter out duplicates from recommendations

5. **Generate Recommendations Report**

   Format the output as:

   ```
   ## Permissions Analysis Summary

   - Total local settings files analyzed: X
   - Total unique permissions found: Y
   - Already in global config: Z
   - New recommendations: W

   ## SAFE Permissions (Recommend Adding)

   | Permission | Frequency | Projects |
   |------------|-----------|----------|
   | Bash(go vet:*) | 5 | claude-squad, project-x, ... |

   ## MODERATE Permissions (Consider Adding)

   | Permission | Frequency | Projects | Notes |
   |------------|-----------|----------|-------|
   | Bash(npm run build:*) | 3 | web-app, ui-lib | Build commands |

   ## CAUTION Permissions (Review Carefully)

   | Permission | Frequency | Projects | Risk |
   |------------|-----------|----------|------|
   | Bash(kill:*) | 2 | claude-squad | Process termination |

   ## Suggested Additions to ~/.claude/settings.json

   Copy these safe permissions to add:
   ```json
   [
     "Bash(go vet:*)",
     "Bash(go fmt:*)",
     ...
   ]
   ```
   ```

6. **Output Format Options**
   - If argument `$1` is "json", output machine-readable JSON
   - If argument `$1` is "apply", show the commands to apply changes (but don't execute)
   - Default: Show the markdown report

## Implementation Notes

- Use `find` to locate files, `jq` to parse JSON
- Handle malformed JSON gracefully (skip with warning)
- Normalize permissions (remove trailing whitespace, etc.)
- Sort recommendations by frequency (most common first)
- Shorten project paths in output (show just directory name, not full path)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.