This skill analyzes session history to generate precise Claude Code permissions and helps merge them into settings.
npx playbooks add skill arjenschwarz/agentic-coding --skill permission-analyzer
Generate permissions configuration based on actual tool usage from past sessions.
~/.claude/skills/permission-analyzer/scripts/analyze_permissions.py
.claude/settings.json exists, merge the permissions sectionThe 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"
}
}
Allow list includes:
Deny list includes:
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.
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.