audit-permission-grants

audit-permission-grants is a skill for Claude Code from melodic-software/claude-code-plugins. It costs 65 tokens per session (3,361 once invoked), scanned A, original, MIT.

A checker for permission rules that control which tools a Claude Code project or user account may use. It focuses on whether those rules work across machines and still apply when automatic approval mode is enabled.

In plain words
What is it for?
Use it to review skill, command, and agent permissions, along with project and user settings files. It checks portability, automatic-mode behavior, and whether the operative permission rule is defined in the right place.
Why use it?
It finds permissions that depend on one person's file paths, interpreter rules that stop working in automatic mode, or grants placed where they cannot take effect. This helps prevent unexpected prompts and ineffective security controls.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions CLAUDE.md.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the harness-config plugin — 8 skills shipped together

Good fit Use it to review skill, command, and agent permissions, along with project and user settings files. It checks portability, automatic-mode behavior, and whether the operative permission rule is defined in the right place.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add melodic-software/claude-code-plugins
Claude Code
/plugin install harness-config

Made for: Claude Code.

Or install harness-config, the plugin that ships this one along with the rest of its 8 skills.

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 audit-permission-grants

README.md
[![agentmods](https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/audit-permission-grants/github.svg)](https://agentmods.dev/skills/melodic-software/claude-code-plugins/audit-permission-grants)
Your own site
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/audit-permission-grants"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/audit-permission-grants/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 audit-permission-grants

Your own site · 80×15
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/audit-permission-grants"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/audit-permission-grants.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,361 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00065 $0.03361
Opus 5.5 $0.00026 $0.01344
Sonnet 5.5 $0.00013 $0.00672
Haiku 4.5 $0.00006 $0.00336

Measured today against content hash bf1e63caa06f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

audit-permission-grants scanned grade A 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 today.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/permission-rule-check-root.test.sh, scripts/permission-rule-check.sh, scripts/permission-rule-check.test.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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 directorieslowAgent snooping

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

operator-manual (the bare-name rule must land in user-global `~/.claude/settings.json`, which a skill

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

plugins/harness-config/skills/audit-permission-grants/SKILL.md · 230 lines

How it starts

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

Arguments. [frontmatter|settings|plugins|all] [--unattended]. default: all

Purpose

Audit whether a repo's permission grants actually take effect. Answers a question the sibling audit skill does not: "Are our allow-rules and allowed-tools grants portable across machines and durable when the session enters auto mode, and is the operative rule in a place that can work?"

The principle, the three anti-patterns, and the correct pattern (with official-doc citations) live in the marketplace's permission-rule-hygiene convention, published at https://raw.githubusercontent.com/melodic-software/claude-code-plugins/main/docs/contracts/permission-rule-hygiene/README.md. The mechanical check definitions (P1/P2/P3, severities, detector invocation) are in reference/criteria.md, which carries every recommendation this skill needs at run time. The convention is the doctrine's owner, not a runtime dependency.

Scope boundary (route out)

This skill owns grant portability + auto-mode durability + who adds the operative rule. It does not own config-file correctness. Baseline deny/ask presence, overly broad patterns, and live plugin drift belong to the sibling audit skill. When a request is about those, route it there rather than answering here. The audit skill in the harness-memory plugin owns the instruction layer (CLAUDE.md / a natively read AGENTS.md / rules / auto-memory).

Arguments

Parse $ARGUMENTS for an optional scope filter. It narrows which checks may produce findings, never what the detector scans. One full detector run happens either way, and the filter is applied to its output:

  • frontmatter: skill/command/agent allowed-tools only
  • settings: project, local, and user-global permissions.allow only
  • plugins: plugin settings.json self-grant (P3) only
  • all: everything (default)

--unattended, anywhere in the arguments, is not a filter: the caller declares nobody is present, which changes only the /permissions offer (see "Boundary" below). Take it out before reading the filter, and never pass it to the detector.

Read the full file on GitHub · 230 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today Changed bf1e63caa06f
  2. yesterday Changed · -29 tokens per session a19b44a82e1e
  3. 9d ago Changed 4e17df0369ec
  4. 14d ago Changed · +1 lines 9000954dfaf0
  5. 17d ago Changed · -4 lines fb61c090f153
  6. 19d ago Changed f4dd018160ab
  7. 25d ago Changed · +1 lines bf5cff926c9e
  8. 26d ago Changed · +7 lines b5c26055c10d
  9. 27d ago Changed 62f0f6d50007
  10. 28d ago First seen · 225 lines · 94 tokens per session scan A 0945ecc6ae64

Subscribe to this mod's changes

audit-permission-grants is a skill published in the GitHub repository melodic-software/claude-code-plugins (33 stars, last pushed today), licensed MIT. It adds 65 tokens to every session and 3,361 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A 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

audit-permission-grants compared with skills from other repositories

audit-permission-grants next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
audit-permission-grantsmelodic-software/claude-code-pluginsSkill33todayMITA65Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code