Audit Claude Code settings.json files for quality, compliance, and security.
Audits Claude Code settings files for quality, compliance, and security vulnerabilities.
/plugin marketplace add melodic-software/claude-code-plugins/plugin install claude-code-observability@melodic-softwareAudit Claude Code settings.json files for quality, compliance, and security.
Before auditing, initialize the environment:
Get the current UTC date, capture the project root path, ensure the temp directory exists, and clean up stale audit files. The settings-management skill provides authoritative validation guidance (auto-loaded when this command runs).
| Argument | Description |
|---|---|
| (none) | Audit all discoverable settings files |
project | Only audit .claude/settings.json |
user | Only audit ~/.claude/settings.json |
all | Audit all scopes explicitly |
--force | Audit regardless of modification status |
Check project settings (.claude/settings.json), user settings (~/.claude/settings.json on Unix, %USERPROFILE%\.claude\settings.json on Windows), and plugin settings in marketplace repos.
Parse scope selector and --force flag. Filter files to match requested scope.
Display mode, files discovered, and list with scope and last modified date.
For each file, spawn the settings-auditor subagent with scope, path, and last audit date. Run in parallel when multiple exist.
Subagents write findings to .claude/temp/. The main conversation thread collects results and updates audit logs using its Write/Edit tools.
Report total audited by scope, results, and details table. List security alerts with remediation.
| Scope | Credentials Found | Result |
|---|---|---|
| Project | Yes | CRITICAL - version controlled |
| User | Yes | WARNING - not version controlled |
Project settings should NEVER contain API keys or tokens (version controlled).
| Platform | User Settings |
|---|---|
| Unix | ~/.claude/settings.json |
| Windows | %USERPROFILE%\.claude\settings.json |
All audit results are written to .claude/audit/settings.md.
Use /audit-log settings to view current audit status.
User: /audit-settings
Claude: Discovering settings files...
## Audit Plan
**Mode**: SMART
**Files discovered**: 2
1. [project] .claude/settings.json
2. [user] ~/.claude/settings.json
[Spawns settings-auditor subagents]
## Audit Complete
| Scope | File | Result | Score |
| --- | --- | --- | --- |
| project | .claude/settings.json | PASS | 100/100 |
| user | ~/.claude/settings.json | PASS | 98/100 |
User: /audit-settings project
Claude: Auditing project settings...