Optimize Claude Code permissions by finding safe Bash commands from session history and auto-applying them to settings.json. Can run from any coding agent but targets Claude Code specifically. Use when experiencing permission fatigue, too many permission prompts, wanting to optimize permissions, or needing to set up allowlists. Triggers on "optimize permissions", "reduce permission prompts", "allowlist commands", "too many permission prompts", "permission fatigue", "permission setup", or complaints about clicking approve too often.
$npx -y skills add gvkhosla/compound-engineering-pi --skill claude-permissions-optimizerInstalls into the current project.
Run `npx skills use "https://github.com/gvkhosla/compound-engineering-pi" --skill "gvkhosla/compound-engineering-pi/claude-permissions-optimizer"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/gvkhosla/compound-engineering-pi" that are relevant to the current task. Run `npx skills add "https://github.com/gvkhosla/compound-engineering-pi"` and select the relevant skills, then follow their instructions.