Extract and analyze Claude Code settings schema
Extracts Claude Code's settings schema from the npm package bundle to generate documentation, compare versions, or find undocumented settings. Use this when you need to understand available configuration options or track schema changes across releases.
/plugin marketplace add bengous/claude-code-plugins/plugin install claude-settings-manager@bengous-pluginsclaude-opus-4-5You are extracting and analyzing Claude Code's settings schema from the npm package bundle.
Claude Code's settings are validated using Zod schemas. These schemas contain .describe() strings that document each setting. This command extracts those descriptions from the minified cli.js bundle to:
If the user hasn't specified, ask what they want to do:
Use AskUserQuestion:
Question: "What would you like to do with the Claude Code schema?"
Options:
- "Extract schema from current/specific version (generate docs)"
- "Compare versions (find new/removed settings)"
- "Find undocumented settings (diff against schemastore.org)"
Check the current Claude Code version:
claude --version
If user wants a specific version, they can provide it. Otherwise use "latest".
For schema extraction:
"${CLAUDE_PLUGIN_ROOT}/scripts/settings-manager" schema-extract \
--version <VERSION> \
--output-dir <OUTPUT_DIR> \
--format both
Default output directory: current directory or user-specified.
For version comparison:
"${CLAUDE_PLUGIN_ROOT}/scripts/settings-manager" schema-diff \
--base <VERSION1> \
--compare <VERSION2>
For finding undocumented settings:
"${CLAUDE_PLUGIN_ROOT}/scripts/settings-manager" schema-diff \
--base schemastore \
--compare latest
After extraction, read and summarize the generated files:
For extraction: Show a summary of what was extracted:
For comparison: Highlight:
For undocumented settings: Focus on:
After showing results, offer relevant follow-ups:
Use AskUserQuestion:
Question: "What would you like to do next?"
Options:
- "View the full extracted documentation"
- "Extract another version"
- "Done"
The schema-extract command generates:
claude-code-{VERSION}.schema.json - JSON Schema with extracted propertiesclaude-code-{VERSION}-reference.md - Markdown documentationdescribe-strings-{VERSION}.json - Raw extracted data~/.cache/claude-settings-manager/.describe() strings, including internal tool schemas