Install
$ agentstack add skill-melodic-software-claude-code-plugins-audit-permission-grants ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
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 . The mechanical check definitions (P1/P2/P3, severities, detector invocation) are in [reference/criteria.md](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, deprecated :* syntax, overly broad patterns, or 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 claude-memory plugin owns the instruction layer (CLAUDE.md / rules / auto-memory).
Arguments
Parse $ARGUMENTS for an optional scope filter:
frontmatter— skill/command/agentallowed-toolsonlysettings—.claude/settings.json+.claude/settings.local.jsonpermissions.allowonlyplugins— pluginsettings.jsonself-grant (P3) onlyall— everything (default)
This skill is report-only. There is no --fix: the correct P3 remediation is inherently operator-manual (the bare-name rule must land in user-global ~/.claude/settings.json, which a skill or plugin cannot write), and P1/P2 rewrites are judgment calls the operator confirms.
Phase 1: Detect
Run the deterministic spine:
bash "${CLAUDE_PLUGIN_ROOT}/skills/audit-permission-grants/scripts/permission-rule-check.sh"
It scans frontmatter allowed-tools and settings permissions.allow across the consuming repo and prints one finding per fragile grant ( [] : ). --count prints the count. It requires jq; a missing jq exits 2 (report the environment gap rather than a clean bill). settings.local.json is parsed for its permissions.allow array only — never echoed wholesale.
If a scope filter was given, run the full detector and present only the matching checks (P1/P2 map to frontmatter/settings sources; P3 to plugins).
Phase 2: Report
Present findings as the severity-rated table in [reference/criteria.md](reference/criteria.md) "Output format". For each finding, give the concrete recommendation from its check: replace the fragile grant with the bare-name-on-PATH pattern from the convention, and add an Operator setup note where a user-global ~/.claude/settings.json rule is required.
Severity guide
| Severity | Criteria | | --- | --- | | error | Non-portable grant that leaks a username / breaks on other machines (P2) | | warning | Interpreter/runner-led grant whose broad forms auto mode drops, or an inert self-grant (P1, P3) |
A clean scan ("No fragile permission grants found.") is a valid outcome — report it as such.
Consumer conventions
A consuming repo may declare, in its own CLAUDE.md / .claude/rules/, additional interpreter tokens or path shapes it treats as fragile, or a documented exemption (e.g. a deliberately broad grant behind a PreToolUse hook). Read those when present; this skill does not assume them.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: melodic-software
- Source: melodic-software/claude-code-plugins
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.