basitalisandhu

Claude Perm Sim — Development skill for Claude Code

Development community

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.**

[![CI](https://github.com/basitalisandhu/claude-perm-sim/actions/workflows/ci.yml/badge.svg)](https://github.com/basitalisandhu/claude-perm-sim/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) [![Node 20+](https://img.shields.io/badge/node-20%2B-blue.svg)](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.

  • load merges 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.
  • bypass reads 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