Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By bengousv1.1.5MITIn 1 marketplace
Keep Claude Code settings in a commented __settings.jsonc file that auto-syncs to settings.json via git hooks or chezmoi. Optional AI error explanations use the Claude Code CLI.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
jsonc, settings-sync, git-hooks, lefthook, husky, chezmoi, json-schema, claude-settings ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Manage Claude Code settings with JSONC support - add comments to your config files.
Claude Code's settings.json is strict JSON - no comments allowed. This plugin lets you:
__settings.jsonc as your source of truth (with // and /* */ comments)settings.json via git hooks or chezmoisettings.json/settings-setup
The wizard will:
This plugin uses a hybrid approach:
settings-manager script handles file creation based on explicit flagsThis enables support for any setup: project repos, chezmoi dotfiles, stow dotfiles, or custom configurations.
When validation fails, the plugin can spawn headless Claude to explain the error:
Validation errors:
- Unknown hook event: PreToolCall
┌─ AI Analysis ─────────────────────────────────────┐
│ The hook event "PreToolCall" is invalid. Claude │
│ Code uses "PreToolUse" not "PreToolCall". │
│ │
│ Fix line 12: │
│ "PreToolUse": [ // was: "PreToolCall" │
└───────────────────────────────────────────────────┘
AI explanation is enabled automatically in generated hooks. You can also use it manually:
# Via flag
settings-manager validate --source .claude/__settings.jsonc --ai-explain
# Via environment variable
SETTINGS_AI_EXPLAIN=1 settings-manager validate --source .claude/__settings.jsonc
| Type | Source | Target | Trigger |
|---|---|---|---|
| Regular project | .claude/__settings.jsonc | .claude/settings.json | Git pre-commit hook |
| Chezmoi dotfiles | dot_claude/__settings.jsonc | ~/.claude/settings.json | run_onchange_ script |
| Stow dotfiles | <package>/__settings.jsonc | <package>/settings.json | Git pre-commit hook |
| Command | Description |
|---|---|
/settings-setup | Interactive wizard - analyzes repo and sets up workflow |
/settings-schema | Extract and analyze Claude Code settings schema |
For sync, check, and validate operations, use settings-manager directly (see Manual Usage below).
// Claude Code Settings
// See: https://docs.anthropic.com/en/docs/claude-code/settings
{
"$schema": "https://json.schemastore.org/claude-code-settings.json",
// Permissions for tool usage
"permissions": {
"allow": [
"Bash(git:*)", // All git commands
"Read", // Read any file
"WebSearch" // Web searches
],
"deny": [
"Bash(rm -rf:*)" // Never allow recursive delete
]
},
/*
* Custom hooks for workflow enforcement
*/
"hooks": {
"PreToolUse": [
// Add your hooks here
]
}
}
The settings-manager script can be used directly without slash commands.
# Regular project with lefthook
settings-manager setup \
--source .claude/__settings.jsonc \
--target .claude/settings.json \
--hook-system lefthook
# Chezmoi dotfiles
settings-manager setup \
--source dot_claude/__settings.jsonc \
--target dot_claude/settings.json \
--hook-system chezmoi \
--install-global
# Stow dotfiles
settings-manager setup \
--source claude/__settings.jsonc \
--target claude/settings.json \
--hook-system lefthook \
--scripts-path claude/scripts
# No hooks (manual sync only)
settings-manager setup \
--source .claude/__settings.jsonc \
--target .claude/settings.json \
--hook-system none
settings-manager sync \
--source .claude/__settings.jsonc \
--target .claude/settings.json
settings-manager check \
--source .claude/__settings.jsonc \
--target .claude/settings.json
# Basic validation
settings-manager validate \
--source .claude/__settings.jsonc
# With AI error explanation
settings-manager validate \
--source .claude/__settings.jsonc \
--ai-explain
Extract schema definitions from Claude Code's npm package:
# Extract latest version
settings-manager schema-extract
# Extract specific version
settings-manager schema-extract --version 2.0.62
# Output to specific directory
settings-manager schema-extract --output-dir docs/schema/
# Output format: json, md, or both (default)
settings-manager schema-extract --format md
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub bengous/claude-code-plugins --plugin claude-settings-managerPlugins from other owners that cover similar ground