config-analyzer
Skill0 starsChanged 6 months agoApache-2.0View on GitHub
Analyze and audit Claude Code configuration files (CLAUDE.md, settings.json, settings.local.json, hooks, skills, agents, MCP servers) against Anthropic's official best practices. Use when the user asks to review, audit, check, or improve their Claude Code setup, or when they want to compare their configuration against best practices. Triggers on requests like "analyze my Claude config", "review my CLAUDE.md", "audit my settings", "improve my Claude Code setup", or "/config-analyzer".
In this repository33 other files it gives its agents.
- add-mesh-peerSkill
- adrSkill
- analyze-logsSkill
- codex-consultSkill
- codex-reviewSkill
- cross-reviewSkill
- drawioSkill
- empirical-prompt-tuningSkill
- git-historySkill
- github-writingSkill
- hard-task-playbookSkill
- inherit-wipSkill
- interviewSkill
- ja-natural-reviewSkill
- mcp-smoke-via-claude-pSkill
- meeting-minutesSkill
- memoSkill
- nerfstudio-trainerSkill
- obsidian-work-loggerSkill
- plan-with-qaSkill
- poll-sonnet-workersSkill
- post-merge-cleanupSkill
- release-applySkill
- ros2-inspectorSkill
- ros2-launch-debugSkill
- ros-analyzeSkill
- safe-pathspec-commitSkill
- setup-claude-localSkill
- split-advisorSkill
- surveySkill
- work-logSkill
- write-specSkill
- zenn-interviewSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 11 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Read the following files (skip if not found):
- Distinctive: line 37
Content audit: Check for items that should be excluded (self-evident rules, info derivable from code, detailed API docs, …
- Distinctive: line 38
Missing essentials: Check for bash commands, code style, testing instructions, workflow rules
- Distinctive: line 40
@imports: Check if referenced files exist
- Distinctive: line 44
Permissions: Check for overly broad allows, missing denys for dangerous ops
- Distinctive: line 51
CLAUDE.md alignment: Check if skills overlap with CLAUDE.md content (move domain knowledge to skills)
- Distinctive: line 52
Trigger coverage: Check if descriptions are specific enough
- Distinctive: line 55
Tool scope: Check if tools list follows least privilege
- Distinctive: line 56
Model selection: Verify appropriate model for task complexity
- Distinctive: line 57
System prompt quality: Check for specificity
- Distinctive: line 61
Lazy loading: Check if deferred tools are configured
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Config Analyzer
Analyze Claude Code configuration against Anthropic's official best practices and provide actionable improvement recommendations.
Workflow
1. Gather Configuration Files
Read the following files (skip if not found):
~/.claude/CLAUDE.md # Global CLAUDE.md
~/.claude/settings.json # User settings
~/.claude.json # User MCP servers
.claude/settings.json # Project settings (if in a project)
.claude/settings.local.json # Local settings (if in a project)
.mcp.json # Project MCP servers (if in a project)
CLAUDE.md # Project CLAUDE.md (if in a project)Also scan:
~/.claude/skills/— installed skills (list names and symlink targets)~/.claude/agents/— custom subagents.claude/skills/and.claude/agents/— project-level (if in a project)
2. Analyze Each Component
For each component found, evaluate against best practices in references/best-practices.md.
CLAUDE.md Analysis
- Line count: Flag if over 200 lines (target: ~60 lines)
- Content audit: Check for items that should be excluded (self-evident rules, info derivable from code, detailed API docs, frequently-changing info)
- Missing essentials: Check for bash commands, code style, testing instructions, workflow rules
- Structure: Readability, use of emphasis for critical rules
- @imports: Check if referenced files exist
- Scope correctness: Global vs project-level content placement
settings.json Analysis
- Permissions: Check for overly broad allows, missing denys for dangerous ops
- Scope hygiene: Personal settings in project files, redundant settings across scopes
- Hooks: Validate hook configuration, check for missing useful hooks
- Plugins: List installed plugins, check for conflicts
Skills Analysis
- Skill inventory: List all skills with descriptions
- CLAUDE.md alignment: Check if skills overlap with CLAUDE.md content (move domain knowledge to skills)
- Trigger coverage: Check if descriptions are specific enough
Subagents Analysis
- Tool scope: Check if tools list follows least privilege
- Model selection: Verify appropriate model for task complexity
- System prompt quality: Check for specificity
MCP Servers Analysis
- Scope correctness: User vs project placement
- Lazy loading: Check if deferred tools are configured
- Redundancy: Duplicate servers across scopes
3. Generate Report
Output a structured Markdown report:
# Claude Code Configuration Analysis
## Summary
- Overall assessment (1-2 sentences)
- Total issues found: N (critical: X, warning: Y, info: Z)
## CLAUDE.md
### Current State
- Location: [path]
- Lines: N (target: ~60, max: 200)
- @imports: [list]
### Issues
- [CRITICAL/WARNING/INFO] Description — Recommendation
### Recommendations
- Specific actionable items
## Settings
### Current State
- Scopes in use: [list]
- Permissions: N allows, N denys
- Hooks: N configured
### Issues
...
## Skills
### Inventory
| Name | Description | Source |
|------|-------------|--------|
...
### Issues
...
## Subagents
...
## MCP Servers
...
## Action Items (Priority Order)
1. [HIGH] ...
2. [MEDIUM] ...
3. [LOW] ...Severity Levels
- CRITICAL: Actively causing problems (e.g., bloated CLAUDE.md over 200 lines, security-risky permissions)
- WARNING: Suboptimal but functional (e.g., domain knowledge in CLAUDE.md instead of skills, missing useful hooks)
- INFO: Minor improvements (e.g., formatting, organization suggestions)
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.

