Use this skill to configure the Claude Code harness via settings.json. Automated behaviors ("from now on when X", "each time X", "whenever X", "before/after X") require hooks configured in settings.json - the harness executes these, not Claude, so memory/preferences cannot fulfill them. Also use for: permissions ("allow X", "add permission", "move permission to"), env vars ("set X=Y"), hook troubleshooting, or any changes to settings.json/settings.local.json files. Examples: "allow npm commands", "add bq permission to global settings", "move permission to user settings", "set DEBUG=true", "when claude stops show X". For simple settings like theme/model, suggest the /config command.
Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.
Quelldateien prüfen
Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Ein direkter Befehl überspringt den Prüf-Prompt. Prüfen Sie die Quelle, bevor Sie ihn ausführen.
Use this skill to configure the Claude Code harness via settings.json. Automated behaviors ("from now on when X", "each time X", "whenever X", "before/after X") require hooks configured in settings.json - the harness executes these, not Claude, so memory/preferences cannot fulfill them. Also use for: permissions ("allow X", "add permission", "move permission to"), env vars ("set X=Y"), hook troubleshooting, or any changes to settings.json/settings.local.json files. Examples: "allow npm commands", "add bq permission to global settings", "move permission to user settings", "set DEBUG=true", "when claude stops show X". For simple settings like theme/model, suggest the /config command.
Update Config Skill
Modify Claude Code configuration by updating settings.json files.
When Hooks Are Required (Not Memory)
If the user wants something to happen automatically in response to an EVENT, they need a hook configured in settings.json. Memory/preferences cannot trigger automated actions.
These require hooks:
"Before compacting, ask me what to preserve" → PreCompact hook
"After writing files, run prettier" → PostToolUse hook with Write|Edit matcher
"When I run bash commands, log them" → PreToolUse hook with Bash matcher
"Always run tests after code changes" → PostToolUse hook
{"systemMessage":"Warning shown to user in UI","continue":false,"stopReason":"Message shown when blocking","suppressOutput":false,"decision":"block","reason":"Explanation for decision","hookSpecificOutput":{"hookEventName":"PostToolUse","additionalContext":"Context injected back to model"}}
Fields:
systemMessage - Display a message to the user (all hooks)
continue - Set to false to block/stop (default: true)
stopReason - Message shown when continue is false
suppressOutput - Hide stdout from transcript (default: false)
decision - "block" for PostToolUse/Stop/UserPromptSubmit hooks (deprecated for PreToolUse, use hookSpecificOutput.permissionDecision instead)
reason - Explanation for decision
hookSpecificOutput - Event-specific output (must include hookEventName):
additionalContext - Text injected into model context
permissionDecision - "allow", "deny", or "ask" (PreToolUse only)
permissionDecisionReason - Reason for the permission decision (PreToolUse only)
Given an event, matcher, target file, and desired behavior, follow this flow. Each step catches a different failure class — a hook that silently does nothing is worse than no hook.
Dedup check. Read the target file. If a hook already exists on the same event+matcher, show the existing command and ask: keep it, replace it, or add alongside.
Construct the command for THIS project — don't assume. The hook receives JSON on stdin. Build a command that:
Extracts any needed payload safely — use jq -r into a quoted variable or { read -r f; ... "$f"; }, NOT unquoted | xargs (splits on spaces)
Invokes the underlying tool the way this project runs it (npx/bunx/yarn/pnpm? Makefile target? globally-installed?)
Skips inputs the tool doesn't handle (formatters often have --ignore-unknown; if not, guard by extension)
Stays RAW for now — no || true, no stderr suppression. You'll wrap it after the pipe-test passes.
Pipe-test the raw command. Synthesize the stdin payload the hook will receive and pipe it directly:
Pre|PostToolUse on Write|Edit: echo '{"tool_name":"Edit","tool_input":{"file_path":"<a real file from this repo>"}}' | <cmd>
Pre|PostToolUse on Bash: echo '{"tool_name":"Bash","tool_input":{"command":"ls"}}' | <cmd>
Stop/UserPromptSubmit/SessionStart: most commands don't read stdin, so echo '{}' | <cmd> suffices
Check exit code AND side effect (file actually formatted, test actually ran). If it fails you get a real error — fix (wrong package manager? tool not installed? jq path wrong?) and retest. Once it works, wrap with 2>/dev/null || true (unless the user wants a blocking check).
Write the JSON. Merge into the target file (schema shape in the "Hook Structure" section above). If this creates .claude/settings.local.json for the first time, add it to .gitignore — the Write tool doesn't auto-gitignore it.
Exit 0 + prints your command = correct. Exit 4 = matcher doesn't match. Exit 5 = malformed JSON or wrong nesting. A broken settings.json silently disables ALL settings from that file — fix any pre-existing malformation too.
Example Workflows
Adding a Hook
User: "Format my code after Claude writes it"
Clarify: Which formatter? (prettier, gofmt, etc.)
Read: .claude/settings.json (or create if missing)
Decide: User settings (global) or project settings?
Read: Target file
Merge: Add to env object
{"env":{"DEBUG":"true"}}
Common Mistakes to Avoid
Replacing instead of merging - Always preserve existing settings
Wrong file - Ask user if scope is unclear
Invalid JSON - Validate syntax after changes
Forgetting to read first - Always read before write
Troubleshooting Hooks
If a hook isn't running:
Check the settings file - Read ~/.claude/settings.json or .claude/settings.json
Verify JSON syntax - Invalid JSON silently fails
Check the matcher - Does it match the tool name? (e.g., "Bash", "Write", "Edit")
Check hook type - Is it "command", "prompt", or "agent"?
Test the command - Run the hook command manually to see if it works
Use --debug - Run claude --debug to see hook execution logs
Full Settings JSON Schema
IMPORTANT: Do not update the env unless explicitly instructed to do so.
{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"$schema":{"description":"JSON Schema reference for Claude Code settings","type":"string"},"apiKeyHelper":{"description":"Path to a script that outputs authentication values","type":"string"},"proxyAuthHelper":{"description":"Shell command that outputs a Proxy-Authorization header value (EAP)","type":"string"},"awsCredentialExport":{"description":"Path to a script that exports AWS credentials"
Diese SKILL.md ist sehr gross, daher zeigt SkillsMP hier nur den ersten Abschnitt.Auf GitHub ansehen
Prove the hook fires — only for Pre|PostToolUse on a matcher you can trigger in-turn (Write|Edit via Edit, Bash via Bash). Stop/UserPromptSubmit/SessionStart fire outside this turn — skip to step 7.
For a formatter on PostToolUse/Write|Edit: introduce a detectable violation via Edit (two consecutive blank lines, bad indentation, missing semicolon — something this formatter corrects; NOT trailing whitespace, Edit strips that before writing), re-read, confirm the hook fixed it. For anything else: temporarily prefix the command in settings.json with echo "$(date) hook fired" >> /tmp/claude-hook-check.txt; , trigger the matching tool (Edit for Write|Edit, a harmless true for Bash), read the sentinel file.
Always clean up — revert the violation, strip the sentinel prefix — whether the proof passed or failed.
If proof fails but pipe-test passed and jq -e passed: the settings watcher isn't watching .claude/ — it only watches directories that had a settings file when this session started. The hook is written correctly. Tell the user to open /hooks once (reloads config) or restart — you can't do this yourself; /hooks is a user UI menu and opening it ends this turn.
Handoff. Tell the user the hook is live (or needs /hooks/restart per the watcher caveat). Point them at /hooks to review, edit, or disable it later. The UI only shows "Ran N hooks" if a hook errors or is slow — silent success is invisible by design.
,
"type"
:
"string"
}
,
"awsAuthRefresh"
:
{
"description"
:
"Path to a script that refreshes AWS authentication"
,
"type"
:
"string"
}
,
"gcpAuthRefresh"
:
{
"description"
:
"Command to refresh GCP authentication (e.g., gcloud auth application-default login)"
,
"type"
:
"string"
}
,
"policyHelper"
:
{
"description"
:
"Executable that computes managed settings at startup. Honored only from admin-controlled policy sources."
,
"type"
:
"object"
,
"properties"
:
{
"path"
:
{
"description"
:
"Absolute path to the helper executable"
,
"type"
:
"string"
}
,
"timeoutMs"
:
{
"type"
:
"integer"
,
"minimum"
:
1000
,
"maximum"
:
9007199254740991
}
,
"refreshIntervalMs"
:
{
"anyOf"
:
[
{
"type"
:
"number"
,
"const"
:
0
}
,
{
"type"
:
"integer"
,
"minimum"
:
60000
,
"maximum"
:
9007199254740991
}
]
}
}
,
"required"
:
[
"path"
]
,
"additionalProperties"
:
false
}
,
"fileSuggestion"
:
{
"description"
:
"Custom file suggestion configuration for @ mentions"
,
"type"
:
"object"
,
"properties"
:
{
"type"
:
{
"type"
:
"string"
,
"const"
:
"command"
}
,
"command"
:
{
"type"
:
"string"
}
}
,
"required"
:
[
"type"
,
"command"
]
,
"additionalProperties"
:
false
}
,
"respectGitignore"
:
{
"description"
:
"Whether file picker should respect .gitignore files (default: true). Note: .ignore files are always respected."
,
"type"
:
"boolean"
}
,
"breakReminder"
:
{
"description"
:
"@internal Opt-in break reminder. When enabled, shows a dismissible nudge after sustained continuous use. Never blocks — just a friendly heads-up."
,
"type"
:
"object"
,
"properties"
:
{
"enabled"
:
{
"description"
:
"Show a friendly nudge after sustained continuous use (default false). Must be true for the reminder to fire."
,
"type"
:
"boolean"
}
,
"intervalMinutes"
:
{
"description"
:
"Minutes of continuous use before the reminder fires (default 120). Re-fires every interval until you take a break."
,
"type"
:
"integer"
,
"exclusiveMinimum"
:
0
,
"maximum"
:
9007199254740991
}
,
"breakThresholdMinutes"
:
{
"description"
:
"Minutes of inactivity that count as a break and reset the timer (default 15)"
,
"type"
:
"integer"
,
"exclusiveMinimum"
:
0
,
"maximum"
:
9007199254740991
}
,
"message"
:
{
"description"
:
"Custom reminder text. Leave unset for a rotating set of friendly nudges."
,
"type"
:
"string"
}
}
,
"additionalProperties"
:
false
}
,
"quietHours"
:
{
"description"
:
"@internal Opt-in quiet hours. When enabled, shows a single soft nudge per session while inside the configured local-time window. Never blocks."
,
"type"
:
"object"
,
"properties"
:
{
"enabled"
:
{
"description"
:
"Show a one-time nudge when you start or keep using the CLI inside your quiet-hours window (default false)."
,
"type"
:
"boolean"
}
,
"start"
:
{
"description"
:
"Start of the quiet-hours window, 24-hour local time \"HH:MM\"."
,
"type"
:
"string"
,
"pattern"
:
"^([01]?\\d|2[0-3]):[0-5]\\d$"
}
,
"end"
:
{
"description"
:
"End of the quiet-hours window, 24-hour local time \"HH:MM\". May be earlier than start for an overnight range."
,
"type"
:
"string"
,
"pattern"
:
"^([01]?\\d|2[0-3]):[0-5]\\d$"
}
}
,
"additionalProperties"
:
false
}
,
"cleanupPeriodDays"
:
{
"description"
:
"Number of days to retain chat transcripts before automatic cleanup (default: 30). Minimum 1. Use a large value for long retention; use --no-session-persistence to disable transcript writes entirely."
,
"type"
:
"integer"
,
"exclusiveMinimum"
:
0
,
"maximum"
:
9007199254740991
}
,
"skillListingMaxDescChars"
:
{
"description"
:
"Per-skill description character cap in the skill listing sent to Claude (default: 1536). Descriptions longer than this are truncated. Raise to opt in to higher per-turn context cost."
,
"type"
:
"integer"
,
"exclusiveMinimum"
:
0
,
"maximum"
:
9007199254740991
}
,
"skillListingBudgetFraction"
:
{
"description"
:
"Fraction of the context window (in characters) reserved for the skill listing sent to Claude (default: 0.01 = 1%). When the listing exceeds this, descriptions are shortened to fit. Raise to opt in to higher per-turn context cost."
,
"type"
:
"number"
,
"exclusiveMinimum"
:
0
,
"maximum"
:
1
}
,
"wslInheritsWindowsSettings"
:
{
"description"
:
"When set to true in either admin-only Windows source — the HKLM SOFTWARE/Policies/ClaudeCode registry key or C:/Program Files/ClaudeCode/managed-settings.json — WSL reads managed settings from the full Windows policy chain (HKLM, C:/Program Files/ClaudeCode via DrvFs, HKCU) in addition to /etc/claude-code. Windows sources take priority. The flag is also required in HKCU itself for HKCU policy to apply on WSL (double opt-in: admin enables the chain, user confirms HKCU). On native Windows the flag has no effect."
,
"type"
:
"boolean"
}
,
"env"
:
{
"description"
:
"Environment variables to set for Claude Code sessions"
,
"type"
:
"object"
,
"propertyNames"
:
{
"type"
:
"string"
}
,
"additionalProperties"
:
{
"type"
:
"string"
}
}
,
"attribution"
:
{
"description"
:
"Customize attribution text for commits and PRs. Each field defaults to the standard Claude Code attribution if not set."
,
"type"
:
"object"
,
"properties"
:
{
"commit"
:
{
"description"
:
"Attribution text for git commits, including any trailers. Empty string hides attribution."
,
"type"
:
"string"
}
,
"pr"
:
{
"description"
:
"Attribution text for pull request descriptions. Empty string hides attribution."
,
"type"
:
"string"
}
}
,
"additionalProperties"
:
false
}
,
"includeCoAuthoredBy"
:
{
"description"
:
"Deprecated: Use attribution instead. Whether to include Claude's co-authored by attribution in commits and PRs (defaults to true)"
,
"type"
:
"boolean"
}
,
"includeGitInstructions"
:
{
"description"
:
"Include built-in commit and PR workflow instructions in Claude's system prompt (default: true)"
,
"type"
:
"boolean"
}
,
"permissions"
:
{
"description"
:
"Tool usage permissions configuration"
,
"type"
:
"object"
,
"properties"
:
{
"allow"
:
{
"description"
:
"List of permission rules for allowed operations"
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
,
"deny"
:
{
"description"
:
"List of permission rules for denied operations"
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
,
"ask"
:
{
"description"
:
"List of permission rules that should always prompt for confirmation"
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
,
"defaultMode"
:
{
"description"
:
"Default permission mode when Claude Code needs access"
,
"type"
:
"string"
,
"enum"
:
[
"acceptEdits"
,
"auto"
,
"bypassPermissions"
,
"default"
,
"dontAsk"
,
"plan"
]
}
,
"disableBypassPermissionsMode"
:
{
"description"
:
"Disable the ability to bypass permission prompts"
,
"type"
:
"string"
,
"enum"
:
[
"disable"
]
}
,
"disableAutoMode"
:
{
"description"
:
"Disable auto mode"
,
"type"
:
"string"
,
"enum"
:
[
"disable"
]
}
,
"additionalDirectories"
:
{
"description"
:
"Additional directories to include in the permission scope"
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
}
,
"additionalProperties"
:
{
}
}
,
"model"
:
{
"description"
:
"Override the default model used by Claude Code"
,
"type"
:
"string"
}
,
"fallbackModel"
:
{
"description"
:
"Fallback model(s) tried in order when the primary model is overloaded or unavailable. Each element accepts a model name or alias; \"default\" expands to the default model. CLI --fallback-model takes precedence."
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
,
"availableModels"
:
{
"description"
:
"Allowlist of models that users can select. Accepts family aliases (\"opus\" allows any opus version), version prefixes (\"opus-4-5\" allows only that version), and full model IDs. If undefined, all models are available. If empty array, only the default model is available. Typically set in managed settings by enterprise administrators."
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
,
"enforceAvailableModels"
:
{
"description"
:
"When true and availableModels is a non-empty array, the Default model selection is also constrained: if the default model for the user tier is not in availableModels, Default resolves to the first allowed availableModels entry instead. Has no effect when availableModels is unset or an empty array. Typically set in managed settings by enterprise administrators."
,
"type"
:
"boolean"
}
,
"modelOverrides"
:
{
"description"
:
"Override mapping from Anthropic model ID (e.g. \"claude-opus-4-6\") to provider-specific model ID (e.g. a Bedrock inference profile ARN). Typically set in managed settings by enterprise administrators."
,
"type"
:
"object"
,
"propertyNames"
:
{
"type"
:
"string"
}
,
"additionalProperties"
:
{
"type"
:
"string"
}
}
,
"enableAllProjectMcpServers"
:
{
"description"
:
"Whether to automatically approve all MCP servers in the project"
,
"type"
:
"boolean"
}
,
"enabledMcpjsonServers"
:
{
"description"
:
"List of approved MCP servers from .mcp.json"
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
,
"disabledMcpjsonServers"
:
{
"description"
:
"List of rejected MCP servers from .mcp.json"
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
,
"skillOverrides"
:
{
"description"
:
"Per-skill listing overrides keyed by skill name. \"name-only\" lists the skill without its description; \"user-invocable-only\" hides it from the model but keeps /name; \"off\" hides it from both. Absent = on."
,
"type"
:
"object"
,
"propertyNames"
:
{
"type"
:
"string"
}
,
"additionalProperties"
:
{
"type"
:
"string"
,
"enum"
:
[
"on"
,
"name-only"
,
"user-invocable-only"
,
"off"
]
}
}
,
"disableBundledSkills"
:
{
"description"
:
"Disable the skills and workflows that ship with Claude Code: bundled skills and workflows are removed entirely; built-in slash commands stay typable but are hidden from the model. Plugins, .claude/skills/, and .claude/commands/ are unaffected. Equivalent to CLAUDE_CODE_DISABLE_BUNDLED_SKILLS=1."
,
"type"
:
"boolean"
}
,
"allowedMcpServers"
:
{
"description"
:
"Enterprise allowlist of MCP servers that can be used. Applies to all scopes including enterprise servers from managed-mcp.json. If undefined, all servers are allowed. If empty array, no servers are allowed. Denylist takes precedence - if a server is on both lists, it is denied."
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"object"
,
"properties"
:
{
"serverName"
:
{
"description"
:
"Name of the MCP server that users are allowed to configure"
,
"type"
:
"string"
,
"pattern"
:
"^[a-zA-Z0-9_-]+$"
}
,
"serverCommand"
:
{
"description"
:
"Command array [command, ...args] to match exactly for allowed stdio servers"
,
"minItems"
:
1
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
,
"serverUrl"
:
{
"description"
:
"URL pattern with wildcard support (e.g., \"https://*.example.com/*\") for allowed remote MCP servers"
,
"type"
:
"string"
}
}
,
"additionalProperties"
:
false
}
}
,
"deniedMcpServers"
:
{
"description"
:
"Enterprise denylist of MCP servers that are explicitly blocked. If a server is on the denylist, it will be blocked across all scopes including enterprise. Denylist takes precedence over allowlist - if a server is on both lists, it is denied."
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"object"
,
"properties"
:
{
"serverName"
:
{
"description"
:
"Name of the MCP server that is explicitly blocked"
,
"type"
:
"string"
,
"pattern"
:
"^[a-zA-Z0-9_-]+$"
}
,
"serverCommand"
:
{
"description"
:
"Command array [command, ...args] to match exactly for blocked stdio servers"
,
"minItems"
:
1
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
,
"serverUrl"
:
{
"description"
:
"URL pattern with wildcard support (e.g., \"https://*.example.com/*\") for blocked remote MCP servers"
,
"type"
:
"string"
}
}
,
"additionalProperties"
:
false
}
}
,
"hooks"
:
{
"description"
:
"Custom commands to run before/after tool executions"
,
"type"
:
"object"
,
"propertyNames"
:
{
"anyOf"
:
[
{
"type"
:
"string"
,
"enum"
:
[
"PreToolUse"
,
"PostToolUse"
,
"PostToolUseFailure"
,
"PostToolBatch"
,
"Notification"
,
"UserPromptSubmit"
,
"UserPromptExpansion"
,
"SessionStart"
,
"SessionEnd"
,
"Stop"
,
"StopFailure"
,
"SubagentStart"
,
"SubagentStop"
,
"PreCompact"
,
"PostCompact"
,
"PermissionRequest"
,
"PermissionDenied"
,
"Setup"
,
"TeammateIdle"
,
"TaskCreated"
,
"TaskCompleted"
,
"Elicitation"
,
"ElicitationResult"
,
"ConfigChange"
,
"WorktreeCreate"
,
"WorktreeRemove"
,
"InstructionsLoaded"
,
"CwdChanged"
,
"FileChanged"
,
"MessageDisplay"
]
}
,
{
"not"
:
{
}
}
]
}
,
"additionalProperties"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"object"
,
"properties"
:
{
"matcher"
:
{
"description"
:
"String pattern to match (e.g. tool names like \"Write\")"
,
"type"
:
"string"
}
,
"hooks"
:
{
"description"
:
"List of hooks to execute when the matcher matches"
,
"type"
:
"array"
,
"items"
:
{
"anyOf"
:
[
{
"type"
:
"object"
,
"properties"
:
{
"type"
:
{
"description"
:
"Shell command hook type"
,
"type"
:
"string"
,
"const"
:
"command"
}
,
"command"
:
{
"description"
:
"Shell command to execute"
,
"type"
:
"string"
}
,
"args"
:
{
"description"
:
"Argument list for exec form. When present, `command` is resolved as an executable and spawned directly with these arguments — no shell. Path placeholders like ${CLAUDE_PLUGIN_ROOT} are substituted per-element as plain strings, so paths with quotes, $, or backticks never reach a shell parser. When absent, `command` runs through a shell (bash on POSIX, PowerShell on Windows without Git Bash)."
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
,
"if"
:
{
"description"
:
"Permission rule syntax to filter when this hook runs (e.g., \"Bash(git *)\"). Only runs if the tool call matches the pattern. Avoids spawning hooks for non-matching commands."
,
"type"
:
"string"
}
,
"shell"
:
{
"description"
:
"Shell interpreter. 'bash' uses your $SHELL (bash/zsh/sh); 'powershell' uses pwsh. Defaults to bash (powershell on Windows without Git Bash)."
,
"type"
:
"string"
,
"enum"
:
[
"bash"
,
"powershell"
]
}
,
"timeout"
:
{
"description"
:
"Timeout in seconds for this specific command"
,
"type"
:
"number"
,
"exclusiveMinimum"
:
0
}
,
"statusMessage"
:
{
"description"
:
"Custom status message to display in spinner while hook runs"
,
"type"
:
"string"
}
,
"once"
:
{
"description"
:
"If true, hook runs once and is removed after execution"
,
"type"
:
"boolean"
}
,
"async"
:
{
"description"
:
"If true, hook runs in background without blocking"
,
"type"
:
"boolean"
}
,
"asyncRewake"
:
{
"description"
:
"If true, hook runs in background and wakes the model on exit code 2 (blocking error). Implies async."
,
"type"
:
"boolean"
}
,
"rewakeMessage"
:
{
"description"
:
"@internal Custom prefix for the system-reminder shown to the model when an asyncRewake hook exits with code 2. The hook output is appended after this prefix."
,
"type"
:
"string"
,
"minLength"
:
1
}
,
"rewakeSummary"
:
{
"description"
:
"@internal One-line summary shown to the user in the terminal when an asyncRewake hook exits with code 2. Defaults to \"Stop hook feedback\"."
,
"type"
:
"string"
,
"minLength"
:
1
}
}
,
"required"
:
[
"type"
,
"command"
]
,
"additionalProperties"
:
false
}
,
{
"type"
:
"object"
,
"properties"
:
{
"type"
:
{
"description"
:
"LLM prompt hook type"
,
"type"
:
"string"
,
"const"
:
"prompt"
}
,
"prompt"
:
{
"description"
:
"Prompt to evaluate with LLM. Use $ARGUMENTS placeholder for hook input JSON."
,
"type"
:
"string"
}
,
"if"
:
{
"description"
:
"Permission rule syntax to filter when this hook runs (e.g., \"Bash(git *)\"). Only runs if the tool call matches the pattern. Avoids spawning hooks for non-matching commands."
,
"type"
:
"string"
}
,
"timeout"
:
{
"description"
:
"Timeout in seconds for this specific prompt evaluation"
,
"type"
:
"number"
,
"exclusiveMinimum"
:
0
}
,
"model"
:
{
"description"
:
"Model to use for this prompt hook (e.g., \"claude-sonnet-4-6\"). If not specified, uses the default small fast model."
,
"type"
:
"string"
}
,
"continueOnBlock"
:
{
"description"
:
"Sets the continue value for the decision:\"block\" produced when ok is false. Default false (turn ends). Whether continue:true lets the turn proceed depends on the event's decision:\"block\" semantics. On PostToolUse, the reason is fed back to Claude and the turn continues."
,
"type"
:
"boolean"
}
,
"statusMessage"
:
{
"description"
:
"Custom status message to display in spinner while hook runs"
,
"type"
:
"string"
}
,
"once"
:
{
"description"
:
"If true, hook runs once and is removed after execution"
,
"type"
:
"boolean"
}
}
,
"required"
:
[
"type"
,
"prompt"
]
,
"additionalProperties"
:
false
}
,
{
"type"
:
"object"
,
"properties"
:
{
"type"
:
{
"description"
:
"Agentic verifier hook type"
,
"type"
:
"string"
,
"const"
:
"agent"
}
,
"prompt"
:
{
"description"
:
"Prompt describing what to verify (e.g. \"Verify that unit tests ran and passed.\"). Use $ARGUMENTS placeholder for hook input JSON."
,
"type"
:
"string"
}
,
"if"
:
{
"description"
:
"Permission rule syntax to filter when this hook runs (e.g., \"Bash(git *)\"). Only runs if the tool call matches the pattern. Avoids spawning hooks for non-matching commands."
,
"type"
:
"string"
}
,
"timeout"
:
{
"description"
:
"Timeout in seconds for agent execution (default 60)"
,
"type"
:
"number"
,
"exclusiveMinimum"
:
0
}
,
"model"
:
{
"description"
:
"Model to use for this agent hook (e.g., \"claude-sonnet-4-6\"). If not specified, uses Haiku."
,
"type"
:
"string"
}
,
"statusMessage"
:
{
"description"
:
"Custom status message to display in spinner while hook runs"
,
"type"
:
"string"
}
,
"once"
:
{
"description"
:
"If true, hook runs once and is removed after execution"
,
"type"
:
"boolean"
}
}
,
"required"
:
[
"type"
,
"prompt"
]
,
"additionalProperties"
:
false
}
,
{
"type"
:
"object"
,
"properties"
:
{
"type"
:
{
"description"
:
"HTTP hook type"
,
"type"
:
"string"
,
"const"
:
"http"
}
,
"url"
:
{
"description"
:
"URL to POST the hook input JSON to"
,
"type"
:
"string"
,
"format"
:
"uri"
}
,
"if"
:
{
"description"
:
"Permission rule syntax to filter when this hook runs (e.g., \"Bash(git *)\"). Only runs if the tool call matches the pattern. Avoids spawning hooks for non-matching commands."
,
"type"
:
"string"
}
,
"timeout"
:
{
"description"
:
"Timeout in seconds for this specific request"
,
"type"
:
"number"
,
"exclusiveMinimum"
:
0
}
,
"headers"
:
{
"description"
:
"Additional headers to include in the request. Values may reference environment variables using $VAR_NAME or ${VAR_NAME} syntax (e.g., \"Authorization\": \"Bearer $MY_TOKEN\"). Only variables listed in allowedEnvVars will be interpolated."
,
"type"
:
"object"
,
"propertyNames"
:
{
"type"
:
"string"
}
,
"additionalProperties"
:
{
"type"
:
"string"
}
}
,
"allowedEnvVars"
:
{
"description"
:
"Explicit list of environment variable names that may be interpolated in header values. Only variables listed here will be resolved; all other $VAR references are left as empty strings. Required for env var interpolation to work."
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
,
"statusMessage"
:
{
"description"
:
"Custom status message to display in spinner while hook runs"
,
"type"
:
"string"
}
,
"once"
:
{
"description"
:
"If true, hook runs once and is removed after execution"
,
"type"
:
"boolean"
}
}
,
"required"
:
[
"type"
,
"url"
]
,
"additionalProperties"
:
false
}
,
{
"type"
:
"object"
,
"properties"
:
{
"type"
:
{
"description"
:
"MCP tool hook type"
,
"type"
:
"string"
,
"const"
:
"mcp_tool"
}
,
"server"
:
{
"description"
:
"Name of an already-configured MCP server to invoke"
,
"type"
:
"string"
}
,
"tool"
:
{
"description"
:
"Name of the tool on that server to call"
,
"type"
:
"string"
}
,
"input"
:
{
"description"
:
"Arguments passed to the MCP tool. String values support ${path} interpolation from the hook input JSON (e.g. \"${tool_input.file_path}\")."
,
"type"
:
"object"
,
"propertyNames"
:
{
"type"
:
"string"
}
,
"additionalProperties"
:
{
}
}
,
"if"
:
{
"description"
:
"Permission rule syntax to filter when this hook runs (e.g., \"Bash(git *)\"). Only runs if the tool call matches the pattern. Avoids spawning hooks for non-matching commands."
,
"type"
:
"string"
}
,
"timeout"
:
{
"description"
:
"Timeout in seconds for this specific tool call"
,
"type"
:
"number"
,
"exclusiveMinimum"
:
0
}
,
"statusMessage"
:
{
"description"
:
"Custom status message to display in spinner while hook runs"
,
"type"
:
"string"
}
,
"once"
:
{
"description"
:
"If true, hook runs once and is removed after execution"
,
"type"
:
"boolean"
}
}
,
"required"
:
[
"type"
,
"server"
,
"tool"
]
,
"additionalProperties"
:
false
}
]
}
}
}
,
"required"
:
[
"hooks"
]
,
"additionalProperties"
:
false
}
}
}
,
"worktree"
:
{
"description"
:
"Git worktree configuration for --worktree flag."
,
"type"
:
"object"
,
"properties"
:
{
"symlinkDirectories"
:
{
"description"
:
"Directories to symlink from main repository to worktrees to avoid disk bloat. Must be explicitly configured - no directories are symlinked by default. Common examples: \"node_modules\", \".cache\", \".bin\""
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
,
"sparsePaths"
:
{
"description"
:
"Directories to include when creating worktrees, via git sparse-checkout (cone mode). Dramatically faster in large monorepos — only the listed paths are written to disk."
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
,
"baseRef"
:
{
"description"
:
"Which ref new worktrees branch from. 'fresh' (default) branches from origin/<default-branch> for a clean tree. 'head' branches from your current local HEAD so unpushed commits and feature-branch state are present. Applies to --worktree, EnterWorktree, and agent isolation."
,
"type"
:
"string"
,
"enum"
:
[
"fresh"
,
"head"
]
}
,
"bgIsolation"
:
{
"description"
:
"Isolation mode for background sessions in this repo. 'worktree' (default) blocks Edit/Write in the main checkout until EnterWorktree is called. 'none' lets background jobs edit the working copy directly."
,
"type"
:
"string"
,
"enum"
:
[
"worktree"
,
"none"
]
}
}
,
"additionalProperties"
:
false
}
,
"disableAllHooks"
:
{
"description"
:
"Disable all hooks and statusLine execution"
,
"type"
:
"boolean"
}
,
"disableAgentView"
:
{
"description"
:
"Disable agent view (`claude agents`, `--bg`, /background, the on-demand daemon). Typically set in managed settings. Equivalent to CLAUDE_CODE_DISABLE_AGENT_VIEW=1."
,
"type"
:
"boolean"
}
,
"disableRemoteControl"
:
{
"description"
:
"Disable Remote Control (claude.ai/code, `claude remote-control`, `--remote-control`/`--rc`, auto-start, and the in-session toggle). Typically set in managed settings."
,
"type"
:
"boolean"
}
,
"disableWorkflows"
:
{
"description"
:
"Disable the Workflows feature (also via CLAUDE_CODE_DISABLE_WORKFLOWS)."
,
"type"
:
"boolean"
}
,
"disableArtifact"
:
{
"description"
:
"Disable the Artifact tool (also via CLAUDE_CODE_DISABLE_ARTIFACT)."
,
"type"
:
"boolean"
}
,
"enableWorkflows"
:
{
"description"
:
"Enable or disable the Workflows feature for this user. Unset = default by plan once the feature is available."
,
"type"
:
"boolean"
}
,
"workflowKeywordTriggerEnabled"
:
{
"description"
:
"Enable the \"ultracode\" keyword trigger: including the keyword in a prompt opts that turn into the Workflow tool. Set to false to disable the trigger. Default: true."
,
"type"
:
"boolean"
}
,
"disableSkillShellExecution"
:
{
"description"
:
"Disable inline shell execution in skills and custom slash commands from user, project, or plugin sources. Commands are replaced with a placeholder instead of being run."
,
"type"
:
"boolean"
}
,
"defaultShell"
:
{
"description"
:
"Default shell for input-box ! commands. Defaults to 'bash' on all platforms (no Windows auto-flip)."
,
"type"
:
"string"
,
"enum"
:
[
"bash"
,
"powershell"
]
}
,
"allowManagedHooksOnly"
:
{
"description"
:
"When true (and set in managed settings), only hooks from managed settings run. User, project, and local hooks are ignored."
,
"type"
:
"boolean"
}
,
"allowedHttpHookUrls"
:
{
"description"
:
"Allowlist of URL patterns that HTTP hooks may target. Supports * as a wildcard (e.g. \"https://hooks.example.com/*\"). When set, HTTP hooks with non-matching URLs are blocked. If undefined, all URLs are allowed. If empty array, no HTTP hooks are allowed. Arrays merge across settings sources (same semantics as allowedMcpServers)."
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
,
"httpHookAllowedEnvVars"
:
{
"description"
:
"Allowlist of environment variable names HTTP hooks may interpolate into headers. When set, each hook's effective allowedEnvVars is the intersection with this list. If undefined, no restriction is applied. Arrays merge across settings sources (same semantics as allowedMcpServers)."
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
,
"allowManagedPermissionRulesOnly"
:
{
"description"
:
"When true (and set in managed settings), only permission rules (allow/deny/ask) from managed settings are respected. User, project, local, and CLI argument permission rules are ignored."
,
"type"
:
"boolean"
}
,
"allowManagedMcpServersOnly"
:
{
"description"
:
"When true (and set in managed settings), allowedMcpServers is only read from managed settings. deniedMcpServers still merges from all sources, so users can deny servers for themselves. Users can still add their own MCP servers, but only the admin-defined allowlist applies."
,
"type"
:
"boolean"
}
,
"allowAllClaudeAiMcps"
:
{
"description"
:
"When true (and set in managed settings), claude.ai cloud MCP connectors load alongside managed-mcp.json instead of being suppressed by its exclusive-control lockdown. Default off preserves the lockdown. Read from managed settings only."
,
"type"
:
"boolean"
}
,
"strictPluginOnlyCustomization"
:
{
"description"
:
"When set in managed settings, blocks non-plugin customization sources for the listed surfaces. Array form locks specific surfaces (e.g. [\"skills\", \"hooks\"]); `true` locks all four; `false` is an explicit no-op. Blocked: ~/.claude/{surface}/, .claude/{surface}/ (project), settings.json hooks, .mcp.json. NOT blocked: managed (policySettings) sources, plugin-provided customizations. Composes with strictKnownMarketplaces for end-to-end admin control — plugins gated by marketplace allowlist, everything else blocked here."
,
"anyOf"
:
[
{
"type"
:
"boolean"
}
,
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
,
"enum"
:
[
"skills"
,
"agents"
,
"hooks"
,
"mcp"
]
}
}
]
}
,
"statusLine"
:
{
"description"
:
"Custom status line display configuration"
,
"type"
:
"object"
,
"properties"
:
{
"type"
:
{
"type"
:
"string"
,
"const"
:
"command"
}
,
"command"
:
{
"type"
:
"string"
}
,
"padding"
:
{
"type"
:
"number"
}
,
"refreshInterval"
:
{
"description"
:
"Re-run the status line command every N seconds in addition to event-driven updates"
,
"type"
:
"number"
,
"minimum"
:
1
}
,
"hideVimModeIndicator"
:
{
"description"
:
"Hide the built-in `-- INSERT --` / `-- VISUAL --` indicator below the prompt. Use this when your status line script renders `vim.mode` itself."
,
"type"
:
"boolean"
}
}
,
"required"
:
[
"type"
,
"command"
]
,
"additionalProperties"
:
false
}
,
"prUrlTemplate"
:
{
"description"
:
"URL template for PR links in the footer link badges and inline messages. The detected git PR is rendered as the first footer-link badge. Placeholders: {host} {owner} {repo} {number} {url}. Example: \"https://reviews.example.com/{owner}/{repo}/pull/{number}\""
,
"type"
:
"string"
}
,
"footerLinksRegexes"
:
{
"description"
:
"Extra clickable footer badges that appear when a regex matches turn output (tool results and assistant responses). Read from user, flag, and managed settings only; ignored in project .claude/settings.json and local .claude/settings.local.json. At most 5 badges render; the oldest is displaced by newer matches and /clear removes them. Use to surface IDs printed by project CLIs as session links."
}
,
"subagentStatusLine"
:
{
"description"
:
"Custom per-subagent status line shown in the agent panel; receives row context as JSON on stdin"
,
"type"
:
"object"
,
"properties"
:
{
"type"
:
{
"type"
:
"string"
,
"const"
:
"command"
}
,
"command"
:
{
"type"
:
"string"
}
}
,
"required"
:
[
"type"
,
"command"
]
,
"additionalProperties"
:
false
}
,
"enabledPlugins"
:
{
"description"
:
"Enabled plugins using plugin-id@marketplace-id format. Example: { \"formatter@anthropic-tools\": true }. Also supports extended format with version constraints. Settings precedence is user < project < local < flag < policy, so to disable a plugin that project settings enable, set it to false in .claude/settings.local.json — setting false in ~/.claude/settings.json is overridden by the project."
,
"type"
:
"object"
,
"propertyNames"
:
{
"type"
:
"string"
}
,
"additionalProperties"
:
{
"anyOf"
:
[
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
,
{
"type"
:
"boolean"
}
,
{
"not"
:
{
}
}
]
}
}
,
"extraKnownMarketplaces"
:
{
"description"
:
"Additional marketplaces to make available for this repository. Typically used in repository .claude/settings.json to ensure team members have required plugin sources."
,
"type"
:
"object"
,
"propertyNames"
:
{
"type"
:
"string"
}
,
"additionalProperties"
:
{
"type"
:
"object"
,
"properties"
:
{
"source"
:
{
"description"
:
"Where to fetch the marketplace from"
,
"anyOf"
:
[
{
"type"
:
"object"
,
"properties"
:
{
"source"
:
{
"type"
:
"string"
,
"const"
:
"url"
}
,
"url"
:
{
"description"
:
"Direct URL to marketplace.json file"
,
"type"
:
"string"
,
"format"
:
"uri"
}
,
"headers"
:
{
"description"
:
"Custom HTTP headers (e.g., for authentication)"
,
"type"
:
"object"
,
"propertyNames"
:
{
"type"
:
"string"
}
,
"additionalProperties"
:
{
"type"
:
"string"
}
}
}
,
"required"
:
[
"source"
,
"url"
]
,
"additionalProperties"
:
false
}
,
{
"type"
:
"object"
,
"properties"
:
{
"source"
:
{
"type"
:
"string"
,
"const"
:
"github"
}
,
"repo"
:
{
"description"
:
"GitHub repository in owner/repo format"
,
"type"
:
"string"
}
,
"ref"
:
{
"description"
:
"Git branch or tag to use (e.g., \"main\", \"v1.0.0\"). Defaults to repository default branch."
,
"type"
:
"string"
}
,
"path"
:
{
"description"
:
"Path to marketplace.json within repo (defaults to .claude-plugin/marketplace.json)"
,
"type"
:
"string"
}
,
"sparsePaths"
:
{
"description"
:
"Directories to include via git sparse-checkout (cone mode). Use for monorepos where the marketplace lives in a subdirectory. Example: [\".claude-plugin\", \"plugins\"]. If omitted, the full repository is cloned."
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
,
"skipLfs"
:
{
"description"
:
"Skip Git LFS smudge during clone and update (sets GIT_LFS_SKIP_SMUDGE=1) so LFS pointer files stay as pointers instead of downloading their content. Use for marketplaces hosted in repos with large LFS objects."
,
"type"
:
"boolean"
}
}
,
"required"
:
[
"source"
,
"repo"
]
,
"additionalProperties"
:
false
}
,
{
"type"
:
"object"
,
"properties"
:
{
"source"
:
{
"type"
:
"string"
,
"const"
:
"git"
}
,
"url"
:
{
"description"
:
"Full git repository URL"
,
"type"
:
"string"
}
,
"ref"
:
{
"description"
:
"Git branch or tag to use (e.g., \"main\", \"v1.0.0\"). Defaults to repository default branch."
,
"type"
:
"string"
}
,
"path"
:
{
"description"
:
"Path to marketplace.json within repo (defaults to .claude-plugin/marketplace.json)"
,
"type"
:
"string"
}
,
"sparsePaths"
:
{
"description"
:
"Directories to include via git sparse-checkout (cone mode). Use for monorepos where the marketplace lives in a subdirectory. Example: [\".claude-plugin\", \"plugins\"]. If omitted, the full repository is cloned."
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
,
"skipLfs"
:
{
"description"
:
"Skip Git LFS smudge during clone and update (sets GIT_LFS_SKIP_SMUDGE=1) so LFS pointer files stay as pointers instead of downloading their content. Use for marketplaces hosted in repos with large LFS objects."
"Policy-list sentinel for the ~/.claude/skills/ auto-load (@skills-dir plugins). In strictKnownMarketplaces: opt the scan back IN (by default any allowlist blocks it). In blockedMarketplaces: turn the scan OFF without otherwise restricting marketplaces. Only meaningful in those two managed-settings lists (areLocalPluginDirsAllowedByPolicy); known_marketplaces.json / marketplace add etc. ignore it."
,
"type"
:
"object"
,
"properties"
:
{
"source"
:
{
"type"
:
"string"
,
"const"
:
"skills-dir"
}
}
,
"required"
:
[
"source"
]
,
"additionalProperties"
:
false
}
,
{
"type"
:
"object"
,
"properties"
:
{
"source"
:
{
"type"
:
"string"
,
"const"
:
"hostPattern"
}
,
"hostPattern"
:
{
"description"
:
"Regex pattern to match the host/domain extracted from any marketplace source type. For github sources, matches against \"github.com\". For git sources (SSH or HTTPS), extracts the hostname from the URL. Use in strictKnownMarketplaces to allow all marketplaces from a specific host (e.g., \"^github\\.mycompany\\.com$\")."
,
"type"
:
"string"
}
}
,
"required"
:
[
"source"
,
"hostPattern"
]
,
"additionalProperties"
:
false
}
,
{
"type"
:
"object"
,
"properties"
:
{
"source"
:
{
"type"
:
"string"
,
"const"
:
"pathPattern"
}
,
"pathPattern"
:
{
"description"
:
"Regex pattern matched against the .path field of file and directory sources. Use in strictKnownMarketplaces to allow filesystem-based marketplaces alongside hostPattern restrictions for network sources. Use \".*\" to allow all filesystem paths, or a narrower pattern (e.g., \"^/opt/approved/\") to restrict to specific directories."
,
"type"
:
"string"
}
}
,
"required"
:
[
"source"
,
"pathPattern"
]
,
"additionalProperties"
:
false
}
,
{
"description"
:
"Inline marketplace manifest defined directly in settings.json. The reconciler writes a synthetic marketplace.json to the cache; diffMarketplaces detects edits via isEqual on the stored source (the plugins array is inside this object, so edits surface as sourceChanged)."
,
"type"
:
"object"
,
"properties"
:
{
"source"
:
{
"type"
:
"string"
,
"const"
:
"settings"
}
,
"name"
:
{
"description"
:
"Marketplace name. Must match the extraKnownMarketplaces key (enforced); the synthetic manifest is written under this name. Same validation as PluginMarketplaceSchema plus reserved-name rejection — validateOfficialNameSource runs after the disk write, too late to clean up."
,
"type"
:
"string"
,
"minLength"
:
1
}
,
"plugins"
:
{
"description"
:
"Plugin entries declared inline in settings.json"
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"object"
,
"properties"
:
{
"name"
:
{
"description"
:
"Plugin name as it appears in the target repository"
,
"type"
:
"string"
,
"minLength"
:
1
}
,
"source"
:
{
"description"
:
"Where to fetch the plugin from. Must be a remote source — relative paths have no marketplace repository to resolve against."
,
"anyOf"
:
[
{
"description"
:
"Path to the plugin root, relative to the marketplace root (the directory containing .claude-plugin/, not .claude-plugin/ itself)"
,
"type"
:
"string"
,
"pattern"
:
"^\\.\\/.*"
}
,
{
"description"
:
"NPM package as plugin source"
,
"type"
:
"object"
,
"properties"
:
{
"source"
:
{
"type"
:
"string"
,
"const"
:
"npm"
}
,
"package"
:
{
"description"
:
"Package name (or url, or local path, or anything else that can be passed to `npm` as a package)"
,
"anyOf"
:
[
{
"type"
:
"string"
}
,
{
"type"
:
"string"
}
]
}
,
"version"
:
{
"description"
:
"Specific version or version range (e.g., ^1.0.0, ~2.1.0)"
,
"type"
:
"string"
}
,
"registry"
:
{
"description"
:
"Custom NPM registry URL (defaults to using system default, likely npmjs.org)"
,
"type"
:
"string"
,
"format"
:
"uri"
}
}
,
"required"
:
[
"source"
,
"package"
]
,
"additionalProperties"
:
false
}
,
{
"type"
:
"object"
,
"properties"
:
{
"source"
:
{
"type"
:
"string"
,
"const"
:
"url"
}
,
"url"
:
{
"description"
:
"Full git repository URL (https:// or git@)"
,
"type"
:
"string"
}
,
"ref"
:
{
"description"
:
"Git branch or tag to use (e.g., \"main\", \"v1.0.0\"). Defaults to repository default branch."
,
"type"
:
"string"
}
,
"sha"
:
{
"description"
:
"Specific commit SHA to use"
,
"type"
:
"string"
,
"minLength"
:
40
,
"maxLength"
:
40
,
"pattern"
:
"^[a-f0-9]{40}$"
}
}
,
"required"
:
[
"source"
,
"url"
]
,
"additionalProperties"
:
false
}
,
{
"type"
:
"object"
,
"properties"
:
{
"source"
:
{
"type"
:
"string"
,
"const"
:
"github"
}
,
"repo"
:
{
"description"
:
"GitHub repository in owner/repo format"
,
"type"
:
"string"
}
,
"ref"
:
{
"description"
:
"Git branch or tag to use (e.g., \"main\", \"v1.0.0\"). Defaults to repository default branch."
,
"type"
:
"string"
}
,
"sha"
:
{
"description"
:
"Specific commit SHA to use"
,
"type"
:
"string"
,
"minLength"
:
40
,
"maxLength"
:
40
,
"pattern"
:
"^[a-f0-9]{40}$"
}
}
,
"required"
:
[
"source"
,
"repo"
]
,
"additionalProperties"
:
false
}
,
{
"description"
:
"Plugin located in a subdirectory of a larger repository (monorepo). Only the specified subdirectory is materialized; the rest of the repo is not downloaded."
,
"type"
:
"object"
,
"properties"
:
{
"source"
:
{
"type"
:
"string"
,
"const"
:
"git-subdir"
}
,
"url"
:
{
"description"
:
"Git repository: GitHub owner/repo shorthand, https://, or git@ URL"
,
"type"
:
"string"
}
,
"path"
:
{
"description"
:
"Subdirectory within the repo containing the plugin (e.g., \"tools/claude-plugin\"). Cloned sparsely using partial clone (--filter=tree:0) to minimize bandwidth for monorepos."
,
"type"
:
"string"
,
"minLength"
:
1
}
,
"ref"
:
{
"description"
:
"Git branch or tag to use (e.g., \"main\", \"v1.0.0\"). Defaults to repository default branch."
,
"type"
:
"string"
}
,
"sha"
:
{
"description"
:
"Specific commit SHA to use"
,
"type"
:
"string"
,
"minLength"
:
40
,
"maxLength"
:
40
,
"pattern"
:
"^[a-f0-9]{40}$"
}
}
,
"required"
:
[
"source"
,
"url"
,
"path"
]
,
"additionalProperties"
:
false
}
,
{
"description"
:
"Placeholder for source types this Claude Code version does not recognize. Never authored by hand — PluginMarketplaceSchema rewrites unparseable sources to this so the entry remains in marketplace.plugins (detectDelistedPlugins must not see it as removed). Install attempts fail at cachePlugin with a clear \"update Claude Code\" message."
,
"type"
:
"object"
,
"properties"
:
{
"source"
:
{
"type"
:
"string"
,
"const"
:
"unsupported"
}
}
,
"required"
:
[
"source"
]
,
"additionalProperties"
:
false
}
]
}
,
"description"
:
{
"type"
:
"string"
}
,
"version"
:
{
"type"
:
"string"
}
,
"strict"
:
{
"type"
:
"boolean"
}
}
,
"required"
:
[
"name"
,
"source"
]
,
"additionalProperties"
:
false
}
}
,
"owner"
:
{
"type"
:
"object"
,
"properties"
:
{
"name"
:
{
"description"
:
"Display name of the plugin author or organization"
,
"type"
:
"string"
,
"minLength"
:
1
}
,
"email"
:
{
"description"
:
"Contact email for support or feedback"
,
"type"
:
"string"
}
,
"url"
:
{
"description"
:
"Website, GitHub profile, or organization URL"
,
"type"
:
"string"
}
}
,
"required"
:
[
"name"
]
,
"additionalProperties"
:
false
}
}
,
"required"
:
[
"source"
,
"name"
,
"plugins"
]
,
"additionalProperties"
:
false
}
]
}
,
"installLocation"
:
{
"description"
:
"Local cache path where marketplace manifest is stored (auto-generated if not provided)"
,
"type"
:
"string"
}
,
"autoUpdate"
:
{
"description"
:
"Whether to automatically update this marketplace and its installed plugins on startup"
,
"type"
:
"boolean"
}
}
,
"required"
:
[
"source"
]
,
"additionalProperties"
:
false
}
}
,
"strictKnownMarketplaces"
:
{
"description"
:
"Enterprise strict list of allowed marketplace sources. When set in managed settings, ONLY these exact sources can be added as marketplaces. The check happens BEFORE downloading, so blocked sources never touch the filesystem. Note: this is a policy gate only — it does NOT register marketplaces. To pre-register allowed marketplaces for users, also set extraKnownMarketplaces."
,
"type"
:
"array"
,
"items"
:
{
"anyOf"
:
[
{
"type"
:
"object"
,
"properties"
:
{
"source"
:
{
"type"
:
"string"
,
"const"
:
"url"
}
,
"url"
:
{
"description"
:
"Direct URL to marketplace.json file"
,
"type"
:
"string"
,
"format"
:
"uri"
}
,
"headers"
:
{
"description"
:
"Custom HTTP headers (e.g., for authentication)"
,
"type"
:
"object"
,
"propertyNames"
:
{
"type"
:
"string"
}
,
"additionalProperties"
:
{
"type"
:
"string"
}
}
}
,
"required"
:
[
"source"
,
"url"
]
,
"additionalProperties"
:
false
}
,
{
"type"
:
"object"
,
"properties"
:
{
"source"
:
{
"type"
:
"string"
,
"const"
:
"github"
}
,
"repo"
:
{
"description"
:
"GitHub repository in owner/repo format"
,
"type"
:
"string"
}
,
"ref"
:
{
"description"
:
"Git branch or tag to use (e.g., \"main\", \"v1.0.0\"). Defaults to repository default branch."
,
"type"
:
"string"
}
,
"path"
:
{
"description"
:
"Path to marketplace.json within repo (defaults to .claude-plugin/marketplace.json)"
,
"type"
:
"string"
}
,
"sparsePaths"
:
{
"description"
:
"Directories to include via git sparse-checkout (cone mode). Use for monorepos where the marketplace lives in a subdirectory. Example: [\".claude-plugin\", \"plugins\"]. If omitted, the full repository is cloned."
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
,
"skipLfs"
:
{
"description"
:
"Skip Git LFS smudge during clone and update (sets GIT_LFS_SKIP_SMUDGE=1) so LFS pointer files stay as pointers instead of downloading their content. Use for marketplaces hosted in repos with large LFS objects."
,
"type"
:
"boolean"
}
}
,
"required"
:
[
"source"
,
"repo"
]
,
"additionalProperties"
:
false
}
,
{
"type"
:
"object"
,
"properties"
:
{
"source"
:
{
"type"
:
"string"
,
"const"
:
"git"
}
,
"url"
:
{
"description"
:
"Full git repository URL"
,
"type"
:
"string"
}
,
"ref"
:
{
"description"
:
"Git branch or tag to use (e.g., \"main\", \"v1.0.0\"). Defaults to repository default branch."
,
"type"
:
"string"
}
,
"path"
:
{
"description"
:
"Path to marketplace.json within repo (defaults to .claude-plugin/marketplace.json)"
,
"type"
:
"string"
}
,
"sparsePaths"
:
{
"description"
:
"Directories to include via git sparse-checkout (cone mode). Use for monorepos where the marketplace lives in a subdirectory. Example: [\".claude-plugin\", \"plugins\"]. If omitted, the full repository is cloned."
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
,
"skipLfs"
:
{
"description"
:
"Skip Git LFS smudge during clone and update (sets GIT_LFS_SKIP_SMUDGE=1) so LFS pointer files stay as pointers instead of downloading their content. Use for marketplaces hosted in repos with large LFS objects."