Awesome-omni-skill claude-code-optimizer
Audit and optimize Claude Code installations to current best practices. Use when users ask to check, audit, optimize, or improve their Claude Code setup, configuration, hooks, permissions, or workflow. Triggers on requests mentioning Claude Code settings, CLAUDE.md files, hooks configuration, permissions setup, or performance optimization.
git clone https://github.com/diegosouzapw/awesome-omni-skill
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/development/claude-code-optimizer" ~/.claude/skills/diegosouzapw-awesome-omni-skill-claude-code-optimizer && rm -rf "$T"
skills/development/claude-code-optimizer/SKILL.mdClaude Code Optimizer
Audit and optimize Claude Code installations. Requires Claude Code 2.1.3 or later.
Quick Start
Run the appropriate audit based on user request:
- Full audit: Invoke
agent for comprehensive reviewaudit-orchestrator - Specific audit: Invoke specialized agent directly (see Agents below)
- Quick check: Run inline checks from Audit Checklist
Agents
Invoke via Task tool with appropriate
subagent_type:
| Agent | Purpose |
|---|---|
| Coordinates full audit across all areas |
| Audits settings.json and CLAUDE.md files |
| Audits hook configurations |
| Audits permission patterns |
| Audits commands, agents, and skills |
| Audits MCP server configurations |
Agent definitions are in
agents/ directory. Install to ~/.claude/agents/ or .claude/agents/.
Audit Checklist
Configuration Files
Check these locations exist and are properly configured:
~/.claude/settings.json # User settings .claude/settings.json # Project settings CLAUDE.md # Project memory (root) .claude/CLAUDE.md # Alternative location CLAUDE.local.md # Local overrides (gitignored) ~/.claude/CLAUDE.md # User-level memory
Settings.json Structure
Valid top-level keys (2.1.3+):
- Event handlershooks
- Tool permissions (allow/deny arrays)permissions
- Environment variablesenv
- MCP server configurationsmcpServers
- Default modelmodel
- UI themetheme
- File picker behaviorrespectGitignore
- Response languagelanguage
- CustomfileSuggestion
file search command@
-releaseChannel
orstable
channel togglelatest
Hook Events (2.1.0+)
Valid event names:
,PreToolUse
,PostToolUse
,PostToolUseFailurePermissionRequest
,NotificationUserPromptSubmit
,SessionStartSessionEnd
,Stop
,SubagentStart
,SubagentStopPreCompact
Tool Names for Matchers
,Bash
,Read
,WriteEdit
,Grep
,Glob
,TaskTaskOutput
,WebFetchWebSearch
,NotebookEdit
,TodoWriteKillShell
(Language Server Protocol, 2.0.74+)LSP
for MCP tools (wildcard:mcp__*
)mcp__server__*
Permission Patterns
{ "permissions": { "allow": ["Read", "Grep", "Glob"], "deny": ["Bash(rm -rf:*)"] } }
Wildcard syntax:
Bash(git *:*) allows all git commands.
Common Issues
| Issue | Fix |
|---|---|
| Hooks not firing | Check event name spelling (case-sensitive) |
| Skills not loading | Verify or path |
| Permissions ignored | Check allow/deny order; deny takes precedence |
| CLAUDE.md not read | Must be in project root or |
References
For detailed audit procedures, see:
- Configuration deep-divereferences/config-guide.md
- Hook patterns and examplesreferences/hooks-guide.md
- Permission strategiesreferences/permissions-guide.md
- Security audit proceduresreferences/security-guide.md
- Common problems and solutionsreferences/troubleshooting.md
Version Compatibility
This skill targets Claude Code 2.1.3+ features:
- Skill hot-reload
- Forked sub-agent context (
)context: fork - Hook frontmatter in skills/agents with
optiononce: true - YAML-style allowed-tools
- Unreachable permission rule detection
- MCP wildcard permissions (
)mcp__server__* - Named sessions (
,/rename
)/resume <name> - Release channel configuration
Check version:
claude --version
Update: claude update