Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

settings-configuration

БесплатноБез исполняемых скриптовНе проверен

Claude Code settings precedence and permission rules: allow/ask/deny, modes, Bash wildcards. Use when writing permissions or a setting won't apply.

laurigatesот laurigates★ 61 звезда на GitHub

Об этом скилле

Claude Code Settings Configuration

When to Use This Skill

Use this skill when... Use something else when...
Writing allow / ask / deny rules or choosing a scope for a key Auditing or hardening an existing .claude/settings.json (configure-plugin:claude-security-settings)
A setting or rule does not apply, or a command still prompts Running every environment check at once (health-plugin:health-check)
Picking a permission mode or defaultMode Configuring hooks (hooks-plugin:hooks-configuration)
Writing a skill's allowed-tools Adding or fixing MCP servers (agent-patterns-plugin:mcp-management, configure-plugin:configure-mcp)
Plugin registry or install-scope problems (health-plugin:plugin-registry)

Settings Sources and Precedence

Highest precedence first; a key at a higher level overrides the same key lower down:

# Level Where
1 Managed Server-managed settings (claude.ai admin console), MDM/OS policy, or managed-settings.json (+ optional managed-settings.d/) in /Library/Application Support/ClaudeCode/ (macOS), /etc/claude-code/ (Linux, WSL), C:\Program Files\ClaudeCode\ (Windows)
2 Command line claude --settings <file-or-json>, for that session only
3 Project local .claude/settings.local.json (personal, this project)
4 Shared project .claude/settings.json (committed for the team)
5 User ~/.claude/settings.json (every project on this machine)
  • Lists merge across levels. permissions.allow, ask and deny combine instead of replacing each other (a few model keys such as fallbackModel and availableModels have their own rules). Scalar keys take the highest level's value.
  • Nothing overrides a managed key, including --settings. A few security keys honor a stricter value from a lower level (for example permissions.blockReadsOutsideWorkingDirectories: true from any scope).
  • Environment variables are not a level; each variable/key pair has its own winner.
  • Project allow rules and additionalDirectories wait for workspace trust; deny and ask rules apply at once. An untracked local file applies without its own trust prompt once the folder or a parent folder is trusted (or in -p); in your home directory it applies at once.
  • permissions.defaultMode values auto and bypassPermissions take effect only from user or managed settings (or --permission-mode), never from project or local files.
  • When Claude Code writes .claude/settings.local.json (a "Yes, and don't ask again" answer), it adds the file to your global git excludes. A hand-made file needs a .gitignore entry.

Permission Rules

{
  "permissions": {
    "allow": ["Bash(npm run test *)", "Bash(git commit *)"],
    "ask":   ["Bash(git push *)"],
    "deny":  ["Read(./.env)", "Read(./.env.*)", "Bash(rm -rf *)"]
  }
}
  • Evaluation order is deny, then ask, then allow; the first match wins and specificity does not change the order. An allow rule cannot carve an exception out of a deny, and a matching ask rule prompts even when a narrower allow also matches.
  • A deny from any scope blocks an allow from any other scope.
  • A bare tool name in deny ("Bash", or "Bash(*)") removes the tool from Claude's context; a scoped rule (Bash(rm *)) blocks only matching calls.

Bash rules

Rule Matches Does not match
Bash(npm run build) exactly npm run build npm run build --watch
Bash(npm run *) npm run build, bare npm run npm install
Bash(ls *) ls, ls -la lsof (the space is part of the rule)
Bash(ls*) ls -la, lsof
Bash(git * main) git merge main, git push origin main, git -c <opt> diff main git log
  • * matches any text, including spaces, so put it after the subcommand (Bash(git log *)). A trailing :* equals a trailing *, and is recognized only at the end.
  • Compound commands are split on &&, ||, ;, |, |&, & and newlines. Every subcommand must be allowed (by an allow rule or as a built-in read-only command) for the whole command to run without a prompt. A deny or ask rule fires when any subcommand matches, including inside a subshell, $(…) or a loop body.
  • timeout, time, nice, nohup, stdbuf and flag-less xargs are stripped before matching; runners (npx, mise exec, docker exec) are not, so write Bash(devbox run npm test), not Bash(devbox run *).
  • Prefix rules never auto-approve watch/setsid/flock or find -exec/-delete.
  • Rules match command text: /usr/bin/curl or sh -c 'curl …' escape Bash(curl *). The sandbox is the enforced boundary.

Read and Edit rules

Path patterns use gitignore syntax. //path is absolute, ~/path is home-relative, /path anchors at the settings source (the pr

Полный SKILL.md на GitHub

Установить settings-configuration в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash(jq *)
Bash(claude auto-mode *)
Bash(git check-ignore *)
Bash(git ls-files *)
Read
Write
Edit
Glob
Grep

Вложенные файлы

REFERENCE.md

FAQ

Что делает скилл settings-configuration?

Claude Code settings precedence and permission rules: allow/ask/deny, modes, Bash wildcards. Use when writing permissions or a setting won't apply.

Как установить скилл settings-configuration?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл settings-configuration запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить settings-configuration с