permission-analyzer

Generate permissions configuration based on actual tool usage from past sessions.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "permission-analyzer" with this command: npx skills add arjenschwarz/agentic-coding/arjenschwarz-agentic-coding-permission-analyzer

Permission Analyzer

Generate permissions configuration based on actual tool usage from past sessions.

Workflow

Run the analysis script for the current project:

~/.claude/skills/permission-analyzer/scripts/analyze_permissions.py

Review the generated permissions output

Offer to merge into existing settings:

  • If .claude/settings.json exists, merge the permissions section

  • If not, create new file with generated config

  • Preserve existing settings (model, env, etc.)

Script Output

The script outputs to stderr (summary) and stdout (JSON):

Analyzing: /path/to/project Sessions analyzed: 42

Bash commands found: git: 150 make: 80 go: 45

MCP tools found: mcp__devtools__think

{ "permissions": { "allow": ["Bash(git:)", "Bash(go:)", ...], "deny": [...], "defaultMode": "acceptEdits" } }

Generated Rules

Allow list includes:

  • Development commands used (git, make, go, npm, cargo, etc.)

  • Filesystem commands used (ls, mkdir, find, etc.)

  • MCP server wildcards for servers that were used

Deny list includes:

  • Dangerous gh operations (merge, delete, secrets, auth)

  • Sensitive file patterns (.env, secrets/, *.pem, *.key)

  • Destructive commands (rm -rf, sudo, chmod 777)

Merging Settings

When .claude/settings.json exists, merge only the permissions key while preserving other settings. If user has custom allow/deny rules, ask whether to merge or replace.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

ui-ux-reviewer

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

efficiency-optimizer

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

design-critic

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

fix-bug

No summary provided by upstream source.

Repository SourceNeeds Review