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.
npx agentmods add skills/melodic-software/claude-code-plugins/audit-permission-statenpx skills add melodic-software/claude-code-plugins --skill audit-permission-stategit clone --depth 1 https://github.com/melodic-software/claude-code-pluginsWrote 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.
[](https://agentmods.dev/skills/melodic-software/claude-code-plugins/audit-permission-state)<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/audit-permission-state"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/audit-permission-state.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00158 | $0.04413 |
| Opus 5 | $0.00079 | $0.02207 |
| Sonnet 5 | $0.00032 | $0.00883 |
| Haiku 4.5 | $0.00016 | $0.00441 |
Grade A, and why
audit-permission-state scanned grade A with 0 findings 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 3d 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 305 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Purpose
/permissions lists your rules and the settings file each one came from, and for "where is this rule
written" that is the answer, so use it. What it does not do is resolve the outcome: it will show you an
allow and a deny for the same tool without saying which wins, it cannot tell a scope that was empty
from one it could not read, there is no claude permissions subcommand or machine-readable export,
and none of it exists outside a live session. This skill computes that locally, in a form another
tool can consume.
It answers a question the siblings do not. audit-permission-grants asks whether the grants you
wrote are durable and portable; audit asks whether your config files are correct. This
skill asks what is in effect: which scopes exist on this machine, which of them this reader
could actually open, and what each one holds.
Scope boundary (route out)
- Grant portability and auto-mode durability (P1/P2/P3) →
claude-config:audit-permission-grants. - Settings-file correctness, baseline deny/ask presence, plugin drift →
claude-config:audit. - The instruction layer (CLAUDE.md, rules, auto-memory) → the
claude-memoryplugin.
Report-only, permanently
This skill writes no settings file, in any scope, under any flag. That is the contract, and it
holds including under --oracle. It is not the same as writing nothing at all: --oracle spawns a
real claude -p session, and a session rewrites ~/.claude.json and adds project, session-env,
security, subagent and backup state under your config directory. The flag prints that before it
spawns anything. Every other action writes nothing anywhere. Managed policy is read-only by
construction: those are admin-write OS locations or a claude.ai Owner role, so a plugin could not
author them even if it wanted to.
Arguments
Parse $ARGUMENTS:
--scopes: surface records only, no rule inventory. Use when the question is "which scopes exist and which could you read", not "what is in them".--entry-diff: run the full pipeline through to the auto-mode entry diff (Phase 3 below).--oracle: with--entry-diff, cross-check the prediction against the harness's own drop narration. Spawns a realclaude -psession; never fires without this flag. See its cost notice, which the run prints before anything is spawned.- (no argument): surfaces plus one record per allow/ask/deny rule, then the merge.
What ships with it
17 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.
- evals/evals.json 2.7 KB
- evals/fixtures/automode-config-rawctl.json 454 B
- evals/fixtures/automode-defaults.json 557 B
- reference/criteria.md 28 KB
- scripts/automode-block-lint.sh 16 KB runs code
- scripts/automode-block-lint.test.sh 12 KB runs code
- scripts/automode-entry-diff.sh 19 KB runs code
- scripts/automode-entry-diff.test.sh 22 KB runs code
- scripts/managed-conformance.sh 11 KB runs code
- scripts/managed-conformance.test.sh 11 KB runs code
- scripts/no-writes.test.sh 9.0 KB runs code
- scripts/permission-merge.sh 8.9 KB runs code
- scripts/permission-merge.test.sh 15 KB runs code
- scripts/permission-plane-lint.sh 17 KB runs code
- scripts/permission-plane-lint.test.sh 20 KB runs code
- scripts/permission-state.sh 22 KB runs code
- scripts/permission-state.test.sh 18 KB runs code
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.
- 3d ago First seen · 305 lines · 158 tokens per session scan A 4baebe541663
audit-permission-state is a skill published in the GitHub repository melodic-software/claude-code-plugins (13 stars, last pushed yesterday), licensed MIT. It adds 158 tokens to every session and 4,413 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
deep-research
Conducts iterative deep research on any topic using web search, progressive exploration, and structured synthesis. Use when asked for comprehensive research, deep investigation, thorough analysis, or multi-source exploration of any topic. Triggers: research, investigate, deep dive, comprehensive analysis, explore…
error-ux
Principles and patterns for writing error messages that help users recover. Use when auditing, writing, or improving error messages in code. Triggers: error messages, user experience, error handling, exception messages, validation errors.
adversarial-patterns
Library of realistic adversarial attack vectors and anti-patterns to avoid. Contains examples of valid attacks and subtle gaming patterns to reject.
documentation-testing
Provides heuristics for identifying incomplete or broken documentation. Use when validating README setup instructions, testing onboarding flows, or auditing documentation quality. Triggers: docs, readme, onboarding, setup validation, documentation audit.
adversarial-analysis
Analyze code to identify explicit contracts, implicit usage patterns, and realistic boundary conditions. Contains concrete formulas for calculating input realism limits. Use before generating adversarial tests.
match-stable-pairs
For two-sided matching: hospital-resident, stable marriage, college admissions. Gale-Shapley algorithm for stable matching with preferences.