fewer-permission-prompts

fewer-permission-prompts is a skill for Claude Code, Codex from asgeirtj/system_prompts_leaks. It costs 38 tokens per session (2,285 once invoked), scanned B, original, CC0-1.0.

A tool for reviewing past agent transcripts and proposing read-only command permissions for a project’s settings.

In plain words
What is it for?
It helps scan recent sessions, count command patterns, prioritize an allowlist, and add the result to .claude/settings.json.
Why use it?
It reduces repeated approval prompts for commands the user commonly runs while keeping the suggested permissions focused on observed usage.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions Claude Code.

Good fit It helps scan recent sessions, count command patterns, prioritize an allowlist, and add the result to .claude/settings.json.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/asgeirtj/system_prompts_leaks/fewer-permission-prompts
About the project

System Prompts Leaks is a collection of captured system instructions used to guide AI chatbots and coding agents before they receive user messages. It serves researchers and developers studying how different AI assistants are directed.

asgeirtj/system_prompts_leaks · 73,683 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add asgeirtj/system_prompts_leaks --skill fewer-permission-prompts
Clone the repo
git clone --depth 1 https://github.com/asgeirtj/system_prompts_leaks

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fewer-permission-prompts

README.md
[![agentmods](https://agentmods.dev/badge/skills/asgeirtj/system_prompts_leaks/fewer-permission-prompts/github.svg)](https://agentmods.dev/skills/asgeirtj/system_prompts_leaks/fewer-permission-prompts)
Your own site
<a href="https://agentmods.dev/skills/asgeirtj/system_prompts_leaks/fewer-permission-prompts"><img src="https://agentmods.dev/badge/skills/asgeirtj/system_prompts_leaks/fewer-permission-prompts/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fewer-permission-prompts

Your own site · 80×15
<a href="https://agentmods.dev/skills/asgeirtj/system_prompts_leaks/fewer-permission-prompts"><img src="https://agentmods.dev/badge/skills/asgeirtj/system_prompts_leaks/fewer-permission-prompts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,285 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. ✓ AI security review Fable 5.1 · 6 Sept 2026 📄 Read the review Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Agent Snooping · line 64
    Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.
    Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.02285
Opus 5.5 $0.00015 $0.00914
Sonnet 5.5 $0.00008 $0.00457
Haiku 4.5 $0.00004 $0.00229

Measured 12d ago against content hash 9a75db69f0c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

fewer-permission-prompts scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

8. **Merge into `.claude/settings.json`** in the current project (not `~/.claude/settings.json`, not `.claude/settings.local.json`). Create the file if it doesn't exist. Preserve existing keys and existing entries in `pe
Anthropic/claude-code/skills/fewer-permission-prompts/SKILL.md · 69 lines

How it starts

The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 to read-only. Keep only commands that don't mutate state. Examples of read-only: ls, cat, pwd, git status, git log, git diff, git show, git branch, rg, grep, find, head, tail, wc, file, which, echo, date, gh pr view, gh pr list, gh pr diff, gh issue view, gh issue list, gh run list, gh run view, gh api (GET), bun run typecheck, bun run lint, bun run test (for tests that don't mutate), docker ps, docker logs, kubectl get, kubectl describe, ps, top, df, du, env, printenv, any MCP tool with read/get/list/search/view in its name.

Read the full file on GitHub · 69 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago Changed 9a75db69f0c5
  2. 15d ago Changed e85fde990d20
  3. 19d ago Changed ac4e440a92de
  4. 1mo ago Changed 3993ef085c28
  5. 2mo ago Changed · -1 lines b701c48e136d
  6. 3mo ago First seen · 70 lines · 38 tokens per session scan B fcb48ee00d8e

Subscribe to this mod's changes

fewer-permission-prompts is a skill published in the GitHub repository asgeirtj/system_prompts_leaks (73,683 stars, last pushed yesterday), licensed CC0-1.0. It adds 38 tokens to every session and 2,285 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

fewer-permission-prompts compared with skills from other repositories

fewer-permission-prompts next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fewer-permission-promptsasgeirtj/system_prompts_leaksSkill74kyesterdayCC0-1.0B38Claude Code, Codex
simplify-codeNousResearch/hermes-agentSkill267ktodayMITA14Claude Code, Codex
himalayaNousResearch/hermes-agentSkill267ktodayMITA17Claude Code, Codex
apple-remindersNousResearch/hermes-agentSkill267ktodayMITA17Claude Code, Codex
apple-notesNousResearch/hermes-agentSkill267ktodayMITA17Claude Code, Codex
imessageNousResearch/hermes-agentSkill267ktodayMITA19Claude Code, Codex
boxNousResearch/hermes-agentSkill267ktodayMITA14Claude Code, Codex