claude-permissions-optimizer

Analyze Claude Code session history to auto-allow safe Bash commands in settings.json.

25|15|Updated Aug 2, 2021
One-click install
npx skills add https://github.com/JesusFilm/core --skill claude-permissions-optimizer-jesusfilm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: claude-permissions-optimizer
Source: https://github.com/JesusFilm/core/tree/main/.claude/skills/claude-permissions-optimizer
Command: npx skills add https://github.com/JesusFilm/core --skill claude-permissions-optimizer-jesusfilm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Optimize Claude Code permissions by finding safe Bash commands from session history and auto-applying them to settings.json. This helps reduce permission fatigue and the number of prompts when working with Claude Code across coding environments.

Core Features & Use Cases

  • Analyze Claude Code session history to identify reusable, safe Bash command patterns and map them to explicit allowlist entries.
  • Auto-apply safe patterns to settings.json to minimize permission prompts while preserving safety and traceability.
  • Works from any coding agent and across all projects, with safeguards to avoid risky commands and clear escalation for non-safe patterns.

Quick Start

Tell Claude to scan my Claude Code session history and auto-apply safe Bash commands to settings.json.

Frequently Asked Questions about claude-permissions-optimizer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I auto-allow safe Bash commands in Claude Code settings.json?

To auto-allow safe Bash commands, this Skill scans your Claude Code session transcripts stored in CLAUDE_CONFIG_DIR, identifies safe Bash command patterns, and writes them as explicit allowlist entries into your settings.json file.

What is permission fatigue in Claude Code and how do I reduce it?

Permission fatigue occurs when developers repeatedly approve the same Bash commands. This Skill reduces it by scanning session history for safe, reusable Bash command patterns and applying them to the settings.json allowlist automatically.

Can I apply Claude Code Bash permissions across multiple projects?

Yes, Claude Code Bash permissions can be applied across multiple projects. This Skill works from any coding agent and environment by analyzing session history and writing safe command patterns to settings.json globally.

How does Claude Code identify safe Bash commands from session history?

It identifies safe Bash commands by scanning session transcripts stored in CLAUDE_CONFIG_DIR, mapping reusable command patterns to allowlist entries while explicitly escalating non-safe patterns to avoid risky commands.

Are there limitations to auto-allowing Bash commands in Claude Code?

The main limitation is that auto-allowing only applies to verified safe patterns. The Skill includes safety checks to avoid risky commands and provides clear escalation for non-safe patterns requiring manual review.

Do I need access to CLAUDE_CONFIG_DIR to optimize Claude Code permissions?

Yes, access to CLAUDE_CONFIG_DIR is required. The Skill reads session history transcripts from this directory and writes safe Bash command patterns to your settings.json file to reduce permission prompts.