Bash(npm run test *)Allow, deny, or ask for matching shell commands with Bash wildcards.
Citations
- Claude Code permissions — Set the defaultMode in your settings files; deny rules are evaluated before ask and allow rules.
Choose the guardrails your project needs and produce deterministic settings.json scaffolding without sending repository details to a server.
Your inputs never leave this page — no sign-up, no upload, no model call.
Choose guardrails and build to preview the file.
Preview is deterministic and safe to copy. It includes the official JSON schema URL for editor validation.
Crawlable references for Claude Code permission grammar, hook recipes, and settings scope precedence.
Bash(npm run test *)Allow, deny, or ask for matching shell commands with Bash wildcards.
Citations
BashBare tool rules affect the whole tool; scoped rules affect only matching calls.
Citations
Read(./src/**)Project-relative file anchor for repository paths.
Citations
Read(~/notes/**)Home-relative file anchor for user-local paths.
Citations
Read(/var/log/**)Absolute path anchor for machine paths.
Citations
Read(//server/share/**)Double-slash anchor for network-style roots where supported by the host.
Citations
WebFetch(domain:github.com)Domain-scoped network access rule for WebFetch.
Citations
mcp__github__create_issueMCP tool permission pattern for server and tool names.
Citations
Agent(Review)Agent-scoped pattern for named subagents.
Citations
format-on-write-prettier
Run project formatting after file write/edit tools complete.
npx prettier --write "$CLAUDE_FILE_PATH"Keep command hooks deterministic and repository-local; review before enabling on large files.
Citations
lint-after-write
Surface lint failures quickly after code changes.
npm run lint -- --fix=falsePrefer fast linters here; long suites should run manually or in CI.
Citations
secret-scan-before-bash
Add a local safety check before shell commands execute.
node scripts/check-command-for-secrets.mjsExample command is a placeholder; wire it to a reviewed local script before use.
Citations
notify-on-stop
Emit a lightweight notification for long-running sessions.
printf "Claude Code session stopped\n"Replace printf with your OS notifier or chat webhook only after reviewing privacy impact.
Citations
capture-user-prompt-audit
Record prompt metadata for internal process audits without storing prompt text.
node scripts/audit-prompt-metadata.mjsDo not log raw prompts or secrets; keep audit payloads to counts and enums.
Citations
env-check-session-start
Warn early when project prerequisites are missing.
node scripts/check-claude-env.mjsKeep startup hooks fast so opening Claude Code stays responsive.
Citations
#1 · managed
managed-settings.jsonOrganization policy; cannot be overridden by lower levels.
Citations
#2 · cli
--settings / --permission-mode / --add-dirTemporary command-line overrides for one session.
Citations
#3 · local
.claude/settings.local.jsonPersonal project-local overrides; normally gitignored.
Citations
#4 · project
.claude/settings.jsonShared project settings that can be committed for a team.
Citations
#5 · user
~/.claude/settings.jsonUser-wide defaults; lowest precedence among persisted settings files.
Citations