/solo-skills:claude-code-configfrom solo-skills
Configure Claude Code itself — settings-file precedence, permissions, hooks, env vars, and MCP registration, closed by a take-effect check. Use for "change a setting", "allow/deny a command", "add or move a permission rule", "set up a hook", "run something automatically whenever X happens", "always do Y every time", "add an environment variable", "register an MCP server", or "why isn't my setting taking effect".
Ships in solo-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Configuring Claude Code means shaping how the harness itself behaves through its JSON settings files and the surfaces they govern: what the agent is allowed to do (permissions), what runs automatically on harness events (hooks), the environment every session sees (env), and which external tool servers are wired in (MCP). Whether you are standing up a configuration from scratch or changing one existing setting, the job is the same shape: put the right change in the right file at the narrowest scope that works, keep the JSON valid, and verify it actually took effect.
Answer from this skill's reference content, not from a half-remembered key name. Inventing a settings key that does not exist produces a file the harness silently ignores.
Every configuration request lands on one of these surfaces. Find the row, read the reference.
| The request is to… | Surface | Read |
|---|---|---|
| Allow/deny/ask a tool or command; move a rule between scopes; tighten an over-broad rule | Permissions | references/permissions.md |
| Run something automatically whenever an event happens ("always", "every time", "whenever X") | Hooks | references/hooks.md |
| Add an environment variable, or a change isn't taking effect | Env / verification | references/settings-files.md + references/verification.md |
| Register / enable / disable an MCP server | MCP | references/settings-files.md (MCP section) |
| Change an existing setting, pick which file a change belongs in, or see the full settings-key catalog | Settings files | references/settings-files.md |
| Confirm an edit took effect, or debug a setting that "did nothing" | Verification | references/verification.md |
| See a copy-pasteable, valid example of any of the above | Examples | references/examples/ + assets/example-hook/ |
Every surface is expressed in one of the JSON settings files, and four files can set the same key
— the higher one wins. Full detail and the key catalog are in references/settings-files.md — the
summary:
| # | File | Scope | Committed? | Put here |
|---|---|---|---|---|
| 1 | Managed policy (admin-installed, system path) | Organization | n/a | Nothing you author — it overrides everything below |
| 2 | .claude/settings.local.json | This project, this machine | No (auto-gitignored) | Machine-local + secret-adjacent settings, personal experiments |
| 3 | .claude/settings.json | This project, shared | Yes | Team-shared project rules, project hooks, project env |
| 4 | ~/.claude/settings.json | You, all projects | n/a (user home) | Your personal defaults across every project |
(Command-line flags sit between managed policy and the project-local file; they are per-invocation, not a file you edit.)
Which file is the first real decision. Narrowest scope that works: a rule only this
project needs goes in the project file, not your user file; anything secret or machine-specific
goes in settings.local.json (never in the committed settings.json); a preference you want
everywhere goes in your user file.
These bind every configuration change, on every surface:
settings.json.references/hooks.md.hook.py) plus its config; settings reference the script by path. Never paste a
multi-line shell one-liner into a hook's command string — that is unversioned,
unreviewable, and a quoting minefield. This is the ratified layout; see references/hooks.md
and the working template in assets/example-hook/.python3 -m json.tool < FILE (or jq . FILE) and confirm it parses before you're done.references/verification.md.Each surface has a short orientation here and full detail in its reference.
The permissions key decides what the agent may do without asking (allow), what it must ask
about (ask), and what it may never do (deny); deny wins, then ask, then allow, and
unmatched calls fall through to defaultMode. The governing rule is the narrowest specifier
that works (Bash(npm run test:*) over Bash(*) over a bare Bash), in the most local file
that covers the need. Encode dangerous cases as deny — they cannot be prompted past. Full
grammar, evaluation order, default modes, and how to move a rule between scopes:
references/permissions.md.
A hook is a script the harness runs automatically when a named event fires — the only
mechanism that can keep an "always / every time / whenever X" promise, because the harness
executes it deterministically while instructions and memory are merely read. The ratified
layout is a directory holding a hook.py (Python 3 standard library only, fails open) plus a
config.json; the settings hooks block references the script by path through a root variable
($CLAUDE_PROJECT_DIR or the plugin root), never embedded logic. A working template ships at
assets/example-hook/. Events, matchers, the script contract, the executable-bit failure mode, and
wiring: references/hooks.md.
env is a flat object of string-valued variables applied to every session within the file's
scope (and to the shells the agent spawns) — use it for build/runtime flags a project needs.
env requires a fresh session: variables are read once at startup, so an edit does not reach
the running session. Never put a real secret value in a committed file — reference an
externally-provided variable (${VAR}) instead of pasting the literal. See
references/settings-files.md (env section) and references/examples/env.settings.json.
MCP servers are not declared inside settings.json. A project's servers go in a .mcp.json
file at the project root (shareable, committed); settings only govern which of them are enabled,
via enableAllProjectMcpServers or the enabledMcpjsonServers / disabledMcpjsonServers
allow/deny lists by server name. Choose a server's scope (local / project / user) the same way you
choose a settings file — narrowest that works — and keep secrets as ${VAR} references, never
committed literals. Verify with /mcp. See references/settings-files.md (MCP section) and
references/examples/mcp.mcp.json.
Changing one existing setting is a single workflow within this skill, and the same steps stand up a new configuration:
python3 -m json.tool < .claude/settings.json. Fix any parse error now./permissions, /hooks, /mcp, or by
attempting the gated action).An edit that saves is not an edit that applied. Confirm both JSON validity and take-effect after
every change — full detail in references/verification.md; the take-effect summary:
| Change | Takes effect |
|---|---|
| Permission allow/deny/ask rule | Next tool call — usually immediately, no restart |
env variable | Fresh session — env is read once at startup |
| Hook added / edited / removed | Fresh session — the hook set is snapshotted at startup (a deliberate safety measure; a mid-session edit is intentionally not live) |
| MCP server registration | Reconnect with /mcp, or a fresh session |
model, statusLine, and most other keys | Next session; some apply live |
When in doubt, start a fresh session and re-verify — it is the one reliably clean state.
| Symptom | Cause | Fix |
|---|---|---|
| "My setting does nothing" | JSON syntax error → whole file silently ignored | Validate with json.tool/jq every save |
| Agent still can't (or can too easily) do a thing | Rule in the wrong scope, or a higher file overrides it | Check precedence; move the rule to the right file |
| Over-permissioned | Rule too broad (e.g. bare Bash or Bash(*)) | Narrowest specifier that works (Bash(npm run test:*)) |
| Hook "installed" but never fires | Wrong event/matcher, or script not executable when invoked directly | Match the event to the trigger; chmod +x or invoke via python3 (see hooks ref) |
| Secret leaked in git | Machine-local/secret setting written to committed settings.json | Move it to .claude/settings.local.json |
| "Always do Y" ignored intermittently | Encoded as an instruction/memory, not a hook | Convert to a hook |
${VAR}), and keep the real value out of
the repo.README.md (opens in a new tab)assets/example-hook/config.json (opens in a new tab)assets/example-hook/hook.py (opens in a new tab)references/examples/env.settings.json (opens in a new tab)references/examples/hook.settings.json (opens in a new tab)references/examples/mcp.mcp.json (opens in a new tab)references/examples/permissions.settings.json (opens in a new tab)references/hooks.md (opens in a new tab)references/permissions.md (opens in a new tab)references/settings-files.md (opens in a new tab)references/verification.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub hsb3/dotfiles-agents --plugin solo-skills13 skills in this plugin
/claude-code-expertiseExpert map of Claude Code's extension surfaces for authoring and debugging extenders — skills, subagents, hooks, commands, plugins, marketplaces, MCP servers, and settings/permissions contracts. Use to decide which surface fits a need, to look up a surface's frontmatter or config contract, to author or debug a skill, subagent, hook, command, or plugin, or to answer how any Claude Code extension surface works. Not for changing settings, permissions, or hook wiring in a project - that is claude-code-config./datavizDesign data visualizations - charts, graphs, plots, and dashboards - that are correct, legible, and honest, in any medium. Consult this BEFORE writing any chart, graph, plot, or dashboard code, whatever the library (matplotlib, plotly, d3, Recharts, inline SVG) or output (static image, notebook, web app, deck). Use whenever a task involves picking a chart type, a color palette for data, dashboard or KPI-tile layout, axis and label formatting, or making a visualization colorblind-safe and light/dark-ready. Covers the data-shape to mark-type heuristic, chart anti-patterns to refuse (pie overuse, dual axes, truncated bar axes, rainbow scales, 3D), a brand-neutral colorblind-safe palette you can rebrand, composition, interaction and static degradation, and a final validation checklist. Data charts only - structural diagrams and deck theming are out of scope.