fewer-permission-prompts
FeaturedScan your transcripts for common read-only Bash and MCP tool calls, then add a prioritized allowlist to project .claude/settings.json to reduce permission prompts.
AI & Automation 68,373 stars
11111 forks Updated 3 days ago CC0-1.0
Install
Quality Score: 90/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Fewer Permission Prompts
Look through my transcripts' MCP and bash tool calls, and based on those, make a prioritized list of patterns that I should add to my permission allowlist to reduce permission prompts. Focus on read-only commands.
The format for permissions is: `Bash(foo*)`, `Bash(foo)`, `Bash(foo bar *)`, `mcp__slack__slack_read_thread`, etc.
Then, add these to the project `.claude/settings.json` under `permissions.allow`.
## Steps
1. **Locate transcripts.** Session transcripts live at `~/.claude/projects/<sanitized-cwd>/*.jsonl`. Each line is a JSON object. Tool calls appear as `assistant` messages with `message.content[]` entries of `type: "tool_use"`. The `name` field identifies the tool (e.g. `"Bash"`, `"mcp__slack__slack_read_thread"`); for Bash, `input.command` is the shell string.
Scan the recent transcripts across the user's projects dir — not just the current project — so the allowlist reflects their actual usage. Cap the scan at a reasonable number of recent sessions (e.g. 50 most-recently-modified JSONL files) so this stays fast.
2. **Extract tool-call frequencies.**
- For `Bash` calls: parse `input.command`, take the leading command token (handling `sudo`, `timeout`, pipes, `&&`, env-var prefixes). Record the command + first subcommand pair (e.g. `git status`, `gh pr view`, `ls`, `cat`).
- For MCP calls: record the full tool name (e.g. `mcp__slack__slack_read_thread`).
- Count occurrences across the scanned transcripts.
3. **Filter t...
Details
- Author
- asgeirtj
- Repository
- asgeirtj/system_prompts_leaks
- Created
- 1 years ago
- Last Updated
- 3 days ago
- Language
- JavaScript
- License
- CC0-1.0
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Listed
fewer-permission-prompts
Use when optimizing CLI permission settings.json to reduce prompt friction
7 Updated yesterday
imMamdouhaboammar AI & Automation Solid
permission-tuner
Analyze permission prompts and auto mode denials, then generate permission rules and autoMode entries that cut prompt fatigue. Use when prompts keep interrupting, auto mode falls back to prompting, or after sessions with many denials.
2,879 Updated 2 days ago
rohitg00 AI & Automation Featured
permissions
Recommend safe Bash permissions for Elixir mix commands in settings.json. Use when permission prompts slow workflow, "fix permissions", "reduce prompts", "auto-allow mix".
555 Updated yesterday
oliver-kriska