Claude permissions

From Esposter/Esposter · View interactive version

Claude permissions is an AI agent skill from the GitHub repository Esposter/Esposter. Apply when editing settings.local.json or debugging why a command still prompts. Esposter Claude Code permission-rule conventions for the allow-only .agents/settings.local.json. Generic harness semantics live in the update-config skill.

How to use this skill

Skill file

Claude Code Permission Rules (`.agents/settings.local.json`)

Generic harness semantics — rule format, deny/ask/allow evaluation order, compound-command splitting, wrapper stripping — are owned by the update-config skill. This file records only what is specific to this repo.

The repo's settings.local.json is allow-only: it has no deny or ask list. Keep it that way unless the user asks otherwise.

Permissions are all it holds. The sibling .agents/settings.json is the checked-in half — the marketplace the checkout declares for itself and the plugin it enables (openspec/specs/architecture/agent-configuration/design.md) — so a plugin or harness setting meant for everyone goes there, never here.

Settled — do not re-propose

The one non-obvious rule: use `command *`, and give colon sub-scripts their own rule

The shipped settings.local.json is the standard — copy its shape. A command that takes arguments is the trailing space + * form (Bash(pnpm lint *), Bash(az resource show *)); a command run as one fixed string is its exact text (Bash(pnpm i)), and that file is known to work.

pnpm lint * covers pnpm lint and pnpm lint --fix, but not pnpm lint:fix — hence the file's separate pnpm lint:fix *, pnpm lint:fix:packages *, and pnpm outdated:dependencies * entries. Each colon sub-script you actually invoke needs its own rule. That is the first thing to check when a command still prompts.

Project conventions for `settings.local.json`

PowerShell canonicalizes aliases before matching, so PowerShell(Get-ChildItem *) already covers gci, ls, and dir; matching is case-insensitive.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.