agentleFS
h-watah-wata/claude-skills/skills/config-analyzer/SKILL.md

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".

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
  1. Distinctive:

    Read the following files (skip if not found):

    line 14
  2. Distinctive:

    Content audit: Check for items that should be excluded (self-evident rules, info derivable from code, detailed API docs, …

    line 37
  3. Distinctive:

    Missing essentials: Check for bash commands, code style, testing instructions, workflow rules

    line 38
  4. Distinctive:

    @imports: Check if referenced files exist

    line 40
  5. Distinctive:

    Permissions: Check for overly broad allows, missing denys for dangerous ops

    line 44
  6. Distinctive:

    CLAUDE.md alignment: Check if skills overlap with CLAUDE.md content (move domain knowledge to skills)

    line 51
  7. Distinctive:

    Trigger coverage: Check if descriptions are specific enough

    line 52
  8. Distinctive:

    Tool scope: Check if tools list follows least privilege

    line 55
  9. Distinctive:

    Model selection: Verify appropriate model for task complexity

    line 56
  10. Distinctive:

    System prompt quality: Check for specificity

    line 57
  11. Distinctive:

    Lazy loading: Check if deferred tools are configured

    line 61

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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)

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.