audit-claude-options
Skill1 starsChanged 7 months agoMITView on GitHub
Audit Claudearium's managed Claude Code option surface against the current official Claude Code settings docs — report New/Changed/Removed options and offer to apply each fix across the files that must move together. Use when the user says "audit claude options", "/audit-claude-options", or after a Claude Code release to check the tool hasn't fallen behind.
In this repository2 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- copilot-fixSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Run it after a Claude Code release, or any time the user wants to confirm the tool hasn't fallen behind.
- Very specific: line 56
If that 404s or redirects again, WebSearch for Claude Code settings.json reference and follow the canonical code.claude.com link.
- Distinctive: line 122
Ask the user which findings to apply (per-item or per-group).
- Distinctive: line 146
Read-only through Step 4: Never edit a file before the user confirms in Step 5.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
audit-claude-options
Claudearium hardcodes a slice of Claude Code's own option surface: every
settings.json key it emits, plus the enum values it accepts (model ids, effort
levels, permission modes, hook events, auto-approve command buckets). When
Anthropic ships a new Claude Code release that surface drifts — options are
added, renamed/changed, or removed — and the tool silently falls
behind (a new settings.json key it never emits, or a removed enum value the
wizard still offers).
This skill automates the audit that catches that drift: enumerate what the tool manages today, fetch the current option set from the official docs, diff them, report New / Changed / Removed, then offer to apply each fix across the files that must move together.
When to use
Run it after a Claude Code release, or any time the user wants to confirm the tool hasn't fallen behind. The skill is read-only through Step 4 — it only edits files after the user confirms in Step 5.
Step 1 — Enumerate the managed surface
The code is the source of truth for "what we manage today" — re-derive the inventory each run by reading these six spots. Do not trust the table below as a value list; it tells you where to look, not what's there.
| Concern | File | What to read |
| Keys emitted into settings.json | modules/ClaudeSettings.psm1 | Get-AlwaysSettings (always-set invariants: cleanupPeriodDays, attribution, env, permissions.deny) and Get-OpinionatedSettings (every profile.claudeSettings → settings.json translation: model, theme, permissions.*, alwaysThinkingEnabled, autoUpdatesChannel, disableBypassPermissionsMode, disableWorkflows, cleanupPeriodDays, tui, defaultShell, hooks, and the auto-approve command buckets) |
| Accepted enum values | modules/Profile.psm1 | the $Script:Known* constants (KnownEffortLevels, KnownAutoUpdateChannels, KnownTuiModes, KnownDefaultShells, KnownPermissionModes) and Test-Profile's claudeSettings validation block |
| Schema | templates/claudearium.profile.schema.json | the claudeSettings block with its per-key enum constraints |
| Example | templates/claudearium.profile.example.json | the annotated claudeSettings sample |
| Interactive wizard | claudearium.ps1 | Invoke-ClaudeSettingsReconfigure — the model list and the effort/theme/channel/tui/shell/permission-mode choices, the disable-bypass/disable-workflows yes-no prompts, and the claudelk-event multi-select |
| Tests | tests/pure/ClaudeSettings.Tests.ps1 | the expected synthesized settings.json structure the assertions encode |
Build a single inventory: every settings.json key emitted, every enum value
accepted, every model id offered. Grep for Get-OpinionatedSettings and the
$Script:Known* constants rather than eyeballing — the list moves between
releases.
Step 2 — Fetch the current Claude Code option set
WebFetch the official settings reference (the canonical host is now
code.claude.com; the old docs.claude.com path 301-redirects there):
https://code.claude.com/docs/en/settingsIf that 404s or redirects again, WebSearch for Claude Code settings.json
reference and follow the canonical code.claude.com link. Extract the full
list of settings.json keys, their types, and any enumerated values (effort
levels, permission modes, update channels, etc.).
The settings table is NOT the whole surface — cross-check the dedicated pages.
Some real settings.json keys are omitted from the main reference table
because they're written by a slash command or their canonical store is
elsewhere. If you audit only the settings page, machine-written keys like tui
look "removed" and store-elsewhere keys like theme look authoritative when
they aren't. For every enum value or key Claudearium manages that is absent
from or ambiguous in the settings table, confirm it against the feature's own
page before classifying it Removed/Changed. Known cross-check sources:
| Managed option | Authoritative page | Why the settings table misleads |
tui (fullscreen/default) | https://code.claude.com/docs/en/fullscreen | Written by the /tui command (≈ CLAUDE_CODE_NO_FLICKER), so it's a valid key the settings table doesn't list. |
theme (dark/light/system) | https://code.claude.com/docs/en/terminal-config | The preference's canonical store is ~/.claude.json (set via /theme or /config), so a settings.json value may be a no-op — don't treat the table's silence as "still authoritative". |
permissions.defaultMode modes | https://code.claude.com/docs/en/permission-modes | The settings table doesn't enumerate mode values; auto/dontAsk plus the classic default/acceptEdits/plan/bypassPermissions live here. |
model ids offered by the wizard | https://code.claude.com/docs/en/model-config + the project's own environment (current model ids) | The settings table doesn't list concrete model ids; the offered list drifts every release. |
Also skim the most recent whats-new release notes
(https://code.claude.com/docs/en/whats-new/...) for newly-shipped settings the
reference table hasn't absorbed yet. Record every doc URL and the date fetched —
cite them all in the report so the audit is reproducible.
Step 3 — Diff
Compare the Step-1 inventory against the Step-2 option set and sort findings into three groups:
- New — keys or enum values present in the docs but not managed by
Claudearium. For each, decide and state where it belongs:
- opinionated — user-configurable via
claudeSettings(most knobs), - always-set — a sandbox invariant we'd force regardless of profile, or
- intentionally ignored — note why (e.g. desktop-only, or a capability Claudearium deliberately rejects).
- opinionated — user-configurable via
- Changed — a key renamed, type changed, enum value added/removed, or default changed. Show old vs new.
- Removed — keys or enum values Claudearium still references that the docs no
longer list. These are deprecation candidates; map each to its replacement if
one exists, mirroring the existing
claudeFile→claudeShared.claudeMddeprecation pattern inProfile.psm1(Get-EffectiveClaudeShared).
Filter out non-findings so they don't reappear every run:
- MCP servers — Claudearium deliberately installs CLIs on PATH instead (see
CLAUDE.md "No MCP servers"). Never propose adding
mcpServers. attribution: { commit: "", pr: "" }is intentionally forced inGet-AlwaysSettingsto suppress the byline (it replaced the deprecatedincludeCoAuthoredBy: false). A non-empty docs default is not a "Changed" finding, andincludeCoAuthoredByreappearing in the docs as deprecated is not a "New" finding — the migration is already done.
Step 4 — Report
Emit a grouped summary — New, Changed, Removed — where each finding carries:
- the option name (and old→new for Changed),
- the classification (opinionated / always-set / ignored, or deprecate→replacement),
- a one-line proposed change, and
- the exact files to edit from the Step-1 map.
Close with the doc URL and fetch date. Stop here unless the user wants changes.
Step 5 — Offer to apply
Ask the user which findings to apply (per-item or per-group). For each accepted New or Changed option, walk the entire file set so the change lands consistently — a half-applied option is worse than none:
modules/ClaudeSettings.psm1— emit logic inGet-OpinionatedSettings(orGet-AlwaysSettingsfor an invariant).modules/Profile.psm1—Test-Profilevalidation, plus a new$Script:Known*constant if the option is an enum.templates/claudearium.profile.schema.json— the key + anyenum.templates/claudearium.profile.example.json— an annotated sample value.claudearium.ps1— a choice inInvoke-ClaudeSettingsReconfigureif the option is user-configurable.tests/pure/ClaudeSettings.Tests.ps1— an assertion for the new emitted shape.
For a Removed option, add a deprecation warning in Test-Profile (and map to
the replacement) rather than hard-deleting, so existing profiles don't break.
Then hand off to the standard CLAUDE.md workflow — branch, tests first/alongside,
.\test-claudearium.ps1 -Auto -Only pure -CI, the documentation pass
(docs/usage.md, schema/example are already covered above), the code-reviewer
subagent, and the PR. Do not commit autonomously.
Hard rules
- Read-only through Step 4. Never edit a file before the user confirms in Step 5.
- Code is the source of truth for the managed inventory — re-derive it each
run from
Get-OpinionatedSettingsand the$Script:Known*constants; don't trust this file's prose table for values. - All-or-nothing per option. Applying a New/Changed option means touching every file in the Step-5 list together (e.g. schema and validation and wizard) — never a partial landing.
- Don't propose options Claudearium intentionally rejects — MCP servers, a
non-empty
attributionbyline, or re-adding the deprecatedincludeCoAuthoredBy.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

