Claude Perm Sim — Development skill for Claude Code
Claude Code permission rule simulator: load the merged allow, ask and deny settings, show which rule decides any tool call, and find the bypasses: commands that slip past a Bash pattern, paths that es.
How to install Claude Perm Sim
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open basitalisandhu/claude-perm-sim and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Perm Sim does
Claude Code permission rule simulator: load the merged allow, ask and deny settings, show which rule decides any tool call, and find the bypasses: commands that slip past a Bash pattern, paths that escape an Edit scope, domain rules that admit subdomains, and MCP tools nothing covers. Table, JSON and SARIF. TypeScript CLI.
Alternatives in Development
- Operate iOS Simulator — Skill: operate the OpenCode iOS client in Simulator 257 ★
- Exception — Signed gate-exception registry — replace ad-hoc --admin / --no-verify bypasses with an auditable, signed, expi 83 ★
- Xc MCP — XCode CLI MCP: Convenience wrapper for Xcode CLI tools & iOS Simulator 82 ★
README
claude-perm-sim: Claude Code permission rule simulator
**claude-perm-sim loads your merged Claude Code permission settings, tells you which rule decides any given tool call, and finds the bypasses: commands that slip past a Bash pattern, paths that escape an Edit scope, and MCP tools nothing covers.**
[](https://github.com/basitalisandhu/claude-perm-sim/actions/workflows/ci.yml) [](LICENSE) [](package.json)
What it does, who it is for, and why
Claude Code decides every tool call against permission rules spread across managed, command-line, local, project, and user settings, evaluated deny first, then ask, then allow. The rules match the text the model writes, with wildcards, wrappers, compound-command splitting, and gitignore-style path anchoring, and the [docs say plainly](https://code.claude.com/docs/en/permissions) a Bash rule "isn't a security boundary around the program". That leaves two everyday questions hard to answer by reading the files: which rule actually decides a call, and where a rule you wrote admits more than you meant.
claude-perm-sim answers both. It is for developers and teams who hand-write Claude Code permission rules and want to see the effective rule set, trace one decision, and catch a rule that is broader than it looks before it ships.
loadmerges the settings files in the documented precedence and prints the effective allow, ask, and deny lists with the source file of each rule.explain ""prints the decision and the exact rule and file that decided it, plus the rules that also matched but lost.bypassreads your allow rules and reports, structurally, where one admits more than it names: a Bash prefix that runs an arbitrary inner command, an Edit or Read scope that resolves outside its direct
Related Skills
Smart Approve.py
PreToolUse (Bash) Decompose compound bash commands (&&, \ \ , ;, \ , $()) into sub-commands and check each aga
Claude Code Mini
Async Python implementation of the Claude Code agent harness — real Bash/Read/Glob/Grep tools, three-tier cach
Jev Brig
A Claude Code hook that judges Bash commands against a session policy level, and answers allow/ask/deny with a
Notch Voice
Claude Code, out loud. A macOS notch app that reads Claude's replies, glows while it speaks, and lets you allo
Allow Asks
Review the permission-prompt log, propose allow-rule patterns, and append approved ones to ~/.claude/settings.
Claude MCP Allow
Generate least-privilege Claude Code permission rules for MCP tools from their live annotations: readOnlyHint
Related Agents
Permissions Manager
Manage tool permission rules. Use when user says 'allow', 'deny', or 'ask' for a command, wants to modify perm
Permission Analyst
Recommends allow/deny permission rules from denial telemetry and policy via PromptWise. Use to reduce permissi
Auth Policy Validator
Валидатор ZenStack access control policies. USE PROACTIVELY после изменений @@allow/@@deny для проверки безопа